Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-ml/ocaml-expat
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-expat/ChangeLog,v 1.4 2008/07/13 06:56:01 josejx Exp $
13 Jul 2008; Joseph Jezak
Marked ~ppc for bug #197363.
11 Mar 2008; Alexis Ballier
+files/ocaml-expat-0.9.1-test.patch, ocaml-expat-0.9.1.ebuild:
Disable broken test that needs a non existant file, add ounit dep for tests,
bug #212961, test native code version too, allow to build without ocamlopt,
keyword ~amd64
07 Feb 2007; Alexandre Buisse
ocaml-expat-0.9.1.ebuild:
Changed LICENSE to the correct value (MIT instead of as-is). Fixes bug #165723.
*ocaml-expat-0.9.1 (06 Feb 2007)
06 Feb 2007; Alexandre Buisse
+ocaml-expat-0.9.1.ebuild:
Initial commit, ebuild courtesy of Oscar Hellström (bug #164443).
AUX ocaml-expat-0.9.1-test.patch 870 RMD160 1c4e82d0e55e9a5c9c956799b1e41154032bac8c SHA1 4bad9d8a2579f3e0d88e9a2eaaa2613ab5cac200 SHA256 f53c0612c19d8b101dacedb7f737d22d4ba17249c9cfeb95783248d75cd0f15a
DIST ocaml-expat-0.9.1.tar.gz 25223 RMD160 be731eacff0a114d948cfaedfafe9b9fc6dc54e7 SHA1 c0a65558cf996ac727fe5c61224d3e19dfd7d02a SHA256 5fbe8c38f3ab45da5f850aae6b37183f4a8b79a63771a83d7e3d3109fc90c29a
EBUILD ocaml-expat-0.9.1.ebuild 1436 RMD160 c26ad7f348e6805cdffc931fe3dde4de1aaeb01c SHA1 aae8b796a135994c27b28d9f377ac873fc79f3fa SHA256 29f074730f3e0c122406a52308b9528fb7f5b61fe1e3bf2c5411e1e47a0bb7de
MISC ChangeLog 974 RMD160 62b307bb6c0ec46677a00611a36739763e62c169 SHA1 b0a0fda9f88c3a8492e2f8d970d2f75a9de5236b SHA256 e39351a2a25c193c5241f46c640496dbc1e9fb67690c50ba4a3290183b501232
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/ocaml-expat/ocaml-expat-0.9.1.ebuild,v 1.4 2008/07/13 06:56:01 josejx Exp $
EAPI="1"
inherit findlib eutils
IUSE="doc +ocamlopt test"
DESCRIPTION="OCaml bindings for expat"
SRC_URI="http://www.xs4all.nl/~mmzeeman/ocaml/${P}.tar.gz"
HOMEPAGE="http://www.xs4all.nl/~mmzeeman/ocaml/"
RDEPEND="dev-libs/expat"
DEPEND="${RDEPEND}
test? ( dev-ml/ounit )"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64 ~ppc ~x86"
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
}
src_unpack(){
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-test.patch"
}
src_compile() {
emake depend || die "make depend failed"
emake all || die "make failed"
if use ocamlopt; then
emake allopt || die "failed to build native code programs"
fi
}
src_test() {
emake test || die "bytecode tests failed"
if use ocamlopt; then
emake testopt || die "native code tests failed"
fi
}
src_install() {
findlib_src_preinst
emake install || die
if use doc ; then
dohtml -r doc/html/*
fi
dodoc README
}