diff options
author | marino <marino@FreeBSD.org> | 2013-08-23 07:25:49 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2013-08-23 07:25:49 +0800 |
commit | 0616908345c35ce8903c4148c014c75e44472ce5 (patch) | |
tree | 69b71c5671b5d261486e8a2973b2af82d7c0c2b8 | |
parent | 93f7aecc2f6bfc8be53127340f93fe1c180cd920 (diff) | |
download | freebsd-ports-gnome-0616908345c35ce8903c4148c014c75e44472ce5.tar.gz freebsd-ports-gnome-0616908345c35ce8903c4148c014c75e44472ce5.tar.zst freebsd-ports-gnome-0616908345c35ce8903c4148c014c75e44472ce5.zip |
Add new port: archivers/zip-ada
The Zip-Ada library is written entirely in Ada, allowing compression
operations without any OS-dependent external calls on streams and files.
Approved by: bapt/culot (mentors, implicit)
-rw-r--r-- | archivers/Makefile | 1 | ||||
-rw-r--r-- | archivers/zip-ada/Makefile | 55 | ||||
-rw-r--r-- | archivers/zip-ada/distinfo | 2 | ||||
-rw-r--r-- | archivers/zip-ada/files/patch-zipada.gpr | 11 | ||||
-rw-r--r-- | archivers/zip-ada/files/zip-ada.gpr | 9 | ||||
-rw-r--r-- | archivers/zip-ada/pkg-descr | 11 | ||||
-rw-r--r-- | archivers/zip-ada/pkg-plist | 75 |
7 files changed, 164 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile index eee4428061bd..a76f1eaa0db3 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -218,6 +218,7 @@ SUBDIR += xpk SUBDIR += xz SUBDIR += zip + SUBDIR += zip-ada SUBDIR += zipmix SUBDIR += zipper SUBDIR += zoo diff --git a/archivers/zip-ada/Makefile b/archivers/zip-ada/Makefile new file mode 100644 index 000000000000..cf44f6b42da0 --- /dev/null +++ b/archivers/zip-ada/Makefile @@ -0,0 +1,55 @@ +# Created by: John Marino <marino@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= zip-ada +PORTVERSION= 45 +CATEGORIES= archivers +MASTER_SITES= SF/unzip-ada/ +DISTNAME= zipada${PORTVERSION} + +MAINTAINER= marino@FreeBSD.org +COMMENT= Zip compressed archive file format library written in Ada + +LICENSE= MIT + +USES= ada perl5 +USE_PERL5= build +USE_ZIP= yes +USE_DOS2UNIX= yes +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 \ + test_extract_tb test_unz_streams za_gnat test_chunk \ + zip_with_many_files + +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 + @${MKDIR} ${WRKSRC}/obj_tools ${WRKSRC}/obj_demos +.for F in ${ZTOOLS} + @${INSTALL_PROGRAM} ${WRKSRC}/${F} ${DESTINY}${PREFIX}/bin/ + @${MV} ${WRKSRC}/obj_opt/${F}.* ${WRKSRC}/obj_tools/ +.endfor +.for F in ${DEMOS} + @${INSTALL_PROGRAM} ${WRKSRC}/${F} ${DESTINY}${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 + @${INSTALL_DATA} ${WRKSRC}/zip_lib/*.ad[sb] \ + ${DESTINY}${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}/ + +.include <bsd.port.mk> diff --git a/archivers/zip-ada/distinfo b/archivers/zip-ada/distinfo new file mode 100644 index 000000000000..769066f566ae --- /dev/null +++ b/archivers/zip-ada/distinfo @@ -0,0 +1,2 @@ +SHA256 (zipada45.zip) = 47908e8ca7da54ce8240b320d13de1f17ba98cf432a39d96bde134d290b472b3 +SIZE (zipada45.zip) = 429061 diff --git a/archivers/zip-ada/files/patch-zipada.gpr b/archivers/zip-ada/files/patch-zipada.gpr new file mode 100644 index 000000000000..8b58aa698d66 --- /dev/null +++ b/archivers/zip-ada/files/patch-zipada.gpr @@ -0,0 +1,11 @@ +--- zipada.gpr.orig 2012-11-05 01:58:28.000000000 +0000 ++++ zipada.gpr +@@ -15,7 +15,7 @@ project ZipAda is + "demo_unzip.adb", "bunzip", "lz", "test_unz_streams.adb", + "test_chunk.adb", "ziptest.adb", "zip_with_many_files.adb", + "test_extract.adb", "test_extract_tb.ads", +- "za_gnat.ads", "unzipada.adb", "uza_gnat.ads" ++ "za_gnat.ads" + ); + + case Build_Mode is diff --git a/archivers/zip-ada/files/zip-ada.gpr b/archivers/zip-ada/files/zip-ada.gpr new file mode 100644 index 000000000000..03e338f6535e --- /dev/null +++ b/archivers/zip-ada/files/zip-ada.gpr @@ -0,0 +1,9 @@ +project ZipAda is + + for Languages use ("ada"); + for Source_Dirs use ("../../include/zip-ada"); + for Library_Name use "zip-ada"; + for Library_Dir use "../../lib/zip-ada"; + for Externally_Built use "true"; + +end ZipAda; diff --git a/archivers/zip-ada/pkg-descr b/archivers/zip-ada/pkg-descr new file mode 100644 index 000000000000..0e69901c82e5 --- /dev/null +++ b/archivers/zip-ada/pkg-descr @@ -0,0 +1,11 @@ +The Zip-Ada library is written entirely in Ada, allowing compression +operations without any OS-dependent external calls on streams and files. + +In addition to the library and command-line demos, it has these tools: + * zipada - create compressed Zip archive + * comp_zip - utility to compare contents of two Zip archives + * find_zip - utility to search for text stream of Zip archive + * rezip - tool for recompressing Zip archives towards optimal compression + * debzip2 - tool to decompress BZip2 compressed files (.bz2) + +WWW: http://unzip-ada.sourceforge.net diff --git a/archivers/zip-ada/pkg-plist b/archivers/zip-ada/pkg-plist new file mode 100644 index 000000000000..2d83213b127c --- /dev/null +++ b/archivers/zip-ada/pkg-plist @@ -0,0 +1,75 @@ +bin/comp_zip +bin/debzip2 +bin/find_zip +bin/lz +bin/rezip +bin/zipada +include/zip-ada/bzip2.adb +include/zip-ada/bzip2.ads +include/zip-ada/unzip-decompress-huffman.adb +include/zip-ada/unzip-decompress-huffman.ads +include/zip-ada/unzip-decompress.adb +include/zip-ada/unzip-decompress.ads +include/zip-ada/unzip-streams.adb +include/zip-ada/unzip-streams.ads +include/zip-ada/unzip.adb +include/zip-ada/unzip.ads +include/zip-ada/zip-compress-deflate.adb +include/zip-ada/zip-compress-deflate.ads +include/zip-ada/zip-compress-reduce.adb +include/zip-ada/zip-compress-reduce.ads +include/zip-ada/zip-compress-shrink.adb +include/zip-ada/zip-compress-shrink.ads +include/zip-ada/zip-compress.adb +include/zip-ada/zip-compress.ads +include/zip-ada/zip-crc.adb +include/zip-ada/zip-crc.ads +include/zip-ada/zip-create.adb +include/zip-ada/zip-create.ads +include/zip-ada/zip-headers.adb +include/zip-ada/zip-headers.ads +include/zip-ada/zip-lz77.adb +include/zip-ada/zip-lz77.ads +include/zip-ada/zip.adb +include/zip-ada/zip.ads +include/zip-ada/zip_streams.adb +include/zip-ada/zip_streams.ads +lib/gnat/zip-ada.gpr +lib/zip-ada/bzip2.ali +lib/zip-ada/comp_zip_prc.ali +lib/zip-ada/dual_io.ali +lib/zip-ada/flexible_temp_files.ali +lib/zip-ada/libzip-ada.a +lib/zip-ada/lzh.ali +lib/zip-ada/my_dots.ali +lib/zip-ada/my_feedback.ali +lib/zip-ada/rw_file.ali +lib/zip-ada/tb_wrap.ali +lib/zip-ada/unzip-decompress-huffman.ali +lib/zip-ada/unzip-decompress.ali +lib/zip-ada/unzip-streams.ali +lib/zip-ada/unzip.ali +lib/zip-ada/zip-compress-deflate.ali +lib/zip-ada/zip-compress-reduce.ali +lib/zip-ada/zip-compress-shrink.ali +lib/zip-ada/zip-compress.ali +lib/zip-ada/zip-crc.ali +lib/zip-ada/zip-create.ali +lib/zip-ada/zip-headers.ali +lib/zip-ada/zip-lz77.ali +lib/zip-ada/zip.ali +lib/zip-ada/zip_streams.ali +%%EXAMPLESDIR%%/demo_csv_into_zip +%%EXAMPLESDIR%%/demo_unzip +%%EXAMPLESDIR%%/demo_zip +%%EXAMPLESDIR%%/test_chunk +%%EXAMPLESDIR%%/test_extract +%%EXAMPLESDIR%%/test_extract_tb +%%EXAMPLESDIR%%/test_unz_streams +%%EXAMPLESDIR%%/za_gnat +%%EXAMPLESDIR%%/zip_with_many_files +%%EXAMPLESDIR%%/ziptest +@dirrm lib/zip-ada +@dirrm include/zip-ada +@dirrm %%EXAMPLESDIR%% +@dirrmtry lib/gnat |