Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-ml/ocamlgraph
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ChangeLog,v 1.11 2008/04/06 19:42:21 aballier Exp $
06 Apr 2008; Alexis Ballier
remove old
06 Apr 2008; Markus Meier
x86 stable, bug #215751
03 Apr 2008; Brent Baude
stable ppc, bug 215751
01 Apr 2008; Alexis Ballier
-ocamlgraph-0.98.ebuild:
remove old
19 Jan 2008; Alexis Ballier
Annoying typo...
*ocamlgraph-0.99b (04 Jan 2008)
04 Jan 2008; Alexis Ballier
+files/ocamlgraph-0.99b-installfindlib.patch, +ocamlgraph-0.99b.ebuild:
version bump, allow building without ocamlopt
*ocamlgraph-0.98 (26 May 2007)
26 May 2007; Alexis Ballier
Version bump, ~amd64
09 Feb 2007; Diego Pettenò
Regenerate digest in Manifest2 format.
*ocamlgraph-0.81 (04 Feb 2006)
04 Feb 2006; Matthieu Sozeau
ocamlgraph-0.95.ebuild:
Mark 0.95 ~ as per policy, resurect 0.81.
*ocamlgraph-0.95 (04 Feb 2006)
04 Feb 2006; Matthieu Sozeau
+ocamlgraph-0.95.ebuild:
Version bump, compatible with ocaml-3.09
*ocamlgraph-0.81 (21 Sep 2005)
21 Sep 2005; Matthieu Sozeau
+ocamlgraph-0.81.ebuild:
ocamlgraph is a graph library for OCaml which implements a wide variety of
graphs and algorithms.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
AUX ocamlgraph-0.99b-installfindlib.patch 657 RMD160 0d76836ecef787ffbd60f01400e1aadcb01f6b0e SHA1 567bf97a809838ff1a3c444e9d0a3e085c1dc019 SHA256 b3a0bc51a64d1ef13d0a83e897620ead573c38c4185e46b1e0e34e58fa3f565a
DIST ocamlgraph-0.99b.tar.gz 175958 RMD160 72f48b2f89b2dd9025326c2ec7f7f60291b5ac95 SHA1 e6987832b55c69cc195c7c2334a1f1913fc5299b SHA256 c4a646cfd152791268d9c2716c5e1c55bf3f39e8637a85f3c3937e3dd4dafec7
EBUILD ocamlgraph-0.99b.ebuild 1806 RMD160 959b233c87c812e5fa48c2836a815a7c33a9529d SHA1 b4debcdcf7ae9a9ae51a15da08ca4fc3b3226e9a SHA256 17ce304044a6d9b7aef517e4a8bf3192cc3b5bae8daedb391c94beb0249b392b
MISC ChangeLog 1747 RMD160 b6d19b330cdba62bbf2a1d944c72e2ddc0363350 SHA1 5eb7116317f5b3cdf04edb5eb678bba30f0e4bfa SHA256 b4ad2a283920383ed981ea643b78ba8c0fd71bf47677be758e80c1cf228e7bc5
MISC metadata.xml 157 RMD160 30153301a2a5cca5547a6e47941aae2895837613 SHA1 66e87d50f913856e703f3ee29841b03332af40db SHA256 d14b8b08774f2a40f42d70ff40b1b4f1c4725e7095d702143a32909553eac799
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkf5J6UACgkQvFcC4BYPU0re6ACgziGLeX1qoZyBwYJ5WNKT/9vq
6Q8AnRjVRX1KP3mLFM4jO0bXLAE/40ci
=7CcT
-----END PGP SIGNATURE-----
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocamlgraph/ocamlgraph-0.99b.ebuild,v 1.4 2008/04/06 19:33:03 maekke Exp $
inherit findlib eutils
EAPI="1"
DESCRIPTION="O'Caml Graph library"
HOMEPAGE="http://www.lri.fr/~filliatr/ocamlgraph/"
SRC_URI="http://www.lri.fr/~filliatr/ftp/ocamlgraph/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
DEPEND=">=dev-lang/ocaml-3.08
doc? ( dev-tex/hevea dev-ml/ocamlweb )
gtk? ( dev-ml/lablgtk )"
IUSE="doc examples gtk +ocamlopt"
ocamlgraph_need_use() {
if ! built_with_use --missing true $1 $2; then
eerror "In order to build ${PN} with your useflags you first need to build $1 with $2 useflag"
die "Please install $1 with $2 useflag"
fi
}
pkg_setup() {
use ocamlopt && ocamlgraph_need_use 'dev-lang/ocaml' ocamlopt
use gtk && ocamlgraph_need_use 'dev-ml/lablgtk' gnomecanvas
use ocamlopt && use gtk && ocamlgraph_need_use 'dev-ml/lablgtk' ocamlopt
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-installfindlib.patch"
}
src_compile() {
econf
emake -j1 || die "failed to build"
if use doc; then
emake doc || die "making documentation failed"
fi
if use gtk; then
emake -j1 editor || die "compiling editor failed"
fi
}
src_install() {
findlib_src_preinst
emake install-findlib || die "make install failed"
if use gtk; then
if use ocamlopt; then
newbin editor/editor.opt ocamlgraph_editor || die "failed to install ocamlgraph_editor"
else
newbin editor/editor.byte ocamlgraph_editor || die "failed to install ocamlgraph_editor"
fi
fi
dodoc README CREDITS FAQ CHANGES
if use doc; then
dohtml doc/*
fi
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
}