summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2012-08-07 19:31:34 +0000
committerAlexis Ballier <aballier@gentoo.org>2012-08-07 19:31:34 +0000
commitbf6fcc478a256b22189581cfae9307a395766d3b (patch)
tree8e1bec1e11841ded3e0ee29647f8aeaac0d22cdb /dev-ml
parentMarking emacs-23.4-r3 ppc64 for bug 423507 (diff)
downloadgentoo-2-bf6fcc478a256b22189581cfae9307a395766d3b.tar.gz
gentoo-2-bf6fcc478a256b22189581cfae9307a395766d3b.tar.bz2
gentoo-2-bf6fcc478a256b22189581cfae9307a395766d3b.zip
Initial import, standalone version of the OCaml gdbm bindings split out of dev-lang/ocaml; ebuild by me.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/camldbm/ChangeLog11
-rw-r--r--dev-ml/camldbm/camldbm-1.0.ebuild29
-rw-r--r--dev-ml/camldbm/files/hasgotfix.patch15
-rw-r--r--dev-ml/camldbm/files/include_fix.patch15
-rw-r--r--dev-ml/camldbm/metadata.xml5
5 files changed, 75 insertions, 0 deletions
diff --git a/dev-ml/camldbm/ChangeLog b/dev-ml/camldbm/ChangeLog
new file mode 100644
index 000000000000..728205d6e396
--- /dev/null
+++ b/dev-ml/camldbm/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-ml/camldbm
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/camldbm/ChangeLog,v 1.1 2012/08/07 19:31:34 aballier Exp $
+
+*camldbm-1.0 (07 Aug 2012)
+
+ 07 Aug 2012; Alexis Ballier <aballier@gentoo.org> +camldbm-1.0.ebuild,
+ +files/hasgotfix.patch, +files/include_fix.patch, +metadata.xml:
+ Initial import, standalone version of the OCaml gdbm bindings split out of
+ dev-lang/ocaml; ebuild by me.
+
diff --git a/dev-ml/camldbm/camldbm-1.0.ebuild b/dev-ml/camldbm/camldbm-1.0.ebuild
new file mode 100644
index 000000000000..8e0b6d772036
--- /dev/null
+++ b/dev-ml/camldbm/camldbm-1.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/camldbm/camldbm-1.0.ebuild,v 1.1 2012/08/07 19:31:34 aballier Exp $
+
+EAPI=4
+
+inherit base
+
+DESCRIPTION="OCaml binding to the NDBM/GDBM Unix databases"
+HOMEPAGE="http://forge.ocamlcore.org/projects/camldbm/"
+SRC_URI="http://forge.ocamlcore.org/frs/download.php/728/${P}.tgz"
+
+LICENSE="LGPL-2-with-linking-exception"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="|| ( >=sys-libs/gdbm-1.9.1-r2[berkdb] <sys-libs/gdbm-1.9.1-r2 )
+ dev-lang/ocaml
+ !<dev-lang/ocaml-4[gdbm]"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/hasgotfix.patch" "${FILESDIR}/include_fix.patch" )
+
+src_install() {
+ dodir "$(ocamlc -where)/stublibs" # required and makefile does not create it
+ emake LIBDIR="${D}/$(ocamlc -where)" install
+ dodoc README Changelog
+}
diff --git a/dev-ml/camldbm/files/hasgotfix.patch b/dev-ml/camldbm/files/hasgotfix.patch
new file mode 100644
index 000000000000..840ffcbe7f0f
--- /dev/null
+++ b/dev-ml/camldbm/files/hasgotfix.patch
@@ -0,0 +1,15 @@
+https://forge.ocamlcore.org/tracker/index.php?func=detail&aid=1202&group_id=278&atid=1189
+
+Index: camldbm-1.0/configure
+===================================================================
+--- camldbm-1.0.orig/configure
++++ camldbm-1.0/configure
+@@ -35,7 +35,7 @@ hasgot() {
+ ${CC:-cc} -I$1 -o hasgot.exe hasgot.c $3 $4
+ res=$?
+ rm -f hasgot.c hasgot.exe
+- return $?
++ return $res
+ }
+
+ dbm_include="not found"
diff --git a/dev-ml/camldbm/files/include_fix.patch b/dev-ml/camldbm/files/include_fix.patch
new file mode 100644
index 000000000000..16fb6bd1e96e
--- /dev/null
+++ b/dev-ml/camldbm/files/include_fix.patch
@@ -0,0 +1,15 @@
+https://forge.ocamlcore.org/tracker/index.php?func=detail&aid=1201&group_id=278&atid=1189
+
+Index: camldbm-1.0/Makefile
+===================================================================
+--- camldbm-1.0.orig/Makefile
++++ camldbm-1.0/Makefile
+@@ -51,7 +51,7 @@ libcamldbm.$(A): cldbm.$(O)
+ $(OCAMLOPT) -c $(COMPFLAGS) $<
+
+ .c.$(O):
+- $(OCAMLC) -c -ccopt "$(DBM_INCLUDE)" -ccopt "$(DBM_DEFINES)" $<
++ $(OCAMLC) -c -ccopt "$(DBM_INCLUDES)" -ccopt "$(DBM_DEFINES)" $<
+
+ depend:
+ $(OCAMLDEP) *.ml *.mli > .depend
diff --git a/dev-ml/camldbm/metadata.xml b/dev-ml/camldbm/metadata.xml
new file mode 100644
index 000000000000..2193d772e351
--- /dev/null
+++ b/dev-ml/camldbm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ml</herd>
+</pkgmetadata>