lang/asis: Convert to staging
This commit is contained in:
parent
6f981cef73
commit
b0464017bb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333400
@ -15,12 +15,9 @@ BUILD_DEPENDS= gnat_util>=2013:${PORTSDIR}/lang/gnat_util \
|
||||
xmlada>=3.2:${PORTSDIR}/textproc/xmlada
|
||||
|
||||
USES= ada gmake
|
||||
NO_MTREE= yes
|
||||
MAKE_ENV= PROCESSORS=${MAKE_JOBS_NUMBER}
|
||||
|
||||
DESTINY= ${WRKDIR}/destino
|
||||
MAKE_ENV= DESTDIR=${DESTINY} \
|
||||
PROCESSORS=${MAKE_JOBS_NUMBER}
|
||||
|
||||
NO_STAGE= yes
|
||||
post-extract:
|
||||
@${REINPLACE_CMD} -e 's|OPSYS|ASISOPSYS|g' \
|
||||
${WRKSRC}/Makefile \
|
||||
@ -31,20 +28,18 @@ post-extract:
|
||||
do-build:
|
||||
# This target is recreated because -j cannot be set, but
|
||||
# MAKE_JOBS_SAFE=yes is needed for PROCESSORS value
|
||||
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gmake all
|
||||
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gmake ${MAKE_ARGS} all
|
||||
|
||||
post-install:
|
||||
${CP} -pR ${DESTINY}${PREFIX}/ ${PREFIX}/
|
||||
@cd ${DESTINY}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
|
||||
${SORT} > ${WRKDIR}/PLIST.all
|
||||
@cd ${DESTINY}${PREFIX}; ${FIND} * -type d | ${AWK} '/\//' | \
|
||||
@cd ${STAGEDIR}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
|
||||
${SORT} > ${TMPPLIST}
|
||||
@cd ${STAGEDIR}${PREFIX}; ${FIND} * -type d | ${AWK} '/\//' | \
|
||||
${SORT} -r | ${SED} -e '/lib\/gnat$$/d' -e '/share\/doc$$/d' \
|
||||
-e '/share\/gps$$/d' -e '/share\/gps\/plug-ins$$/d' \
|
||||
-e 's/^/@dirrm /g' >> ${WRKDIR}/PLIST.all
|
||||
@echo "@unexec rmdir %D/lib/gnat 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
|
||||
@echo "@unexec rmdir %D/share/doc 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
|
||||
@echo "@unexec rmdir %D/share/gps/plug-ins 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
|
||||
@echo "@unexec rmdir %D/share/gps 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
|
||||
@${CAT} ${WRKDIR}/PLIST.all >> ${TMPPLIST}
|
||||
-e 's/^/@dirrm /g' >> ${TMPPLIST}
|
||||
@echo "@unexec rmdir %D/lib/gnat 2>/dev/null || true" >> ${TMPPLIST}
|
||||
@echo "@unexec rmdir %D/share/doc 2>/dev/null || true" >> ${TMPPLIST}
|
||||
@echo "@unexec rmdir %D/share/gps/plug-ins 2>/dev/null || true" >> ${TMPPLIST}
|
||||
@echo "@unexec rmdir %D/share/gps 2>/dev/null || true" >> ${TMPPLIST}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user