ChangeLog

# ChangeLog for dev-ml/ocamlduce
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlduce/ChangeLog,v 1.6 2008/03/01 20:51:47 aballier Exp $

01 Mar 2008; Alexis Ballier
-ocamlduce-3.09.3_p1.ebuild:
remove old

03 Jan 2008; Alexis Ballier ocamlduce-3.10.0.ebuild:
allow building without ocamlopt

*ocamlduce-3.10.0 (26 May 2007)

26 May 2007; Alexis Ballier
+ocamlduce-3.10.0.ebuild:
Version bump, ocaml 3.10 ready

24 Apr 2007; Alexis Ballier
ocamlduce-3.09.3_p1.ebuild:
Fix ocaml dep

28 Mar 2007; Alexis Ballier metadata.xml:
Add long description in metadata

*ocamlduce-3.09.3_p1 (28 Mar 2007)

28 Mar 2007; Alexis Ballier +metadata.xml,
+ocamlduce-3.09.3_p1.ebuild:
Initial import, thanks to Pierre Clairambault

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

DIST ocamlduce-3.10.0.tar.gz 968584 RMD160 ffa81116e499218aef7e2bb672953939b0746c9b SHA1 37d8991b70d5623bbf0c6d3ca038ac723dd3b2c1 SHA256 b434acf6263a096276925a161630a8efc152a504d4a19582e920dd3de54113db
EBUILD ocamlduce-3.10.0.ebuild 1365 RMD160 2a1c895052d63a22cdf1ae5096c7c0ca92364593 SHA1 241376f95a455bba992b4e4952a2e15d98dce918 SHA256 6b09e8cfb22b64e785323349853237fcf78bbf8327022428b47950f917e2eb07
MISC ChangeLog 968 RMD160 89e9e0cc9a1a34f2716c2b00a84ff16abcf38667 SHA1 d1cd1172af2ee6db443377a1953d0fa0f76103ca SHA256 2641383c51d46ba469e72cfbeaf337de747610ffac560fcdc0aae65334d9eaab
MISC metadata.xml 596 RMD160 1b88beb573543cf7b16a9287535e628b342441dd SHA1 cf8f0204da2e16dcb83d837fa5916747a589f8cf SHA256 88c57d0b9cfb5ddde09162a1b25f7412df877e030bc80bb9433089f2dee9f0ea
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFHycHtvFcC4BYPU0oRAnx9AKCfu2+vX8ByU0Dnbu8F9IDMlEIRDQCeLxsq
szkDRPnxAN2YTz+0elARmag=
=pyF1
-----END PGP SIGNATURE-----

metadata.xml




ml

aballier@gentoo.org
Alexis Ballier


pclairam@gmail.com
Pierre Clairambault


OCamlDuce is a merger between OCaml and CDuce. It comes as a modified version
of OCaml which integrates CDuce features: XML expressions, regular expression
types and patterns, iterators.

ocamlduce-3.10.0.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlduce/ocamlduce-3.10.0.ebuild,v 1.2 2008/01/03 23:43:12 aballier Exp $

inherit eutils findlib

EAPI="1"

MY_P="${P/_p/pl}"
DESCRIPTION="OCamlDuce is a merger between OCaml and CDuce"
HOMEPAGE="http://www.cduce.org/ocaml.html"
SRC_URI="http://gallium.inria.fr/~frisch/ocamlcduce/download/${MY_P}.tar.gz"

LICENSE="QPL-1.0 LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+ocamlopt"

DEPEND=">=dev-lang/ocaml-3.10.0
>=dev-ml/findlib-1.1.2"

RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

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() {
if use ocamlopt; then
emake -j1 all opt || die "emake failed"
else
emake CAMLC="ocamlc" CAMLDEP="ocamldep" -j1 all || die "emake failed"
fi
}

src_install() {
dodir /usr/bin
use ocamlopt && findlib_src_install BINDIR="${D}/usr/bin"
use ocamlopt || findlib_src_install BINDIR="${D}/usr/bin" CAMLC="ocamlc" CAMLDEP="ocamldep" OPT_VARIANTS=""
}