summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-01-04 01:51:12 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-01-04 01:51:12 +0000
commitd50f9fe1b086a336e3d9eae904530d3ada0d6688 (patch)
treef92dec3f47ca3e512990f72e8bf0a9284efd682d /dev-ml
parentallow building without ocamlopt (diff)
downloadgentoo-2-d50f9fe1b086a336e3d9eae904530d3ada0d6688.tar.gz
gentoo-2-d50f9fe1b086a336e3d9eae904530d3ada0d6688.tar.bz2
gentoo-2-d50f9fe1b086a336e3d9eae904530d3ada0d6688.zip
version bump, allow to build without ocamlopt
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/pomap/ChangeLog9
-rw-r--r--dev-ml/pomap/files/digest-pomap-2.9.83
-rw-r--r--dev-ml/pomap/pomap-2.9.8.ebuild48
3 files changed, 58 insertions, 2 deletions
diff --git a/dev-ml/pomap/ChangeLog b/dev-ml/pomap/ChangeLog
index 0c36caf248a2..1e90fe34c19e 100644
--- a/dev-ml/pomap/ChangeLog
+++ b/dev-ml/pomap/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ml/pomap
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/pomap/ChangeLog,v 1.12 2007/02/09 07:37:36 flameeyes Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/pomap/ChangeLog,v 1.13 2008/01/04 01:51:11 aballier Exp $
+
+*pomap-2.9.8 (04 Jan 2008)
+
+ 04 Jan 2008; Alexis Ballier <aballier@gentoo.org> +pomap-2.9.8.ebuild:
+ version bump, allow to build without ocamlopt
09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog:
Regenerate digest in Manifest2 format.
diff --git a/dev-ml/pomap/files/digest-pomap-2.9.8 b/dev-ml/pomap/files/digest-pomap-2.9.8
new file mode 100644
index 000000000000..083aa6dfb4cd
--- /dev/null
+++ b/dev-ml/pomap/files/digest-pomap-2.9.8
@@ -0,0 +1,3 @@
+MD5 20c38e0ec87da8d8f68461c9523e4ca4 pomap-2.9.8.tar.bz2 36645
+RMD160 3e3e485eb31311bf1d003d52691196156f055765 pomap-2.9.8.tar.bz2 36645
+SHA256 8cea14b604b261cdb8a16b1a90153cbfb19c958e3466a8556ca50bfeea64b5ce pomap-2.9.8.tar.bz2 36645
diff --git a/dev-ml/pomap/pomap-2.9.8.ebuild b/dev-ml/pomap/pomap-2.9.8.ebuild
new file mode 100644
index 000000000000..fd57d672f5bf
--- /dev/null
+++ b/dev-ml/pomap/pomap-2.9.8.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/pomap/pomap-2.9.8.ebuild,v 1.1 2008/01/04 01:51:11 aballier Exp $
+
+inherit findlib eutils
+
+EAPI="1"
+
+DESCRIPTION="Partially Ordered Map ADT for O'Caml"
+HOMEPAGE="http://www.ocaml.info/home/ocaml_sources.html"
+LICENSE="LGPL-2.1"
+DEPEND=">=dev-lang/ocaml-3.06"
+SRC_URI="http://www.ocaml.info/ocaml_sources/${P}.tar.bz2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="examples +ocamlopt"
+
+pkg_setup() {
+ if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
+ eerror "In order to build ${PN} with native code support from ocaml"
+ eerror "You first need to have a native code ocaml compiler."
+ eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
+ die "Please install ocaml with ocamlopt useflag"
+ fi
+}
+
+src_compile() {
+ cd "${S}/lib"
+ emake -j1 byte-code-library || die "failed to build byte code library"
+ if use ocamlopt; then
+ emake -j1 native-code-library || die "failed to built nativde code library"
+ fi
+}
+
+src_install () {
+ use ocamlopt || export OCAMLFIND_INSTFLAGS="-optional"
+ findlib_src_install
+
+ # install documentation
+ dodoc README VERSION Changes
+
+ #install examples
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}