View | Details | Raw Unified | Return to bug 263005
Collapse All | Expand All

(-)b/archivers/ocaml-zip/Makefile (-16 / +18 lines)
Lines 1-11 Link Here
1
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
1
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
2
2
3
PORTNAME=	zip
3
PORTNAME=	camlzip
4
PORTVERSION=	1.06
4
PORTVERSION=	111
5
DISTVERSIONPREFIX=	rel
5
CATEGORIES=	archivers
6
CATEGORIES=	archivers
6
MASTER_SITES=	https://download.ocamlcore.org/camlzip/camlzip/${PORTVERSION}/
7
PKGNAMEPREFIX=	ocaml-
7
PKGNAMEPREFIX=	ocaml-
8
DISTNAME=	caml${PORTNAME}-${PORTVERSION}
9
8
10
MAINTAINER=	danfe@FreeBSD.org
9
MAINTAINER=	danfe@FreeBSD.org
11
COMMENT=	OCaml library to manipulate ZIP/GZIP/JAR archives
10
COMMENT=	OCaml library to manipulate ZIP/GZIP/JAR archives
Lines 13-38 COMMENT= OCaml library to manipulate ZIP/GZIP/JAR archives Link Here
13
LICENSE=	LGPL21
12
LICENSE=	LGPL21
14
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
15
14
15
USE_GITHUB=	yes
16
GH_ACCOUNT=	xavierleroy
17
18
USES=		gmake
16
USE_OCAML=	yes
19
USE_OCAML=	yes
17
USE_OCAML_LDCONFIG=yes
20
USE_OCAML_FINDLIB=	yes
21
USE_OCAML_LDCONFIG=	yes
18
USE_OCAML_WASH=	yes
22
USE_OCAML_WASH=	yes
19
23
20
ALL_TARGET=	all allopt
24
ALL_TARGET=	all allopt
21
INSTALL_TARGET=	install installopt
22
PATTERN=	([[:space:]]*)cp([[:space:]]+.*)
23
25
24
post-extract:
26
pre-configure:
25
# PREFIX, CFLAGS and permissions safeness
27
# PREFIX, CFLAGS and permissions safeness
26
	@${REINPLACE_CMD} -E \
28
	${REINPLACE_CMD} -E \
27
		-e "s,${PATTERN},\1\$${BSD_INSTALL_DATA}\2," \
28
		-e "s,(-ccopt[[:space:]])-g,\1\"${CFLAGS}\"," \
29
		-e "s,(-ccopt[[:space:]])-g,\1\"${CFLAGS}\"," \
29
		-e "s,^(INSTALLDIR=).*,\1${STAGEDIR}${OCAMLFIND_DESTDIR}/zip," \
30
		-e "s,ocamlfind install,ocamlfind install -destdir ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR} -ldconf ${STAGEDIR}${PREFIX}/${OCAML_LDCONF}," \
30
		-e "/ldconf/d" ${WRKSRC}/Makefile
31
			${WRKSRC}/Makefile
32
33
pre-install:
34
	${MKDIR} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}
31
35
32
post-install:
36
post-install:
33
	${INSTALL_DATA} ${FILESDIR}/META ${STAGEDIR}${OCAMLFIND_DESTDIR}/${PORTNAME}
