- Deploy USE_PYTHON

- Ensure that ${PKGMESSAGE} is created in final form (all substitutions
  performed) for inclusion in package
This commit is contained in:
Johann Visagie 2001-08-23 13:26:43 +00:00
parent 0ceeb37c93
commit 11c04b6c86
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46713
2 changed files with 22 additions and 16 deletions

View File

@ -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>

View File

@ -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>