blob: 4163c6262dd5176f55f0936b6c1636c7c739859b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# New ports collection makefile for: docdiff
# Date created: 13 December 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= docdiff
PORTVERSION= 0.4.0
CATEGORIES= textproc
MASTER_SITES= SF
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Compares two text files by word, by character, or by line
NO_BUILD= yes
USE_RUBY= yes
USE_RUBY_FEATURES= iconv
PORTDOCS= readme.html readme.en.html readme.ja.html
post-patch:
@${REINPLACE_CMD} \
-e '1 s|#!.*|#!${RUBY}|' \
-e '/ :format/ s|html|tty|' \
-e '/SystemConfigFileName =/ s|etc.*conf|${PREFIX}/etc/${PORTNAME}.conf|' \
-e 's|/etc/docdiff/docdiff.conf|${PREFIX}/etc/${PORTNAME}.conf|' \
${WRKSRC}/${PORTNAME}.rb
do-install:
cd ${WRKSRC}/${PORTNAME}/ && ${COPYTREE_SHARE} . ${RUBY_SITELIBDIR}/${PORTNAME}/
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.rb ${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.example ${PREFIX}/etc/
.if !defined(NOPORTDOCS)
${INSTALL} -d ${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
.include <bsd.port.mk>
|