1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

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)
This commit is contained in:
John Marino 2013-08-22 23:25:49 +00:00
parent 8ff04a27b2
commit 37e379365d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325243
7 changed files with 164 additions and 0 deletions

View File

@ -218,6 +218,7 @@
SUBDIR += xpk
SUBDIR += xz
SUBDIR += zip
SUBDIR += zip-ada
SUBDIR += zipmix
SUBDIR += zipper
SUBDIR += zoo

View File

@ -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>

View File

@ -0,0 +1,2 @@
SHA256 (zipada45.zip) = 47908e8ca7da54ce8240b320d13de1f17ba98cf432a39d96bde134d290b472b3
SIZE (zipada45.zip) = 429061

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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