aboutsummaryrefslogtreecommitdiff
path: root/security/ocaml-cryptokit
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2011-03-02 06:26:38 +0000
committerWen Heping <wen@FreeBSD.org>2011-03-02 06:26:38 +0000
commitfbbfb7e179d71d16c3079d71d880aa44d43bdf31 (patch)
tree2870a7fe735cb89190f7674f705cda2511508c26 /security/ocaml-cryptokit
parentf95addaf77db63531d7113ae152e4d2fe371e91c (diff)
downloadports-fbbfb7e179d71d16c3079d71d880aa44d43bdf31.tar.gz
ports-fbbfb7e179d71d16c3079d71d880aa44d43bdf31.zip
- Installing of libraries in ${OCAML_SITELIBDIR)/stublibs, which is not searched;
- Creation of an install directory before the privilege switch. PR: ports/155171 Submitted by: Jaap Boender <jaapb@kerguelen.org> (maintainer)
Notes
Notes: svn path=/head/; revision=270105
Diffstat (limited to 'security/ocaml-cryptokit')
-rw-r--r--security/ocaml-cryptokit/Makefile4
-rw-r--r--security/ocaml-cryptokit/distinfo1
-rw-r--r--security/ocaml-cryptokit/files/patch-Makefile14
-rw-r--r--security/ocaml-cryptokit/pkg-plist3
4 files changed, 16 insertions, 6 deletions
diff --git a/security/ocaml-cryptokit/Makefile b/security/ocaml-cryptokit/Makefile
index ef6f3e6c8508..f8be4b4e75fc 100644
--- a/security/ocaml-cryptokit/Makefile
+++ b/security/ocaml-cryptokit/Makefile
@@ -7,7 +7,7 @@
PORTNAME= cryptokit
PORTVERSION= 1.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= http://caml.inria.fr/distrib/bazar-ocaml/
PKGNAMEPREFIX= ocaml-
@@ -43,8 +43,6 @@ pre-install:
@${REINPLACE_CMD} -E -e \
's|cp |${INSTALL_DATA} |' \
${WRKSRC}/Makefile
-# create installation dir
- @${MKDIR} ${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/stublibs
post-install:
.ifndef(NOPORTDOCS)
diff --git a/security/ocaml-cryptokit/distinfo b/security/ocaml-cryptokit/distinfo
index 2f248144cc65..25ff3d6da79b 100644
--- a/security/ocaml-cryptokit/distinfo
+++ b/security/ocaml-cryptokit/distinfo
@@ -1,3 +1,2 @@
-MD5 (cryptokit-1.3.tar.gz) = d7de01d0702d16b3491c9e794ebb2cc3
SHA256 (cryptokit-1.3.tar.gz) = 9ef339ed4cb15f0c458d0093b90dd249d8d1dfb1b01a1fedc542e67f67a7194f
SIZE (cryptokit-1.3.tar.gz) = 112689
diff --git a/security/ocaml-cryptokit/files/patch-Makefile b/security/ocaml-cryptokit/files/patch-Makefile
new file mode 100644
index 000000000000..b2c8a0d7d790
--- /dev/null
+++ b/security/ocaml-cryptokit/files/patch-Makefile
@@ -0,0 +1,14 @@
+--- Makefile.orig 2011-03-02 06:09:16.000000000 +0000
++++ Makefile 2011-03-02 06:10:20.000000000 +0000
+@@ -74,9 +74,10 @@
+ rm -f speedtest
+
+ install:
++ install -d $(INSTALLDIR)
+ cp cryptokit.cmi cryptokit.cma cryptokit.mli $(INSTALLDIR)
+ cp libcryptokit.a $(INSTALLDIR)
+- if test -f dllcryptokit.so; then cp dllcryptokit.so $(INSTALLDIR)/stublibs; fi
++ if test -f dllcryptokit.so; then cp dllcryptokit.so $(INSTALLDIR); fi
+ if test -f cryptokit.cmxa; then cp cryptokit.cmxa cryptokit.cmx cryptokit.a $(INSTALLDIR); fi
+
+ doc: FORCE
diff --git a/security/ocaml-cryptokit/pkg-plist b/security/ocaml-cryptokit/pkg-plist
index 6771c91a3851..3ed9b016c160 100644
--- a/security/ocaml-cryptokit/pkg-plist
+++ b/security/ocaml-cryptokit/pkg-plist
@@ -6,7 +6,6 @@
%%OCAML_SITELIBDIR%%/cryptokit/cryptokit.cmxa
%%OCAML_SITELIBDIR%%/cryptokit/cryptokit.mli
%%OCAML_SITELIBDIR%%/cryptokit/libcryptokit.a
-%%OCAML_SITELIBDIR%%/cryptokit/stublibs/dllcryptokit.so
-@dirrmtry %%OCAML_SITELIBDIR%%/cryptokit/stublibs
+%%OCAML_SITELIBDIR%%/cryptokit/dllcryptokit.so
@dirrmtry %%OCAML_SITELIBDIR%%/cryptokit
@dirrmtry %%OCAML_SITELIBDIR%%