aboutsummaryrefslogtreecommitdiffstats
path: root/devel/viewvc
diff options
context:
space:
mode:
authorwjv <wjv@FreeBSD.org>2001-08-23 21:26:43 +0800
committerwjv <wjv@FreeBSD.org>2001-08-23 21:26:43 +0800
commit59842353320018b64f7fe5c7293d166b6393e0d5 (patch)
tree19e321f1a513de509dd8642c624d213facf7e395 /devel/viewvc
parent70fd2372b0485e1f7c65bdb8259357a8bd988039 (diff)
downloadfreebsd-ports-gnome-59842353320018b64f7fe5c7293d166b6393e0d5.tar.gz
freebsd-ports-gnome-59842353320018b64f7fe5c7293d166b6393e0d5.tar.zst
freebsd-ports-gnome-59842353320018b64f7fe5c7293d166b6393e0d5.zip
- Deploy USE_PYTHON
- Ensure that ${PKGMESSAGE} is created in final form (all substitutions performed) for inclusion in package
Diffstat (limited to 'devel/viewvc')
-rw-r--r--devel/viewvc/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/devel/viewvc/Makefile b/devel/viewvc/Makefile
index 8854dc730a34..e79a019a2858 100644
--- a/devel/viewvc/Makefile
+++ b/devel/viewvc/Makefile
@@ -13,20 +13,23 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
-BUILD_DEPENDS= python:${PORTSDIR}/lang/python
-RUN_DEPENDS= python:${PORTSDIR}/lang/python
-
+USE_PYTHON= yes
NO_BUILD= yes
+PKGMESSAGE= ${WRKDIR}/pkg-message
pre-install:
- ${PERL} -pi -e "s:/usr/local/viewcvs-dev:${PREFIX}/share/viewcvs:g" ${WRKSRC}/viewcvs-install
+ @ ${PERL} -pi -e "s:/usr/local/viewcvs-dev:${PREFIX}/share/viewcvs:g" \
+ ${WRKSRC}/viewcvs-install
do-install:
- (cd ${WRKSRC} && ${LOCALBASE}/bin/python ${WRKSRC}/viewcvs-install)
+ @ cd ${WRKSRC} && ${PYTHON_CMD} viewcvs-install
post-install:
- @${ECHO}
- @${CAT} ${PKGMESSAGE} | ${SED} -e "s:%%PREFIX%%:${PREFIX}:g"
- @${ECHO}
+ @ ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" pkg-message >${PKGMESSAGE}
+.if !defined(BATCH)
+ @ ${ECHO}
+ @ ${CAT} ${PKGMESSAGE}
+ @ ${ECHO}
+.endif
.include <bsd.port.mk>