summaryrefslogtreecommitdiff
path: root/misc/tkrunit/Makefile
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2013-11-06 15:13:25 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2013-11-06 15:13:25 +0000
commitc0b6d64dd3198644df036a816655550014db0737 (patch)
tree18bbc6b1f6cfb7485ee1837d06819aa022757b90 /misc/tkrunit/Makefile
parentdatabases/py-Pyrseas: Utilities to upgrade and maintain a relational database (diff)
- Convert to USES+=tk
- Convert EXAMPLES to OPTIONSng - STAGE-clean
Notes
Notes: svn path=/head/; revision=333002
Diffstat (limited to '')
-rw-r--r--misc/tkrunit/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/misc/tkrunit/Makefile b/misc/tkrunit/Makefile
index 4246b9baca01..4778934f87e1 100644
--- a/misc/tkrunit/Makefile
+++ b/misc/tkrunit/Makefile
@@ -11,26 +11,27 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
MAINTAINER= ports@FreeBSD.org
COMMENT= GUI app launcher with completion and history
+OPTIONS_DEFINE= EXAMPLES
+
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}
+USES+= tk
NO_BUILD= yes
-USE_TK_WRAPPER= yes
-
PORTEXAMPLES= ${PORTNAME:L}
PLIST_FILES= bin/${PORTNAME}
-NO_STAGE= yes
+.include <bsd.port.options.mk>
+
post-patch:
- @${REINPLACE_CMD} -e \
- 's|/usr/local/bin|${PREFIX}/bin|' ${WRKSRC}/runit.tcl
+ @${REINPLACE_CMD} -e 's|wish|${WISH}|g' ${WRKSRC}/runit.tcl
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/runit.tcl ${PREFIX}/bin/${PORTNAME}
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/runitrc.sample ${EXAMPLESDIR}/${PORTNAME:L}
+ ${INSTALL_SCRIPT} ${WRKSRC}/runit.tcl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/runitrc.sample ${STAGEDIR}${EXAMPLESDIR}/${PORTNAME:L}
@${ECHO_MSG} " "
@${ECHO_MSG} "-------------------------------------------------------------------"
@${ECHO_MSG} "===> Installing runitrc.sample in ${EXAMPLESDIR}/${PORTNAME:L}"