From 4cb7dac53b94a1f15bd924a1e1b7ea704768433f Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Thu, 3 Jan 2008 19:33:58 +0000 Subject: ocamlopt is required here, there is no option to disable it (Portage version: 2.1.4_rc14) --- dev-ml/camlidl/ChangeLog | 7 +++++-- dev-ml/camlidl/camlidl-1.05.ebuild | 17 ++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/dev-ml/camlidl/ChangeLog b/dev-ml/camlidl/ChangeLog index 450269ec7354..547c1a3bfe11 100644 --- a/dev-ml/camlidl/ChangeLog +++ b/dev-ml/camlidl/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-ml/camlidl -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlidl/ChangeLog,v 1.2 2007/02/09 02:44:43 flameeyes Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlidl/ChangeLog,v 1.3 2008/01/03 19:33:58 aballier Exp $ + + 03 Jan 2008; Alexis Ballier camlidl-1.05.ebuild: + ocamlopt is required here, there is no option to disable it 09 Feb 2007; Diego Pettenò ChangeLog: Regenerate digest in Manifest2 format. diff --git a/dev-ml/camlidl/camlidl-1.05.ebuild b/dev-ml/camlidl/camlidl-1.05.ebuild index e51f30a73c2c..da88e110ddb7 100644 --- a/dev-ml/camlidl/camlidl-1.05.ebuild +++ b/dev-ml/camlidl/camlidl-1.05.ebuild @@ -1,6 +1,8 @@ -# Copyright 1999-2004 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/camlidl/camlidl-1.05.ebuild,v 1.1 2004/09/25 20:15:43 mattam Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlidl/camlidl-1.05.ebuild,v 1.2 2008/01/03 19:33:58 aballier Exp $ + +inherit eutils DESCRIPTION="CamlIDL is a stub code generator for using C/C++ libraries from O'Caml" HOMEPAGE="http://caml.inria.fr/camlidl/" @@ -11,6 +13,15 @@ KEYWORDS="~x86 ~ppc ~amd64" IUSE="" DEPEND=">=dev-lang/ocaml-3.07" +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_compile() { # Use the UNIX makefile libdir=`ocamlc -where` @@ -33,7 +44,7 @@ src_install() { dodir ${libdir}/caml dodir /usr/bin # Install - emake BINDIR=${D}/usr/bin OCAMLLIB=${D}${libdir} install || die + emake BINDIR="${D}/usr/bin" OCAMLLIB="${D}${libdir}" install || die # Documentation dodoc README Changes -- cgit v1.2.3-65-gdbad