1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit multilib python-single-r1
10 DESCRIPTION="Language bindings for Redland"
11 HOMEPAGE="http://librdf.org/bindings/"
12 SRC_URI="http://download.librdf.org/source/${P}.tar.gz"
14 LICENSE="Apache-2.0 GPL-2 LGPL-2.1"
16 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~x86-linux ~ppc-macos"
17 IUSE="lua perl python php ruby"
18 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
20 RDEPEND=">=dev-libs/redland-1.0.14
21 lua? ( >=dev-lang/lua-5.1:0 )
22 perl? ( dev-lang/perl:= )
23 php? ( dev-lang/php:* )
24 python? ( ${PYTHON_DEPS} )
25 ruby? ( dev-lang/ruby:* dev-ruby/log4r )"
32 use python && python-single-r1_pkg_setup
45 emake DESTDIR="${D}" INSTALLDIRS=vendor luadir=/usr/$(get_libdir)/lua/5.1 install
48 find "${ED}" -type f -name perllocal.pod -delete
49 find "${ED}" -depth -mindepth 1 -type d -empty -delete
51 use python && python_optimize
53 dodoc AUTHORS ChangeLog NEWS README TODO
54 dohtml {NEWS,README,RELEASE,TODO}.html