diff options
author | Alexis Ballier <aballier@gentoo.org> | 2008-01-02 20:50:47 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2008-01-02 20:50:47 +0000 |
commit | 649170b4863352d92f11354b665e372fc4d8f300 (patch) | |
tree | 1ef47b0ee561c557897a00ce72f1642bd950208d /dev-ml/lablgtk | |
parent | dev-ml/lablgtk ocamlopt useflag (diff) | |
download | gentoo-2-649170b4863352d92f11354b665e372fc4d8f300.tar.gz gentoo-2-649170b4863352d92f11354b665e372fc4d8f300.tar.bz2 gentoo-2-649170b4863352d92f11354b665e372fc4d8f300.zip |
Add support to not build with ocamlopt
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'dev-ml/lablgtk')
-rw-r--r-- | dev-ml/lablgtk/ChangeLog | 7 | ||||
-rw-r--r-- | dev-ml/lablgtk/lablgtk-2.10.0.ebuild | 22 |
2 files changed, 23 insertions, 6 deletions
diff --git a/dev-ml/lablgtk/ChangeLog b/dev-ml/lablgtk/ChangeLog index ce3f261379c7..fdea729d4d30 100644 --- a/dev-ml/lablgtk/ChangeLog +++ b/dev-ml/lablgtk/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-ml/lablgtk -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v 1.54 2007/10/30 22:41:25 aballier Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/ChangeLog,v 1.55 2008/01/02 20:50:47 aballier Exp $ + + 02 Jan 2008; Alexis Ballier <aballier@gentoo.org> lablgtk-2.10.0.ebuild: + Add support to not build with ocamlopt *lablgtk-2.10.0 (30 Oct 2007) diff --git a/dev-ml/lablgtk/lablgtk-2.10.0.ebuild b/dev-ml/lablgtk/lablgtk-2.10.0.ebuild index 1ecda2bdc356..48079bc97359 100644 --- a/dev-ml/lablgtk/lablgtk-2.10.0.ebuild +++ b/dev-ml/lablgtk/lablgtk-2.10.0.ebuild @@ -1,10 +1,12 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/lablgtk-2.10.0.ebuild,v 1.1 2007/10/30 22:41:25 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ml/lablgtk/lablgtk-2.10.0.ebuild,v 1.2 2008/01/02 20:50:47 aballier Exp $ inherit eutils multilib -IUSE="debug doc glade gnome gnomecanvas sourceview opengl spell svg" +EAPI="1" + +IUSE="debug doc glade gnome gnomecanvas sourceview +ocamlopt opengl spell svg" DESCRIPTION="Objective CAML interface for Gtk+2" HOMEPAGE="http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html" @@ -28,6 +30,15 @@ DEPEND=">=x11-libs/gtk+-2.10 SLOT="2" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" +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() { econf $(use_enable debug) \ $(use_with svg rsvg) \ @@ -40,7 +51,10 @@ src_compile() { $(use_with gnomecanvas) \ || die "configure failed" - emake -j1 all opt || die "make failed" + emake -j1 all || die "make failed" + if use ocamlopt; then + emake -j1 opt || die "Compiling native code failed" + fi } install_examples() { |