lang/gnat_util: Convert to staging

This commit is contained in:
John Marino 2013-11-10 15:20:10 +00:00
parent a1385b8a28
commit 774b1c5074
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333404

View file

@ -13,13 +13,11 @@ COMMENT= Library used to build GNAT tools such as ASIS
USES= ada
USE_BZIP2= yes
NO_MTREE= yes
DISTINFO_FILE= ${.CURDIR}/../gcc-aux/distinfo
WRKSRC= ${WRKDIR}/${PORTNAME}
DESTINY= ${WRKDIR}/destino
MAKE_ENV= DESTDIR=${DESTINY} \
MAKEOBJDIR=${WRKSRC}/obj
MAKE_ENV= MAKEOBJDIR=${WRKSRC}/obj
NO_STAGE= yes
.include "${.CURDIR}/Makefile.sources"
.include "${.CURDIR}/../gcc-aux/Makefile.version"
.include <bsd.port.pre.mk>
@ -34,14 +32,12 @@ post-extract:
.endfor
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 's/^/@dirrm /g' \
>> ${WRKDIR}/PLIST.all
@echo "@unexec rmdir %D/lib/gnat 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
@${CAT} ${WRKDIR}/PLIST.all >> ${TMPPLIST}
>> ${TMPPLIST}
@echo "@unexec rmdir %D/lib/gnat 2>/dev/null || true" >> ${TMPPLIST}
.include <bsd.port.post.mk>