summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-01-03 18:38:24 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-01-03 18:38:24 +0000
commitbb01618e343d865d37ec1484418e491ff7137f67 (patch)
tree215f205c155a4dcb18a5254f4e3e436c261655cb /dev-ml/ulex
parentMarking epdfview-0.1.6-r1 ppc64 for bug 202871 (diff)
downloadhistorical-bb01618e343d865d37ec1484418e491ff7137f67.tar.gz
historical-bb01618e343d865d37ec1484418e491ff7137f67.tar.bz2
historical-bb01618e343d865d37ec1484418e491ff7137f67.zip
Allow to disable ocamlopt via an useflag
Package-Manager: portage-2.1.4_rc14
Diffstat (limited to 'dev-ml/ulex')
-rw-r--r--dev-ml/ulex/ChangeLog7
-rw-r--r--dev-ml/ulex/ulex-1.0.ebuild23
2 files changed, 23 insertions, 7 deletions
diff --git a/dev-ml/ulex/ChangeLog b/dev-ml/ulex/ChangeLog
index 0b95857759e7..b58e6e744a47 100644
--- a/dev-ml/ulex/ChangeLog
+++ b/dev-ml/ulex/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-ml/ulex
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/ulex/ChangeLog,v 1.12 2007/05/26 18:32:57 aballier Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/ulex/ChangeLog,v 1.13 2008/01/03 18:38:24 aballier Exp $
+
+ 03 Jan 2008; Alexis Ballier <aballier@gentoo.org> ulex-1.0.ebuild:
+ Allow to disable ocamlopt via an useflag
*ulex-1.0 (26 May 2007)
diff --git a/dev-ml/ulex/ulex-1.0.ebuild b/dev-ml/ulex/ulex-1.0.ebuild
index 48555dc886b3..44f0d44070ce 100644
--- a/dev-ml/ulex/ulex-1.0.ebuild
+++ b/dev-ml/ulex/ulex-1.0.ebuild
@@ -1,9 +1,11 @@
-# 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/ulex/ulex-1.0.ebuild,v 1.1 2007/05/26 18:32:57 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/ulex/ulex-1.0.ebuild,v 1.2 2008/01/03 18:38:24 aballier Exp $
inherit eutils findlib
+EAPI="1"
+
DESCRIPTION="A lexer generator for unicode"
HOMEPAGE="http://www.cduce.org"
SRC_URI="http://www.cduce.org/download/${P}.tar.gz"
@@ -11,13 +13,24 @@ SRC_URI="http://www.cduce.org/download/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
+IUSE="+ocamlopt"
DEPEND=">=dev-lang/ocaml-3.10.0"
+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() {
- make all || die
- make all.opt || die
+ emake all || die "failed to build bytecode"
+ if use ocamlopt; then
+ emake all.opt || die "failed to build native code"
+ fi
}
src_install() {