Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-ml/camlidl
# 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
ocamlopt is required here, there is no option to disable it
09 Feb 2007; Diego Pettenò
Regenerate digest in Manifest2 format.
*camlidl-1.05 (25 Sep 2004)
25 Sep 2004; Matthieu Sozeau
+camlidl-1.05.ebuild:
New package for building stub code from C/C++ libraries, submitted by Bardur
Arantsson
DIST camlidl-1.05.tar.gz 100640 RMD160 2b103dc407986fc29501fd2b2b41ec212b28dd10 SHA1 2a0d5ba70fea8c1de1c5387f8b2058357b2177df SHA256 857ed5bd3b2f99c62813070e1a5b4b6375e837c6815f4ad956baeb6f8c660311
EBUILD camlidl-1.05.ebuild 1466 RMD160 cf1145cdba5f35fd247e3614b071c0916b3ea864 SHA1 1117cd12ec95078b9385f176a66ee459d156382e SHA256 496bcdc937e9b7b533e3a31573cb00870bc502f7d26400a9147e65726f25f9f7
MISC ChangeLog 700 RMD160 81280896c4acd94f59dbd4b0e0953faaa84ed586 SHA1 e7d6cce12207837dd450ca98089d8d0efca7cdad SHA256 ad3a54fb88bc97623406302041a83b0e9a9f2cddb047ef7b0cf9581342cad162
MISC metadata.xml 157 RMD160 30153301a2a5cca5547a6e47941aae2895837613 SHA1 66e87d50f913856e703f3ee29841b03332af40db SHA256 d14b8b08774f2a40f42d70ff40b1b4f1c4725e7095d702143a32909553eac799
# 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.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/"
SRC_URI="http://caml.inria.fr/distrib/bazar-ocaml/${P}.tar.gz"
LICENSE="QPL-1.0 LGPL-2"
SLOT="0"
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`
sed -i -e "s|OCAMLLIB=.*|OCAMLLIB=${libdir}|" config/Makefile.unix
sed -i -e "s|BINDIR=.*|BINDIR=/usr/bin|" config/Makefile.unix
ln -s Makefile.unix config/Makefile
# Make
emake -j1 || die
}
src_test() {
einfo "Running tests..."
cd tests
( make CCPP=g++ && einfo "Tests finished successfully" ) || die "Tests failed"
}
src_install() {
libdir=`ocamlc -where`
dodir ${libdir}/caml
dodir /usr/bin
# Install
emake BINDIR="${D}/usr/bin" OCAMLLIB="${D}${libdir}" install || die
# Documentation
dodoc README Changes
}