summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2009-10-13 06:37:20 +0000
committerAlexis Ballier <aballier@gentoo.org>2009-10-13 06:37:20 +0000
commite9c2e59953c134920e72fd046f7c338613b1060d (patch)
tree68e36b81a3eb62fade5e9ac8e97d033b7ce070ea /dev-ml
parentVersion bump. (diff)
downloadgentoo-2-e9c2e59953c134920e72fd046f7c338613b1060d.tar.gz
gentoo-2-e9c2e59953c134920e72fd046f7c338613b1060d.tar.bz2
gentoo-2-e9c2e59953c134920e72fd046f7c338613b1060d.zip
Initial import, ebuild by me
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/react/ChangeLog10
-rw-r--r--dev-ml/react/metadata.xml17
-rw-r--r--dev-ml/react/react-0.9.0.ebuild48
3 files changed, 75 insertions, 0 deletions
diff --git a/dev-ml/react/ChangeLog b/dev-ml/react/ChangeLog
new file mode 100644
index 000000000000..47b801463189
--- /dev/null
+++ b/dev-ml/react/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-ml/react
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/react/ChangeLog,v 1.1 2009/10/13 06:37:20 aballier Exp $
+
+*react-0.9.0 (13 Oct 2009)
+
+ 13 Oct 2009; Alexis Ballier <aballier@gentoo.org> +react-0.9.0.ebuild,
+ +metadata.xml:
+ Initial import, ebuild by me
+
diff --git a/dev-ml/react/metadata.xml b/dev-ml/react/metadata.xml
new file mode 100644
index 000000000000..80acde625b07
--- /dev/null
+++ b/dev-ml/react/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ml</herd>
+ <longdescription lang="en">
+ React is an OCaml module for functional reactive programming (FRP). It
+ provides support to program with time varying values : applicative
+ events and signals. React doesn't define any primitive event or
+ signal, this lets the client chooses the concrete timeline.
+
+ React is made of a single, independent, module and distributed under
+ the new BSD license.
+
+ Given an absolute notion of time Rtime helps you to manage a timeline
+ and provides time stamp events, delayed events and delayed signals.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-ml/react/react-0.9.0.ebuild b/dev-ml/react/react-0.9.0.ebuild
new file mode 100644
index 000000000000..78aede740b41
--- /dev/null
+++ b/dev-ml/react/react-0.9.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/react/react-0.9.0.ebuild,v 1.1 2009/10/13 06:37:20 aballier Exp $
+
+EAPI="2"
+
+DESCRIPTION="OCaml module for functional reactive programming"
+HOMEPAGE="http://erratique.ch/software/react"
+SRC_URI="http://erratique.ch/software/react/releases/${P}.tbz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ocamlopt doc"
+
+DEPEND=">=dev-lang/ocaml-3.11[ocamlopt?]"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ ./build module-byte || die "bytecode failed"
+ if use ocamlopt ; then
+ ./build module-native || die "native code failed"
+ fi
+ if use doc ; then
+ ./build doc || die "doc building failed"
+ fi
+}
+
+src_test() {
+ ./build test.byte || die
+ ./test.byte || die
+ if use ocamlopt ; then
+ ./build test.native || die
+ ./test.native || die
+ fi
+}
+
+src_install() {
+ export INSTALLDIR=${D}/`ocamlc -where`/${PN}
+ if use ocamlopt ; then
+ ./build install || die "install failed"
+ else
+ ./build install-byte || die "install failed"
+ fi
+
+ dodoc CHANGES README
+ use doc && dohtml doc/*
+}