- Deploy USE_PYTHON
- Ensure that ${PKGMESSAGE} is created in final form (all substitutions performed) for inclusion in package
This commit is contained in:
parent
0ceeb37c93
commit
11c04b6c86
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46713
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user