archivers/zip-ada: Convert to staging

Also remove extract depends on unzip; base tar can do this.
This commit is contained in:
John Marino 2013-11-10 10:16:54 +00:00
parent ae85921e89
commit 3985ce4927
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333370

View File

@ -12,13 +12,11 @@ COMMENT= Zip compressed archive file format library written in Ada
LICENSE= MIT
NO_STAGE= yes
USES= ada perl5
USE_PERL5= build
USE_ZIP= yes
USE_DOS2UNIX= yes
EXTRACT_SUFX= .zip
WRKSRC= ${WRKDIR}/zip-ada
DESTINY= ${WRKDIR}/destino
MAKE_ENV+= Build_Mode=Optimize
ZTOOLS= zipada comp_zip find_zip rezip bunzip lz
DEMOS= demo_zip demo_unzip ziptest demo_csv_into_zip test_extract \
@ -27,30 +25,29 @@ DEMOS= demo_zip demo_unzip ziptest demo_csv_into_zip test_extract \
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -P zipada.gpr
@${MKDIR} ${DESTINY}${PREFIX}/bin \
${DESTINY}${EXAMPLESDIR} \
${DESTINY}${PREFIX}/include/zip-ada \
${DESTINY}${PREFIX}/lib/zip-ada \
${DESTINY}${PREFIX}/lib/gnat
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/bin \
${STAGEDIR}${EXAMPLESDIR} \
${STAGEDIR}${PREFIX}/include/zip-ada \
${STAGEDIR}${PREFIX}/lib/zip-ada \
${STAGEDIR}${PREFIX}/lib/gnat
@${MKDIR} ${WRKSRC}/obj_tools ${WRKSRC}/obj_demos
.for F in ${ZTOOLS}
@${INSTALL_PROGRAM} ${WRKSRC}/${F} ${DESTINY}${PREFIX}/bin/
@${INSTALL_PROGRAM} ${WRKSRC}/${F} ${STAGEDIR}${PREFIX}/bin/
@${MV} ${WRKSRC}/obj_opt/${F}.* ${WRKSRC}/obj_tools/
.endfor
.for F in ${DEMOS}
@${INSTALL_PROGRAM} ${WRKSRC}/${F} ${DESTINY}${EXAMPLESDIR}/
@${INSTALL_PROGRAM} ${WRKSRC}/${F} ${STAGEDIR}${EXAMPLESDIR}/
@${MV} ${WRKSRC}/obj_opt/${F}.* ${WRKSRC}/obj_demos/
.endfor
@cd ${WRKSRC}/obj_opt && ${AR} rcs libzip-ada.a *.o
@${MV} ${DESTINY}${PREFIX}/bin/bunzip ${DESTINY}${PREFIX}/bin/debzip2
@${MV} ${STAGEDIR}${PREFIX}/bin/bunzip ${STAGEDIR}${PREFIX}/bin/debzip2
@${INSTALL_DATA} ${WRKSRC}/zip_lib/*.ad[sb] \
${DESTINY}${PREFIX}/include/zip-ada/
${STAGEDIR}${PREFIX}/include/zip-ada/
@${INSTALL_DATA} ${WRKSRC}/obj_opt/*.ali \
${DESTINY}${PREFIX}/lib/zip-ada/
@${INSTALL_LIB} ${WRKSRC}/obj_opt/*.a ${DESTINY}${PREFIX}/lib/zip-ada/
@${INSTALL_DATA} ${FILESDIR}/zip-ada.gpr ${DESTINY}${PREFIX}/lib/gnat/
do-install:
${CP} -pR ${DESTINY}${PREFIX}/ ${PREFIX}/
${STAGEDIR}${PREFIX}/lib/zip-ada/
@${INSTALL_LIB} ${WRKSRC}/obj_opt/*.a ${STAGEDIR}${PREFIX}/lib/zip-ada/
@${INSTALL_DATA} ${FILESDIR}/zip-ada.gpr ${STAGEDIR}${PREFIX}/lib/gnat/
.include <bsd.port.mk>