diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2009-09-28 16:54:47 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2009-09-28 16:54:47 +0000 |
commit | f64df7559351f5ed153c74f4b53274e97659bb69 (patch) | |
tree | 93e4faf76267607b95f9f5cd7d3f9f11fcf86696 /dev-ml/ocamlgraph | |
parent | Shorten DESCRIPTION to under 100 characters in order to make repoman happy. (diff) | |
download | historical-f64df7559351f5ed153c74f4b53274e97659bb69.tar.gz historical-f64df7559351f5ed153c74f4b53274e97659bb69.tar.bz2 historical-f64df7559351f5ed153c74f4b53274e97659bb69.zip |
Migrate to EAPI 2 in order to nuke built_with_use.
Package-Manager: portage-2.2_rc40/cvs/Linux i686
Diffstat (limited to 'dev-ml/ocamlgraph')
-rw-r--r-- | dev-ml/ocamlgraph/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild | 33 |
2 files changed, 14 insertions, 27 deletions
diff --git a/dev-ml/ocamlgraph/ChangeLog b/dev-ml/ocamlgraph/ChangeLog index c49b28c7d5ab..549b2018e671 100644 --- a/dev-ml/ocamlgraph/ChangeLog +++ b/dev-ml/ocamlgraph/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-ml/ocamlgraph -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ChangeLog,v 1.11 2008/04/06 19:42:21 aballier Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ChangeLog,v 1.12 2009/09/28 16:51:57 betelgeuse Exp $ + + 28 Sep 2009; Petteri Räty <betelgeuse@gentoo.org> + ocamlgraph-0.99b.ebuild: + Migrate to EAPI 2 in order to nuke built_with_use. 06 Apr 2008; Alexis Ballier <aballier@gentoo.org> -ocamlgraph-0.81.ebuild: remove old diff --git a/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild b/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild index d565c17daafe..3f445813d5d0 100644 --- a/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild +++ b/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild,v 1.4 2008/04/06 19:33:03 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild,v 1.5 2009/09/28 16:51:57 betelgeuse Exp $ -inherit findlib eutils +EAPI="2" -EAPI="1" +inherit findlib eutils DESCRIPTION="O'Caml Graph library" HOMEPAGE="http://www.lri.fr/~filliatr/ocamlgraph/" @@ -12,33 +12,16 @@ SRC_URI="http://www.lri.fr/~filliatr/ftp/ocamlgraph/${P}.tar.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~amd64 ppc x86" -DEPEND=">=dev-lang/ocaml-3.08 +DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?] doc? ( dev-tex/hevea dev-ml/ocamlweb ) - gtk? ( dev-ml/lablgtk )" + gtk? ( dev-ml/lablgtk[gnomecanvas,ocamlopt?] )" IUSE="doc examples gtk +ocamlopt" -ocamlgraph_need_use() { - if ! built_with_use --missing true $1 $2; then - eerror "In order to build ${PN} with your useflags you first need to build $1 with $2 useflag" - die "Please install $1 with $2 useflag" - fi -} - -pkg_setup() { - use ocamlopt && ocamlgraph_need_use 'dev-lang/ocaml' ocamlopt - use gtk && ocamlgraph_need_use 'dev-ml/lablgtk' gnomecanvas - use ocamlopt && use gtk && ocamlgraph_need_use 'dev-ml/lablgtk' ocamlopt -} - -src_unpack() { - unpack ${A} - cd "${S}" - +src_prepare() { epatch "${FILESDIR}/${P}-installfindlib.patch" } src_compile() { - econf emake -j1 || die "failed to build" if use doc; then @@ -60,7 +43,7 @@ src_install() { newbin editor/editor.byte ocamlgraph_editor || die "failed to install ocamlgraph_editor" fi fi - dodoc README CREDITS FAQ CHANGES + dodoc README CREDITS FAQ CHANGES || die if use doc; then dohtml doc/* fi |