summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-02-26 23:45:54 +0100
committerAlexis Ballier <aballier@gentoo.org>2017-02-27 09:34:01 +0100
commitc86c4fc678bf5bc2c227e64b6d4c236ceef1b883 (patch)
tree485ffe4abf4bd8ee6759778319694ab4f5aa6781 /dev-ml/parmap/parmap-1.0_rc8.ebuild
parentdev-php/pecl-mailparse: amd64 stable wrt bug #610940 (diff)
downloadgentoo-c86c4fc678bf5bc2c227e64b6d4c236ceef1b883.tar.gz
gentoo-c86c4fc678bf5bc2c227e64b6d4c236ceef1b883.tar.bz2
gentoo-c86c4fc678bf5bc2c227e64b6d4c236ceef1b883.zip
dev-ml/parmap: Bump to 1.0 rc8
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-ml/parmap/parmap-1.0_rc8.ebuild')
-rw-r--r--dev-ml/parmap/parmap-1.0_rc8.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-ml/parmap/parmap-1.0_rc8.ebuild b/dev-ml/parmap/parmap-1.0_rc8.ebuild
new file mode 100644
index 000000000000..0a047be43a2a
--- /dev/null
+++ b/dev-ml/parmap/parmap-1.0_rc8.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib
+
+MY_PV="${PV/_/-}"
+DESCRIPTION="Library allowing to exploit multicore architectures for OCaml programs with minimal modifications"
+HOMEPAGE="http://www.dicosmo.org/code/parmap/"
+SRC_URI="https://github.com/rdicosmo/parmap/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ocamlopt"
+
+RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?]"
+DEPEND="${RDEPEND}
+ dev-ml/findlib
+ dev-ml/ocamlbuild
+ dev-ml/ocaml-autoconf"
+S="${WORKDIR}/${PN}-${MY_PV/+/-}"
+
+src_test() {
+ mkdir "${WORKDIR}/tmpinstall" || die
+ emake \
+ OCAMLLIBDIR="ocaml" \
+ DESTDIR="${WORKDIR}/tmpinstall" \
+ install
+ export OCAMLPATH="${WORKDIR}/tmpinstall/ocaml"
+ emake tests
+ cd _build/tests || die
+ for i in $(find . -type f -executable) ; do
+ ${i} || die
+ done
+}
+
+src_install() {
+ emake \
+ OCAMLLIBDIR="$(get_libdir)/ocaml" \
+ MANDIR="${ED}/usr/share/man/man3o" \
+ DESTDIR="${ED}/usr" \
+ install
+ dodoc AUTHORS Changelog README
+}