diff options
author | Alexis Ballier <aballier@gentoo.org> | 2009-06-21 12:01:00 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2009-06-21 12:01:00 +0000 |
commit | 7d68ffcfdb226de715856e9255d18951b5f32a83 (patch) | |
tree | 909fc7439ff8ca73e90f0722767804192e284656 /dev-ml/res | |
parent | version bump (diff) | |
download | gentoo-2-7d68ffcfdb226de715856e9255d18951b5f32a83.tar.gz gentoo-2-7d68ffcfdb226de715856e9255d18951b5f32a83.tar.bz2 gentoo-2-7d68ffcfdb226de715856e9255d18951b5f32a83.zip |
version bump
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'dev-ml/res')
-rw-r--r-- | dev-ml/res/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ml/res/files/res-3.2.0-noocamlopt.patch | 13 | ||||
-rw-r--r-- | dev-ml/res/res-3.2.0.ebuild | 56 |
3 files changed, 76 insertions, 1 deletions
diff --git a/dev-ml/res/ChangeLog b/dev-ml/res/ChangeLog index 380ecb711cc9..beb62216ae76 100644 --- a/dev-ml/res/ChangeLog +++ b/dev-ml/res/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ml/res # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/res/ChangeLog,v 1.9 2009/06/20 17:26:41 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ml/res/ChangeLog,v 1.10 2009/06/21 12:00:59 aballier Exp $ + +*res-3.2.0 (21 Jun 2009) + + 21 Jun 2009; Alexis Ballier <aballier@gentoo.org> +res-3.2.0.ebuild, + +files/res-3.2.0-noocamlopt.patch: + version bump 20 Jun 2009; Alexis Ballier <aballier@gentoo.org> res-2.2.5.ebuild: move eapi definition before inherit and assign rdepend explicitly diff --git a/dev-ml/res/files/res-3.2.0-noocamlopt.patch b/dev-ml/res/files/res-3.2.0-noocamlopt.patch new file mode 100644 index 000000000000..8d4e38f05ea3 --- /dev/null +++ b/dev-ml/res/files/res-3.2.0-noocamlopt.patch @@ -0,0 +1,13 @@ +Index: res-3.2.0/lib/Makefile +=================================================================== +--- res-3.2.0.orig/lib/Makefile ++++ res-3.2.0/lib/Makefile +@@ -11,7 +11,7 @@ LIBINSTALL_FILES = res.mli strat.mli pre + strat.cmi pres_intf.cmi nopres_intf.cmi weak_intf.cmi \ + res.cmi res.cma res.cmxa res.a + +-all: byte-code-library native-code-library ++all: byte-code-library + + install: libinstall + uninstall: libuninstall diff --git a/dev-ml/res/res-3.2.0.ebuild b/dev-ml/res/res-3.2.0.ebuild new file mode 100644 index 000000000000..35ad35d31012 --- /dev/null +++ b/dev-ml/res/res-3.2.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/res/res-3.2.0.ebuild,v 1.1 2009/06/21 12:00:59 aballier Exp $ + +EAPI="2" + +inherit findlib eutils + +DESCRIPTION="Resizable Array and Buffer modules for O'Caml" +HOMEPAGE="http://ocaml.info/home/ocaml_sources.html" +SRC_URI="http://www.ocaml.info/ocaml_sources/${P}.tar.gz" +LICENSE="LGPL-2.1" + +DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?]" +RDEPEND="${DEPEND}" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc examples +ocamlopt" + +src_prepare() { + epatch "${FILESDIR}/${P}-noocamlopt.patch" +} + +src_compile() { + cd "${S}/lib" + emake -j1 byte-code-library || die "failed to build byte code library" + if use ocamlopt; then + emake -j1 native-code-library || die "failed to built nativde code library" + fi + + if use doc; then + emake htdoc || die "failed to build documentation" + fi +} + +src_install () { + cd "${S}/lib" + findlib_src_preinst + if use ocamlopt; then + emake DESTDIR="${D}" libinstall || die + else + emake DESTDIR="${D}" libinstall-byte-code || die + fi + + cd "${S}" + # install documentation + dodoc TODO README.txt Changelog + + if use doc; then + dohtml lib/doc/res/html/* + fi + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} |