summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-09-02 11:45:32 +0000
committerobache <obache@pkgsrc.org>2008-09-02 11:45:32 +0000
commited31e415b1bbeed7fb09474d59b5038d54ae32c5 (patch)
treebf453c80e7644e5fb3fdfdf0a2e98076bb6ea3ab
parent57ec0375c3ec0812d99b1cfd975179009c1ead1d (diff)
downloadpkgsrc-ed31e415b1bbeed7fb09474d59b5038d54ae32c5.tar.gz
Import ocaml-zip-1.03 as archivers/ocaml-zip.
Packaged by Jaap Boender and provided by PR 39113. This Objective Caml library provides easy access to compressed files in ZIP and GZIP format, as well as to Java JAR files. It provides functions for reading from and writing to compressed files in these formats.
-rw-r--r--archivers/ocaml-zip/DESCR3
-rw-r--r--archivers/ocaml-zip/Makefile30
-rw-r--r--archivers/ocaml-zip/PLIST14
-rw-r--r--archivers/ocaml-zip/PLIST.opt6
-rw-r--r--archivers/ocaml-zip/distinfo6
-rw-r--r--archivers/ocaml-zip/files/META7
-rw-r--r--archivers/ocaml-zip/patches/patch-aa26
7 files changed, 92 insertions, 0 deletions
diff --git a/archivers/ocaml-zip/DESCR b/archivers/ocaml-zip/DESCR
new file mode 100644
index 00000000000..ba20dcb4736
--- /dev/null
+++ b/archivers/ocaml-zip/DESCR
@@ -0,0 +1,3 @@
+This Objective Caml library provides easy access to compressed files in ZIP
+and GZIP format, as well as to Java JAR files. It provides functions
+for reading from and writing to compressed files in these formats.
diff --git a/archivers/ocaml-zip/Makefile b/archivers/ocaml-zip/Makefile
new file mode 100644
index 00000000000..06f28a5235b
--- /dev/null
+++ b/archivers/ocaml-zip/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/09/02 11:45:32 obache Exp $
+#
+
+DISTNAME= camlzip-${VERSION}
+PKGNAME= ocaml-zip-${VERSION}
+VERSION= 1.03
+CATEGORIES= archivers
+MASTER_SITES= http://caml.inria.fr/distrib/bazar-ocaml/
+
+MAINTAINER= jaapb@kerguelen.org
+HOMEPAGE= http://cristal.inria.fr/~xleroy/software.html
+COMMENT= OCaml library to manipulate ZIP/GZIP/JAR archives
+
+DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
+
+BUILD_TARGET= all
+
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
+ (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
+BUILD_TARGET+= allopt
+PLIST_SRC+= PLIST.opt
+.endif
+
+PLIST_SRC+= PLIST
+
+post-extract:
+ ${CP} ${FILESDIR}/META ${WRKSRC}/META
+
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/archivers/ocaml-zip/PLIST b/archivers/ocaml-zip/PLIST
new file mode 100644
index 00000000000..b560d10f2f5
--- /dev/null
+++ b/archivers/ocaml-zip/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/09/02 11:45:32 obache Exp $
+@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/zip
+lib/ocaml/site-lib/zip/META
+lib/ocaml/site-lib/zip/dllcamlzip.so
+lib/ocaml/site-lib/zip/gzip.cmi
+lib/ocaml/site-lib/zip/gzip.mli
+lib/ocaml/site-lib/zip/libcamlzip.a
+lib/ocaml/site-lib/zip/zip.cma
+lib/ocaml/site-lib/zip/zip.cmi
+lib/ocaml/site-lib/zip/zip.mli
+lib/ocaml/site-lib/zip/zlib.cmi
+lib/ocaml/site-lib/zip/zlib.mli
+@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/zip
+@dirrm lib/ocaml/site-lib/zip
diff --git a/archivers/ocaml-zip/PLIST.opt b/archivers/ocaml-zip/PLIST.opt
new file mode 100644
index 00000000000..e6ca327c9bc
--- /dev/null
+++ b/archivers/ocaml-zip/PLIST.opt
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST.opt,v 1.1.1.1 2008/09/02 11:45:32 obache Exp $
+lib/ocaml/site-lib/zip/gzip.cmx
+lib/ocaml/site-lib/zip/zip.a
+lib/ocaml/site-lib/zip/zip.cmx
+lib/ocaml/site-lib/zip/zip.cmxa
+lib/ocaml/site-lib/zip/zlib.cmx
diff --git a/archivers/ocaml-zip/distinfo b/archivers/ocaml-zip/distinfo
new file mode 100644
index 00000000000..008658482d9
--- /dev/null
+++ b/archivers/ocaml-zip/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/09/02 11:45:32 obache Exp $
+
+SHA1 (camlzip-1.03.tar.gz) = ecb4cbbdeb673d0aacdc961f38e4a14d5cf1627b
+RMD160 (camlzip-1.03.tar.gz) = fc773c0e351863538817f5c803a1b1d6cf9bc6e5
+Size (camlzip-1.03.tar.gz) = 24562 bytes
+SHA1 (patch-aa) = 1065dd91a8482d283db81e1fa24353f55eb1861f
diff --git a/archivers/ocaml-zip/files/META b/archivers/ocaml-zip/files/META
new file mode 100644
index 00000000000..746bf3568f1
--- /dev/null
+++ b/archivers/ocaml-zip/files/META
@@ -0,0 +1,7 @@
+name="camlzip"
+version="1.03"
+description="reading and writing ZIP, JAR and GZIP files"
+requires="unix"
+archive(byte)="camlzip.cma"
+archive(native)="camlzip.cmxa"
+linkopts = ""
diff --git a/archivers/ocaml-zip/patches/patch-aa b/archivers/ocaml-zip/patches/patch-aa
new file mode 100644
index 00000000000..39e597bffd3
--- /dev/null
+++ b/archivers/ocaml-zip/patches/patch-aa
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/09/02 11:45:32 obache Exp $
+
+--- Makefile.orig 2002-04-22 17:28:57.000000000 +0200
++++ Makefile 2008-02-18 14:25:56.000000000 +0100
+@@ -55,18 +55,9 @@
+ rm -f *.o *.a
+
+ install:
+- mkdir -p $(INSTALLDIR)
+- cp zip.cma zip.cmi gzip.cmi zip.mli gzip.mli libcamlzip.a $(INSTALLDIR)
+- if test -f dllcamlzip.so; then \
+- cp dllcamlzip.so $(INSTALLDIR); \
+- ldconf=`$(OCAMLC) -where`/ld.conf; \
+- installdir=$(INSTALLDIR); \
+- if test `grep -s -c $$installdir'$$' $$ldconf || :` = 0; \
+- then echo $$installdir >> $$ldconf; fi \
+- fi
+-
+-installopt:
+- cp zip.cmxa zip.a zip.cmx gzip.cmx $(INSTALLDIR)
++ ocamlfind install -optional zip META zip.cma zip.cmi gzip.cmi zip.mli \
++ gzip.mli libcamlzip.a dllcamlzip.so zip.cmxa zip.a zip.cmx gzip.cmx \
++ zlib.mli zlib.cmi zlib.cmx
+
+ depend:
+ gcc -MM -I$(ZLIB_INCLUDE) *.c > .depend