aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pydf/Makefile
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2014-02-26 08:49:52 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2014-02-26 08:49:52 +0000
commit2c843ec91f96239917e73cd52f6936a127b3a5cc (patch)
tree2d12c05b6437a201bddd4b3ff8374b4bdc844cea /sysutils/pydf/Makefile
parent495aed4ed940e0dcbbef1564bb5fbee874aa89a7 (diff)
downloadports-2c843ec91f96239917e73cd52f6936a127b3a5cc.tar.gz
ports-2c843ec91f96239917e73cd52f6936a127b3a5cc.zip
Notes
Diffstat (limited to 'sysutils/pydf/Makefile')
-rw-r--r--sysutils/pydf/Makefile24
1 files changed, 8 insertions, 16 deletions
diff --git a/sysutils/pydf/Makefile b/sysutils/pydf/Makefile
index bb1f37b9afd9..bf5ab62095d2 100644
--- a/sysutils/pydf/Makefile
+++ b/sysutils/pydf/Makefile
@@ -17,30 +17,22 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
SUB_FILES= pkg-message
-PLIST_FILES= bin/pydf etc/pydfrc.sample
-
+USES= shebangfix
USE_PYTHON= yes
NO_BUILD= yes
-MAN1= pydf.1
-MANCOMPRESSED= no
+SHEBANG_FILES= pydf
+PLIST_FILES= bin/pydf etc/pydfrc.sample man/man1/pydf.1.gz
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-NO_STAGE= yes
post-patch:
- @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}| ; s|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/pydf
+ @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}| ; \
+ s|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/pydf
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/pydf ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/pydfrc ${PREFIX}/etc/pydfrc.sample
- ${INSTALL_MAN} ${WRKSRC}/pydf.1 ${PREFIX}/man/man1
-
-post-install:
- @if [ ! -f ${PREFIX}/etc/pydfrc ]; then \
- ${ECHO_MSG} ; \
- ${CAT} ${PKGMESSAGE} ; \
- ${ECHO_MSG} ; \
- fi
+ ${INSTALL_SCRIPT} ${WRKSRC}/pydf ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/pydfrc ${STAGEDIR}${PREFIX}/etc/pydfrc.sample
+ ${INSTALL_MAN} ${WRKSRC}/pydf.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>