diff options
author | Alexis Ballier <aballier@gentoo.org> | 2012-07-06 16:14:12 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2012-07-06 16:14:12 +0000 |
commit | e7b7b780e7a04385863012f7c19e4f29044258bb (patch) | |
tree | 0be77a2211e2271755ef32a63ace4604cb9ccd11 /dev-ml | |
parent | leave rpath stuff to default cmake-utils eclass, so prefix links properly (diff) | |
download | gentoo-2-e7b7b780e7a04385863012f7c19e4f29044258bb.tar.gz gentoo-2-e7b7b780e7a04385863012f7c19e4f29044258bb.tar.bz2 gentoo-2-e7b7b780e7a04385863012f7c19e4f29044258bb.zip |
install duce files with USE=ocamlduce, by Jacques-Pascal Deplaix, bug #425020
(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
Diffstat (limited to 'dev-ml')
-rw-r--r-- | dev-ml/tyxml/ChangeLog | 7 | ||||
-rw-r--r-- | dev-ml/tyxml/tyxml-2.1-r1.ebuild | 46 |
2 files changed, 52 insertions, 1 deletions
diff --git a/dev-ml/tyxml/ChangeLog b/dev-ml/tyxml/ChangeLog index 1fa2bc9a48a8..6ee828ba1df9 100644 --- a/dev-ml/tyxml/ChangeLog +++ b/dev-ml/tyxml/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-ml/tyxml # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/tyxml/ChangeLog,v 1.2 2012/06/12 12:51:31 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ml/tyxml/ChangeLog,v 1.3 2012/07/06 16:14:12 aballier Exp $ + +*tyxml-2.1-r1 (06 Jul 2012) + + 06 Jul 2012; Alexis Ballier <aballier@gentoo.org> +tyxml-2.1-r1.ebuild: + install duce files with USE=ocamlduce, by Jacques-Pascal Deplaix, bug #425020 *tyxml-2.1 (12 Jun 2012) diff --git a/dev-ml/tyxml/tyxml-2.1-r1.ebuild b/dev-ml/tyxml/tyxml-2.1-r1.ebuild new file mode 100644 index 000000000000..13ea57b08daa --- /dev/null +++ b/dev-ml/tyxml/tyxml-2.1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/tyxml/tyxml-2.1-r1.ebuild,v 1.1 2012/07/06 16:14:12 aballier Exp $ + +EAPI=4 + +inherit eutils findlib + +DESCRIPTION="A libary to build xml trees typechecked by OCaml" +HOMEPAGE="http://ocsigen.org/tyxml/" +SRC_URI="http://www.ocsigen.org/download/${P}.tar.gz" + +LICENSE="LGPL-2.1-linking-exception" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc ocamlduce +ocamlopt" + +DEPEND=" + >=dev-lang/ocaml-3.12[ocamlopt?] + dev-ml/ocamlnet + ocamlduce? ( dev-ml/ocamlduce )" +RDEPEND="${DEPEND}" + +src_prepare() { + export myopts="OCAMLDUCE=$(usex ocamlduce yes no)" +} + +src_compile() { + if use ocamlopt; then + emake "$myopts" + else + emake "$myopts" byte + fi + use doc && emake doc "$myopts" +} + +src_install() { + findlib_src_preinst + if use ocamlopt; then + emake DESTIR="${D}" "$myopts" install + else + emake DESTIR="${D}" "$myopts" install-byte + fi + dodoc CHANGES README + use doc && dohtml -r doc/api-html +} |