diff options
Diffstat (limited to 'dev-util/omake')
-rw-r--r-- | dev-util/omake/ChangeLog | 7 | ||||
-rw-r--r-- | dev-util/omake/omake-0.9.8.5.ebuild | 27 |
2 files changed, 27 insertions, 7 deletions
diff --git a/dev-util/omake/ChangeLog b/dev-util/omake/ChangeLog index 2ccbd5a4ff92..6047b905472b 100644 --- a/dev-util/omake/ChangeLog +++ b/dev-util/omake/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-util/omake -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/omake/ChangeLog,v 1.15 2007/08/23 09:16:48 aballier Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/omake/ChangeLog,v 1.16 2008/01/04 02:35:06 aballier Exp $ + + 04 Jan 2008; Alexis Ballier <aballier@gentoo.org> omake-0.9.8.5.ebuild: + allow to build without ocamlopt *omake-0.9.8.5 (23 Aug 2007) diff --git a/dev-util/omake/omake-0.9.8.5.ebuild b/dev-util/omake/omake-0.9.8.5.ebuild index 92913ed8301e..2423a40af3f7 100644 --- a/dev-util/omake/omake-0.9.8.5.ebuild +++ b/dev-util/omake/omake-0.9.8.5.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-util/omake/omake-0.9.8.5.ebuild,v 1.1 2007/08/23 09:16:48 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/omake/omake-0.9.8.5.ebuild,v 1.2 2008/01/04 02:35:06 aballier Exp $ inherit eutils toolchain-funcs multilib +EAPI="1" + EXTRAPV="-3" DESCRIPTION="Make replacement" HOMEPAGE="http://omake.metaprl.org/" @@ -12,12 +14,21 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" -IUSE="doc fam ncurses readline" +IUSE="doc fam ncurses +ocamlopt readline" DEPEND=">=dev-lang/ocaml-3.0.8 ncurses? ( >=sys-libs/ncurses-5.3 ) fam? ( virtual/fam ) readline? ( >=sys-libs/readline-4.3 )" +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 +} + use_boolean() { if use $1; then echo "true" @@ -36,8 +47,13 @@ src_compile() { echo "CC = $(tc-getCC)" >> .config echo "CFLAGS = ${CFLAGS}" >> .config - echo "NATIVE_ENABLED = true" >> .config - echo "BYTE_ENABLED = false" >> .config + if use ocamlopt; then + echo "NATIVE_ENABLED = true" >> .config + echo "BYTE_ENABLED = false" >> .config + else + echo "NATIVE_ENABLED = false" >> .config + echo "BYTE_ENABLED = true" >> .config + fi echo "NATIVE_PROFILE = false" >> .config @@ -59,4 +75,5 @@ src_install() { dodoc doc/ps/omake-doc.{pdf,ps} doc/txt/omake-doc.txt dohtml -r doc/html/* fi + use ocamlopt || export STRIP_MASK="*/bin/*" } |