37
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/zip/zip.cmxs
34
	@${FIND} ${STAGEDIR}${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
38
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/zip/dllcamlzip.so
35
		${SED} "s,^${STAGEDIR}${PREFIX}/,," >> ${TMPPLIST}
36
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib/zip/dllcamlzip.so
37
39
38
.include <bsd.port.mk>
40
.include <bsd.port.mk>
(-)b/archivers/ocaml-zip/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1559737560
1
TIMESTAMP = 1648625183
2
SHA256 (camlzip-1.06.tar.gz) = c83877f9972943e6f2e147cf9715a785da2fc8531e7bed3ab4787043b8f4cf54
2
SHA256 (xavierleroy-camlzip-rel111_GH0.tar.gz) = ffbbc5de3e1c13dc0e59272376d232d2ede91b327551063d47fddb74f1d5ed37
3
SIZE (camlzip-1.06.tar.gz) = 26499
3
SIZE (xavierleroy-camlzip-rel111_GH0.tar.gz) = 28483
(-)a/archivers/ocaml-zip/files/META (-7 lines)
Removed Link Here
1
name="zip"
2
version="1.04"
3
description="reading and writing ZIP, JAR and GZIP files"
4
requires="unix"
5
archive(byte)="zip.cma"
6
archive(native)="zip.cmxa"
7
linkopts = ""
(-)a/archivers/ocaml-zip/files/patch-Makefile (-11 lines)
Removed Link Here
1
--- Makefile.orig	2015-10-01 02:48:15 UTC
2
+++ Makefile
3
@@ -56,7 +56,7 @@ clean:
4
 
5
 install:
6
 	mkdir -p $(INSTALLDIR)
7
-	${BSD_INSTALL_DATA} zip.cma zip.cmi gzip.cmi zip.mli gzip.mli libcamlzip.a $(INSTALLDIR)
8
+	${BSD_INSTALL_DATA} zip.cma zip.cmi gzip.cmi zip.mli gzip.mli zlib.cmi zlib.mli libcamlzip.a $(INSTALLDIR)
9
 	if test -f dllcamlzip.so; then \
10
 	  ${BSD_INSTALL_DATA} dllcamlzip.so $(INSTALLDIR); \
11
           installdir=$(INSTALLDIR); \
(-)b/archivers/ocaml-zip/pkg-descr (-1 / +1 lines)
Lines 2-5 This Objective Caml library provides easy access to compressed files in ZIP Link Here
2
and GZIP format, as well as to Java JAR files.  It provides functions
2
and GZIP format, as well as to Java JAR files.  It provides functions
3
for reading from and writing to compressed files in these formats.
3
for reading from and writing to compressed files in these formats.
4
4
5
WWW: http://pauillac.inria.fr/~xleroy/software.html
5
WWW: https://github.com/xavierleroy/camlzip
(-)b/archivers/ocaml-zip/pkg-plist (-1 / +23 lines)
Added Link Here
0
- 
1
%%OCAML_SITELIBDIR%%/camlzip/META
2
%%OCAML_SITELIBDIR%%/zip/META
3
%%OCAML_SITELIBDIR%%/zip/dllcamlzip.so
4
%%OCAML_SITELIBDIR%%/zip/gzip.cmi
5
%%OCAML_SITELIBDIR%%/zip/gzip.cmt
6
%%OCAML_SITELIBDIR%%/zip/gzip.cmti
7
%%OCAML_SITELIBDIR%%/zip/gzip.cmx
8
%%OCAML_SITELIBDIR%%/zip/gzip.mli
9
%%OCAML_SITELIBDIR%%/zip/libcamlzip.a
10
%%OCAML_SITELIBDIR%%/zip/zip.a
11
%%OCAML_SITELIBDIR%%/zip/zip.cma
12
%%OCAML_SITELIBDIR%%/zip/zip.cmi
13
%%OCAML_SITELIBDIR%%/zip/zip.cmt
14
%%OCAML_SITELIBDIR%%/zip/zip.cmti
15
%%OCAML_SITELIBDIR%%/zip/zip.cmx
16
%%OCAML_SITELIBDIR%%/zip/zip.cmxa
17
%%OCAML_SITELIBDIR%%/zip/zip.cmxs
18
%%OCAML_SITELIBDIR%%/zip/zip.mli
19
%%OCAML_SITELIBDIR%%/zip/zlib.cmi
20
%%OCAML_SITELIBDIR%%/zip/zlib.cmt
21
%%OCAML_SITELIBDIR%%/zip/zlib.cmti
22
%%OCAML_SITELIBDIR%%/zip/zlib.cmx
23
%%OCAML_SITELIBDIR%%/zip/zlib.mli

Return to bug 263005