# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit eutils DESCRIPTION="Language bindings for Redland" HOMEPAGE="http://www.redland.opensource.ac.uk/" SRC_URI="http://www.redland.opensource.ac.uk/dist/source/${P}.tar.gz" LICENSE="LGPL-2 MPL-1.1" SLOT="0" KEYWORDS="~x86" IUSE="java perl php python ruby tcltk" DEPEND="dev-libs/redland java? ( virtual/jdk ) perl? ( dev-lang/perl ) php? ( dev-php/php ) python? ( dev-lang/python ) ruby? ( dev-lang/ruby ) tcltk? ( dev-lang/tcl )" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/configure-java.patch # timestamps in the 0.9.18.1 build are a bit broken # the following probably won't have to be here for future versions touch java/org/librdf/redland/core.java.in touch java/core_wrap.c touch perl/lib/RDF/Redland/CORE.pm touch perl/CORE_wrap.c touch php/redland_wrap.c.orig touch php/redland_wrap.c touch php/php_redland.h touch python/Redland_wrap.c touch ruby/redland_wrap.c touch tcl/Redland_wrap.c } src_compile() { local javaconf use java && javaconf="--with-java --with-jdk=${JAVA_HOME}" econf \ $javaconf \ `use_with perl` \ `use_with php` \ `use_with python` \ `use_with ruby` \ `use_with tcltk` \ || die emake || die } src_install() { make install DESTDIR=${D} || die dodoc AUTHORS ChangeLog* INSTALL NEWS README TODO dohtml *.html }