diff options
-rw-r--r-- | dev-ml/camlimages/ChangeLog | 7 | ||||
-rw-r--r-- | dev-ml/camlimages/camlimages-2.20.ebuild | 13 |
2 files changed, 16 insertions, 4 deletions
diff --git a/dev-ml/camlimages/ChangeLog b/dev-ml/camlimages/ChangeLog index fb77e39856e1..edf9d72bd7f8 100644 --- a/dev-ml/camlimages/ChangeLog +++ b/dev-ml/camlimages/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-ml/camlimages -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlimages/ChangeLog,v 1.8 2007/02/09 02:45:11 flameeyes Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlimages/ChangeLog,v 1.9 2008/01/03 20:36:50 aballier Exp $ + + 03 Jan 2008; Alexis Ballier <aballier@gentoo.org> camlimages-2.20.ebuild: + ocamlopt is required here, there is no option to disable it sanely 09 Feb 2007; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: Regenerate digest in Manifest2 format. diff --git a/dev-ml/camlimages/camlimages-2.20.ebuild b/dev-ml/camlimages/camlimages-2.20.ebuild index 0514e49c194b..28518f2c2dfe 100644 --- a/dev-ml/camlimages/camlimages-2.20.ebuild +++ b/dev-ml/camlimages/camlimages-2.20.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 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/camlimages/camlimages-2.20.ebuild,v 1.4 2006/02/04 13:36:17 mattam Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlimages/camlimages-2.20.ebuild,v 1.5 2008/01/03 20:36:50 aballier Exp $ inherit findlib eutils @@ -18,6 +18,15 @@ DEPEND=">=dev-lang/ocaml-3.08" MY_S="${WORKDIR}/${P/20/2}" +pkg_setup() { + if ! built_with_use --missing true dev-lang/ocaml ocamlopt; then + eerror "${PN} needs to be built 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_unpack() { unpack ${A} cd ${MY_S} |