From b028024cc78daa5e7240009e4157a741899974aa Mon Sep 17 00:00:00 2001 From: John Marino Date: Sun, 10 Nov 2013 16:22:47 +0000 Subject: [PATCH] www/aws(-demos): Convert to staging * Convert USE_GMAKE to USES --- www/aws-demos/Makefile | 8 +++----- www/aws/Makefile | 40 ++++++++++++++++++---------------------- 2 files changed, 21 insertions(+), 27 deletions(-) diff --git a/www/aws-demos/Makefile b/www/aws-demos/Makefile index 47d8ac3a991b..8afeeed24380 100644 --- a/www/aws-demos/Makefile +++ b/www/aws-demos/Makefile @@ -15,8 +15,7 @@ BUILD_DEPENDS+= gprbuild>=20120510:${PORTSDIR}/devel/gprbuild \ aws>=3.1:${PORTSDIR}/www/aws USE_BZIP2= yes -USE_GMAKE= yes -USES= ada +USES= ada gmake CONF_ARGS= PROCESSORS=1 CONF_ARGS+= GCC=ada @@ -58,7 +57,6 @@ DEMO_DIRS+= zdemo #DEMO_DIRS+= hello_wsdl #DEMO_DIRS+= interoplab -NO_STAGE= yes .include .if ${PORT_OPTIONS:MSSL} @@ -96,10 +94,10 @@ do-build: .endfor do-install: - @${MKDIR} ${PREFIX}/share/examples/aws-demos + @${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/aws-demos .for dd in ${DEMO_DIRS} ${FIND} ${WRKSRC}/demos/${dd} -type f -perm -0001 \ - -exec ${INSTALL} {} ${PREFIX}/share/examples/aws-demos/ \; + -exec ${INSTALL} {} ${STAGEDIR}${PREFIX}/share/examples/aws-demos/ \; .endfor .include diff --git a/www/aws/Makefile b/www/aws/Makefile index 04e92c44d4c7..f749192d5e0c 100644 --- a/www/aws/Makefile +++ b/www/aws/Makefile @@ -16,8 +16,8 @@ BUILD_DEPENDS= gprbuild>=20120510:${PORTSDIR}/devel/gprbuild \ USE_PYTHON= yes USE_BZIP2= yes GNU_CONFIGURE= yes -USE_GMAKE= yes -USES= ada +NO_MTREE= yes +USES= ada gmake DOTBUILD= release ADDL_RPATH= ${LOCALBASE}/lib:${LOCALBASE}/lib/aws/native/relocatable @@ -32,8 +32,7 @@ DSRT_DESC= Disable shared runtime RELOC_DESC= Build shared libraries (default is static) IP6_DESC= Support IPv6 instead of IPv4 -DESTINY= ${WRKDIR}/destino -MAKE_ENV+= DESTDIR=${DESTINY} AWK=${AWK} +MAKE_ENV+= AWK=${AWK} MAKEFILE= makefile CONF_ARGS= PROCESSORS=${MAKE_JOBS_NUMBER} @@ -45,7 +44,6 @@ CONF_ARGS+= prefix=${PREFIX} CONF_ARGS+= LPATH=${PREFIX}/lib CONF_ARGS+= ZPATH=/usr/lib -NO_STAGE= yes .include ################### @@ -116,30 +114,28 @@ do-configure: ${GMAKE} setup ${CONF_ARGS} do-build: - # We cannot use a redefined ALL_TARGET because MAKE_JOBS_SAFE is set - # for PROCESSORS, but that also sets -j for gmake which breaks build +# We cannot use a redefined ALL_TARGET because MAKE_JOBS_SAFE is set +# for PROCESSORS, but that also sets -j for gmake which breaks build cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ - ${GMAKE} build build_doc + ${GMAKE} ${MAKE_ARGS} build build_doc test: install @cd ${WRKSRC}/regtests && ${SETENV} ${MAKE_ENV} \ python${PYTHON_VER} testsuite.py post-install: - # AWS plist changes due to options are complex, and are not simply - # additive. Trying to capture every permutation is error prone and - # tedious, so a generated PLIST is the way to go. - @${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} '/\//' | ${SORT} -r | \ +# AWS plist changes due to options are complex, and are not simply +# additive. Trying to capture every permutation is error prone and +# tedious, so a generated PLIST is the way to go. + @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\/examples$$/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/gps/plug-ins 2>/dev/null || true" >> ${WRKDIR}/PLIST.all - @echo "@unexec rmdir %D/share/gps 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/examples 2>/dev/null || true" >> ${WRKDIR}/PLIST.all - @${CAT} ${WRKDIR}/PLIST.all >> ${TMPPLIST} + -e '/share\/examples$$/d' -e 's/^/@dirrm /g' >> ${TMPPLIST} + @echo "@unexec rmdir %D/lib/gnat 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} + @echo "@unexec rmdir %D/share/doc 2>/dev/null || true" >> ${TMPPLIST} + @echo "@unexec rmdir %D/share/examples 2>/dev/null || true" >> ${TMPPLIST} .include