Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2013 15:13:25 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333002 - head/misc/tkrunit
Message-ID:  <201311061513.rA6FDPqi024683@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Wed Nov  6 15:13:25 2013
New Revision: 333002
URL: http://svnweb.freebsd.org/changeset/ports/333002

Log:
  - Convert to USES+=tk
  - Convert EXAMPLES to OPTIONSng
  - STAGE-clean

Modified:
  head/misc/tkrunit/Makefile   (contents, props changed)

Modified: head/misc/tkrunit/Makefile
==============================================================================
--- head/misc/tkrunit/Makefile	Wed Nov  6 15:04:01 2013	(r333001)
+++ head/misc/tkrunit/Makefile	Wed Nov  6 15:13:25 2013	(r333002)
@@ -11,26 +11,27 @@ DISTNAME=	${PORTNAME}-${PORTVERSION:S/./
 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}"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311061513.rA6FDPqi024683>