summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2012-08-03 13:10:56 +0000
committerAlexis Ballier <aballier@gentoo.org>2012-08-03 13:10:56 +0000
commit241f55de75286b3e9b14b19edd60a0bab92acbac (patch)
treeacd628c6c33c6e5cdaf81b9913ffa675d105cbc9 /dev-ml
parentStable on amd64 wrt bug #418697 (diff)
downloadgentoo-2-241f55de75286b3e9b14b19edd60a0bab92acbac.tar.gz
gentoo-2-241f55de75286b3e9b14b19edd60a0bab92acbac.tar.bz2
gentoo-2-241f55de75286b3e9b14b19edd60a0bab92acbac.zip
Initial import, ebuild by Jacques-Pascal Deplaix and Guillaume Horel, bug #406653
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/deriving-ocsigen/ChangeLog11
-rw-r--r--dev-ml/deriving-ocsigen/deriving-ocsigen-0.3c.ebuild50
-rw-r--r--dev-ml/deriving-ocsigen/metadata.xml8
3 files changed, 69 insertions, 0 deletions
diff --git a/dev-ml/deriving-ocsigen/ChangeLog b/dev-ml/deriving-ocsigen/ChangeLog
new file mode 100644
index 000000000000..4fa2b1927141
--- /dev/null
+++ b/dev-ml/deriving-ocsigen/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-ml/deriving-ocsigen
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/deriving-ocsigen/ChangeLog,v 1.1 2012/08/03 13:10:56 aballier Exp $
+
+*deriving-ocsigen-0.3c (03 Aug 2012)
+
+ 03 Aug 2012; Alexis Ballier <aballier@gentoo.org>
+ +deriving-ocsigen-0.3c.ebuild, +metadata.xml:
+ Initial import, ebuild by Jacques-Pascal Deplaix and Guillaume Horel, bug
+ #406653
+
diff --git a/dev-ml/deriving-ocsigen/deriving-ocsigen-0.3c.ebuild b/dev-ml/deriving-ocsigen/deriving-ocsigen-0.3c.ebuild
new file mode 100644
index 000000000000..f3cd5e3febb3
--- /dev/null
+++ b/dev-ml/deriving-ocsigen/deriving-ocsigen-0.3c.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/deriving-ocsigen/deriving-ocsigen-0.3c.ebuild,v 1.1 2012/08/03 13:10:56 aballier Exp $
+
+EAPI=4
+
+inherit findlib
+
+DESCRIPTION="A deriving library for Ocsigen"
+HOMEPAGE="http://ocsigen.org"
+SRC_URI="http://www.ocsigen.org/download/${P}.tar.gz"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+ocamlopt type-conv"
+
+DEPEND=">=dev-lang/ocaml-3.12[ocamlopt?]
+ type-conv? ( >=dev-ml/type-conv-108 )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ find . -type f -exec sed -i 's/type-conv/type_conv/g' {} +
+}
+
+src_configure() {
+ use type-conv || echo "TYPECONV :=" >> Makefile.config
+}
+
+src_compile() {
+ if use ocamlopt; then
+ emake
+ else
+ emake byte
+ fi
+}
+
+src_test() {
+ emake tests
+}
+
+src_install() {
+ findlib_src_preinst
+ if use ocamlopt; then
+ emake install
+ else
+ emake install-byte
+ fi
+ dodoc CHANGES README
+}
diff --git a/dev-ml/deriving-ocsigen/metadata.xml b/dev-ml/deriving-ocsigen/metadata.xml
new file mode 100644
index 000000000000..009b874f943c
--- /dev/null
+++ b/dev-ml/deriving-ocsigen/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ml</herd>
+<use>
+ <flag name='type-conv'>Enable type-conv for the syntax extention.</flag>
+</use>
+</pkgmetadata>