ports/130507: [update] port: archivers/ocaml-zip (ocamlfind compatibility)

Jaap Boender jaapb at kerguelen.org
Tue Jan 13 14:50:03 UTC 2009


>Number:         130507
>Category:       ports
>Synopsis:       [update] port: archivers/ocaml-zip (ocamlfind compatibility)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 13 14:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Jaap Boender
>Release:        7.1-STABLE
>Organization:
>Environment:
FreeBSD marion-dufresne.pps.jussieu.fr 7.1-STABLE FreeBSD 7.1-STABLE #3: Sat Jan 10 15:46:24 CET 2009     root at marion-dufresne.pps.jussieu.fr:/usr/obj/usr/src/sys/MARION-DUFRESNE  i386

>Description:
This is a small update to the archivers/ocaml-zip port:

- it installs a META file for use with ocaml-findlib (findlib is still not necessary to install or run the port, but if it is there, it will detect the port);
- I've slightly changed the Makefile to install some files (zlib.cmi and zlib.mli) that are needed by www/ocsigen.

>How-To-Repeat:
n/a
>Fix:
diff added.

Patch attached with submission follows:

diff -ruN ocaml-zip/Makefile ocaml-zip.new/Makefile
--- ocaml-zip/Makefile	2007-05-19 21:57:44.000000000 +0200
+++ ocaml-zip.new/Makefile	2009-01-13 14:57:40.000000000 +0100
@@ -8,7 +8,7 @@
 
 PORTNAME=	zip
 PORTVERSION=	1.03
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	archivers
 MASTER_SITES=	http://caml.inria.fr/distrib/bazar-ocaml/
 PKGNAMEPREFIX=	ocaml-
@@ -47,6 +47,7 @@
 .endif
 
 post-install:
+	@${INSTALL_DATA} ${FILESDIR}/META ${OCAMLFIND_DESTDIR}/${PORTNAME}
 	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
 		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
 	@${ECHO_CMD} "@dirrm ${OCAML_SITELIBDIR}/${PORTNAME}" >> ${TMPPLIST}
diff -ruN ocaml-zip/files/META ocaml-zip.new/files/META
--- ocaml-zip/files/META	1970-01-01 01:00:00.000000000 +0100
+++ ocaml-zip.new/files/META	2008-04-04 16:53:06.000000000 +0200
@@ -0,0 +1,8 @@
+name="zip"
+version="1.03"
+description="reading and writing ZIP, JAR and GZIP files"
+requires="unix"
+archive(byte)="zip.cma"
+archive(native)="zip.cmxa"
+linkopts = ""
+
diff -ruN ocaml-zip/files/patch-Makefile ocaml-zip.new/files/patch-Makefile
--- ocaml-zip/files/patch-Makefile	1970-01-01 01:00:00.000000000 +0100
+++ ocaml-zip.new/files/patch-Makefile	2009-01-13 14:57:00.000000000 +0100
@@ -0,0 +1,11 @@
+--- Makefile.orig	2009-01-13 14:56:33.000000000 +0100
++++ Makefile	2009-01-13 14:56:52.000000000 +0100
+@@ -56,7 +56,7 @@
+ 
+ install:
+ 	mkdir -p $(INSTALLDIR)
+-	${BSD_INSTALL_DATA} zip.cma zip.cmi gzip.cmi zip.mli gzip.mli libcamlzip.a $(INSTALLDIR)
++	${BSD_INSTALL_DATA} zip.cma zip.cmi gzip.cmi zip.mli gzip.mli zlib.cmi zlib.mli libcamlzip.a $(INSTALLDIR)
+ 	if test -f dllcamlzip.so; then \
+ 	  ${BSD_INSTALL_DATA} dllcamlzip.so $(INSTALLDIR); \
+           installdir=$(INSTALLDIR); \


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list