summaryrefslogtreecommitdiff
blob: 7a22fea340acced1373d1a89831462546f816a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/redland-bindings/redland-bindings-0.9.18.1.ebuild,v 1.1 2004/08/16 04:55:10 vapier Exp $

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="perl python java tcltk php ruby"

DEPEND="dev-libs/redland
	dev-lang/swig
	perl? ( dev-lang/perl )
	python? ( dev-lang/python )
	java? ( virtual/jdk )
	tcltk? ( dev-lang/tcl )
	php? ( dev-php/php )
	ruby? ( dev-lang/ruby )"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PV}-configure.patch
	sed -i 's:$(INSTALL_PROGRAM) $(TCL_PACKAGE):$(INSTALL_PROGRAM) -D $(TCL_PACKAGE):' tcl/Makefile.in
return 0
	# 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() {
	econf \
		`use_with perl` \
		`use_with python` \
		`use_with java` \
		`use_with java jdk ${JAVA_HOME}` \
		`use_with tcltk tcl` \
		`use_with php` \
		`use_with ruby` \
		|| die
	emake || die
}

src_install() {
	make install DESTDIR=${D} || die
	dodoc AUTHORS ChangeLog* INSTALL NEWS README TODO
	dohtml *.html
}