summaryrefslogtreecommitdiff
path: root/archivers/ocaml-zip
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-30 17:43:42 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-30 17:43:42 +0000
commit84f26a182c43f0f6209551c07b8c8f959df8f0f8 (patch)
tree6c8d03316fcd003f94741464181ed478a0a0da18 /archivers/ocaml-zip
parentaa1a7a69809e1b804e67cf69e2c458be65dfbe7d (diff)
downloadpkgsrc-84f26a182c43f0f6209551c07b8c8f959df8f0f8.tar.gz
DESTDIR support
Diffstat (limited to 'archivers/ocaml-zip')
-rw-r--r--archivers/ocaml-zip/Makefile4
-rw-r--r--archivers/ocaml-zip/distinfo4
-rw-r--r--archivers/ocaml-zip/patches/patch-aa20
3 files changed, 20 insertions, 8 deletions
diff --git a/archivers/ocaml-zip/Makefile b/archivers/ocaml-zip/Makefile
index 06f28a5235b..eb50544763e 100644
--- a/archivers/ocaml-zip/Makefile
+++ b/archivers/ocaml-zip/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/09/02 11:45:32 obache Exp $
+# $NetBSD: Makefile,v 1.2 2010/01/30 17:43:42 joerg Exp $
#
DISTNAME= camlzip-${VERSION}
@@ -11,6 +11,8 @@ MAINTAINER= jaapb@kerguelen.org
HOMEPAGE= http://cristal.inria.fr/~xleroy/software.html
COMMENT= OCaml library to manipulate ZIP/GZIP/JAR archives
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
BUILD_TARGET= all
diff --git a/archivers/ocaml-zip/distinfo b/archivers/ocaml-zip/distinfo
index 008658482d9..9f195a93178 100644
--- a/archivers/ocaml-zip/distinfo
+++ b/archivers/ocaml-zip/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/09/02 11:45:32 obache Exp $
+$NetBSD: distinfo,v 1.2 2010/01/30 17:43:42 joerg 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
+SHA1 (patch-aa) = 8acb69bc5dfb3b0b7eaab9f4caab81d8a7a4844b
diff --git a/archivers/ocaml-zip/patches/patch-aa b/archivers/ocaml-zip/patches/patch-aa
index 39e597bffd3..e1ebd7118e2 100644
--- a/archivers/ocaml-zip/patches/patch-aa
+++ b/archivers/ocaml-zip/patches/patch-aa
@@ -1,8 +1,17 @@
-$NetBSD: patch-aa,v 1.1.1.1 2008/09/02 11:45:32 obache Exp $
+$NetBSD: patch-aa,v 1.2 2010/01/30 17:43:42 joerg Exp $
---- Makefile.orig 2002-04-22 17:28:57.000000000 +0200
-+++ Makefile 2008-02-18 14:25:56.000000000 +0100
-@@ -55,18 +55,9 @@
+--- Makefile.orig 2002-04-22 15:28:57.000000000 +0000
++++ Makefile
+@@ -11,7 +11,7 @@ ZLIB_INCLUDE=/usr/local/include
+
+ # Where to install the library. By default: sub-directory 'zip' of
+ # OCaml's standard library directory.
+-INSTALLDIR=`$(OCAMLC) -where`/zip
++INSTALLDIR=`$(OCAMLC) -where`/site-lib
+
+ ### End of configuration section
+
+@@ -55,18 +55,10 @@ clean:
rm -f *.o *.a
install:
@@ -18,7 +27,8 @@ $NetBSD: patch-aa,v 1.1.1.1 2008/09/02 11:45:32 obache Exp $
-
-installopt:
- cp zip.cmxa zip.a zip.cmx gzip.cmx $(INSTALLDIR)
-+ ocamlfind install -optional zip META zip.cma zip.cmi gzip.cmi zip.mli \
++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(INSTALLDIR)
++ ocamlfind install -destdir ${DESTDIR}$(INSTALLDIR) -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