summaryrefslogtreecommitdiff
path: root/dev-ml/ocamlpam
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ml/ocamlpam
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ml/ocamlpam')
-rw-r--r--dev-ml/ocamlpam/Manifest5
-rw-r--r--dev-ml/ocamlpam/files/ocaml404.patch12
-rw-r--r--dev-ml/ocamlpam/files/ocamlpam-1.1-makefile.patch17
-rw-r--r--dev-ml/ocamlpam/metadata.xml8
-rw-r--r--dev-ml/ocamlpam/ocamlpam-1.1.ebuild37
5 files changed, 79 insertions, 0 deletions
diff --git a/dev-ml/ocamlpam/Manifest b/dev-ml/ocamlpam/Manifest
new file mode 100644
index 000000000000..7556a330fa59
--- /dev/null
+++ b/dev-ml/ocamlpam/Manifest
@@ -0,0 +1,5 @@
+AUX ocaml404.patch 359 BLAKE2B 9d1570339b83e397217946bb8663e867b54a402ce5de34457c25a5f5a1a2a99029c750f7acc48160d90eb47e2ae082c2b07bd137e949a67de3f1d8c91cbc4f12 SHA512 998dcc89987fb237d5b89de81b5cd9ddee6bd86c5710614c61357c2e79864dd9a6dc43f7495a176a778c74485b71a1566669c5df36808b21e87e6fbf6efe1814
+AUX ocamlpam-1.1-makefile.patch 512 BLAKE2B 03d328726f6c6070c5f8003c78a22f0755fcd5f8e182a02d44ea419b431dde9ce03d1ea1171c3a3eb80a38aadea70a273f2ecc3503967614287b18a51b864c4b SHA512 895b33ede124fec4098e17b6042381657850f488f88f1f84dac1f220798f7f7147a4566c059564838c083fbd3c97e8c0f372cb2a60e771c4fa4c945b110397d7
+DIST ocamlpam-1.1.tar.gz 7739 BLAKE2B fcd6e7de8e948293f88a5fd8f7bda666334c80d580328dbbee1056a9dd5a788006a269adaf6eef419ef1f12a8641811f8c601146425a8ecbbc50dd25ed732fc8 SHA512 84199a1e94db93952fd058c3bf03865c058abc0bb5fe09b489717e7aa77687496d40d80ed00be99e59e58c13b044356a05cae5f5aebf4faec470b66696042762
+EBUILD ocamlpam-1.1.ebuild 849 BLAKE2B 4a65527781ad611920f7ac39ae4855ee32b90dc836d3d11915a178bf0c5e8957e23457b64cd9a577319f16d9d169494e69ae0d55f43e0867a6d2ba798bdd6005 SHA512 8911937324ee4a9644bc83e47b4d23d4e1a90f3de8f4ae8affc5c84ead9e57fbf055807138348c1b5f79ba52c22ccf2730f8ad7f43a485137cab2ae47a250852
+MISC metadata.xml 243 BLAKE2B 010ca240ae06e9a9f6d7ba213eb06df36d9ba862ff2d2458d98a9fea1a1e7f3026d13832a73bce1b3ad9345029425e6abfae9e03bf126f2329b3f030ed3753fd SHA512 1c5b4b2163017e496999d1f87e5c9c5ac6c11b2e9187450ccfb3df258f34e54d278972f04ee0e8429476c6f87e091a869ac2a28c6e8c8e6d20678c3e74061449
diff --git a/dev-ml/ocamlpam/files/ocaml404.patch b/dev-ml/ocamlpam/files/ocaml404.patch
new file mode 100644
index 000000000000..4964edf951f4
--- /dev/null
+++ b/dev-ml/ocamlpam/files/ocaml404.patch
@@ -0,0 +1,12 @@
+Index: ocamlpam-1.1/pam_stubs.c
+===================================================================
+--- ocamlpam-1.1.orig/pam_stubs.c
++++ ocamlpam-1.1/pam_stubs.c
+@@ -57,6 +57,7 @@ static int converse(int nMsg, const stru
+ struct pam_response * local_responses;
+ caml_pam_handle * h;
+
++ CAMLparam0 ();
+ CAMLlocal1(ret);
+
+ h = (caml_pam_handle *)data;
diff --git a/dev-ml/ocamlpam/files/ocamlpam-1.1-makefile.patch b/dev-ml/ocamlpam/files/ocamlpam-1.1-makefile.patch
new file mode 100644
index 000000000000..c9450b7f30dc
--- /dev/null
+++ b/dev-ml/ocamlpam/files/ocamlpam-1.1-makefile.patch
@@ -0,0 +1,17 @@
+--- a/Makefile 2012-09-14 22:46:11.508415083 +0200
++++ b/Makefile 2012-09-14 22:46:34.526338371 +0200
+@@ -35,10 +35,13 @@
+
+ install:
+ install -d $(DESTDIR)/pam
+- install -m 644 -t $(DESTDIR)/pam META *.mli *.cmi *.cmx *.cma *.cmxa *.a
++ install -m 644 -t $(DESTDIR)/pam META *.mli *.cmi *.cma *.a
+ install -d $(DESTDIR)/stublibs
+ install -m 644 -t $(DESTDIR)/stublibs dll$(BASENAME).so
+
++install-opt:
++ install -m 644 -t $(DESTDIR)/pam *.cmx *.cmxa
++
+ dist: clean
+ mkdir -p $(DISTNAME)
+ -cp * $(DISTNAME)
diff --git a/dev-ml/ocamlpam/metadata.xml b/dev-ml/ocamlpam/metadata.xml
new file mode 100644
index 000000000000..ffac4d7ebc01
--- /dev/null
+++ b/dev-ml/ocamlpam/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>ml@gentoo.org</email>
+ <name>Gentoo ML Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-ml/ocamlpam/ocamlpam-1.1.ebuild b/dev-ml/ocamlpam/ocamlpam-1.1.ebuild
new file mode 100644
index 000000000000..47682ef120aa
--- /dev/null
+++ b/dev-ml/ocamlpam/ocamlpam-1.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit findlib eutils
+
+DESCRIPTION="OCamlPAM - an OCaml library for PAM"
+HOMEPAGE="http://sharvil.nanavati.net/projects/ocamlpam/"
+SRC_URI="http://sharvil.nanavati.net/projects/${PN}/files/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="+ocamlopt"
+
+DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
+ sys-libs/pam"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-makefile.patch"
+ has_version '>=dev-lang/ocaml-4.04_beta' && epatch "${FILESDIR}/ocaml404.patch"
+}
+
+src_compile() {
+ emake META
+ emake byte
+ use ocamlopt && emake opt
+}
+
+src_install() {
+ findlib_src_preinst
+ emake DESTDIR="${OCAMLFIND_DESTDIR}" install
+ use ocamlopt && emake DESTDIR="${OCAMLFIND_DESTDIR}" install-opt
+ dodoc CHANGES README
+}