# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Galax is an open-source implementation of XQuery 1.0, the W3C XML Query Language in ocaml." HOMEPAGE="http://www.galaxquery.org/" #SRC_URI="http://www.galaxquery.org/Downloads/.../${P}.tgz" SRC_URI="${P}.tgz" LICENSE="Lucent-1" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="java jungle" RESTRICT="fetch" DEPEND=">=dev-lang/ocaml-3.09 >=dev-ml/pcre-ocaml-5.0 >=dev-ml/findlib-1.1.2 >=dev-ml/camlidl-1.05 >=dev-ml/pxp-1.1.96 =dev-ml/camomile-0.7.1 jungle? ( >=sys-libs/db-4.4 ) java? ( >=virtual/jdk-1.4 )" RDEPEND=">=dev-lang/ocaml-3.09 >=dev-ml/pcre-ocaml-5.0 >=dev-ml/findlib-1.1.2 >=dev-ml/camlidl-1.05 >=dev-ml/pxp-1.1.96 =dev-ml/camomile-0.7.1 jungle? ( >=sys-libs/db-4.4 ) java? ( >=virtual/jre-1.4 )" S="${WORKDIR}/${P}" pkg_nofetch() { ewarn "The sources for ${PN} are fetch restricted. Please acquire" ewarn "${SRC_URI} from ${HOMEPAGE} and" ewarn "install in /usr/portage/distfiles before emerging" } src_unpack() { unpack ${A} epatch ${FILESDIR}/${P}-camomile-0.7.1.patch } src_compile() { local OCAMLLIB=`ocamlfind printconf stdlib` einfo "Please note that the java and jungle USE flags are currently ignored" cd ${S} ./configure -with-c -without-jungle -local "${D}opt" \ -local-include "${D}opt/${PN}/include" -ocaml-home /usr \ -ocaml-lib ${OCAMLLIB} || die "configure failed" make updatedepend make } src_install() { emake -j1 DESTDIR="${D}" install || die "emake install failed" } src_postinst() { einfo "${P} is installed in /opt/${PN}" }