summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-11-25 00:08:43 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-11-25 00:08:43 +0000
commitba2e3a13cbddda0b59d3359629686e17f10fcf08 (patch)
tree0fb457b7c68d3028df0b28f678b591947eaf09b5
parentUse Debian patchset to port from obsolete thunar-vfs layer to libgio-2.0. (diff)
downloadgentoo-2-ba2e3a13cbddda0b59d3359629686e17f10fcf08.tar.gz
gentoo-2-ba2e3a13cbddda0b59d3359629686e17f10fcf08.tar.bz2
gentoo-2-ba2e3a13cbddda0b59d3359629686e17f10fcf08.zip
Version bump.
(Portage version: 2.2.0_alpha77/cvs/Linux x86_64)
-rw-r--r--dev-libs/redland-bindings/ChangeLog8
-rw-r--r--dev-libs/redland-bindings/redland-bindings-1.0.14.1.ebuild103
2 files changed, 110 insertions, 1 deletions
diff --git a/dev-libs/redland-bindings/ChangeLog b/dev-libs/redland-bindings/ChangeLog
index ab86181a70b6..f6f23ffaf716 100644
--- a/dev-libs/redland-bindings/ChangeLog
+++ b/dev-libs/redland-bindings/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/redland-bindings
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/redland-bindings/ChangeLog,v 1.24 2011/07/29 11:15:17 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/redland-bindings/ChangeLog,v 1.25 2011/11/25 00:08:43 ssuominen Exp $
+
+*redland-bindings-1.0.14.1 (25 Nov 2011)
+
+ 25 Nov 2011; Samuli Suominen <ssuominen@gentoo.org>
+ +redland-bindings-1.0.14.1.ebuild:
+ Version bump.
29 Jul 2011; Samuli Suominen <ssuominen@gentoo.org>
-redland-bindings-1.0.10.1-r1.ebuild:
diff --git a/dev-libs/redland-bindings/redland-bindings-1.0.14.1.ebuild b/dev-libs/redland-bindings/redland-bindings-1.0.14.1.ebuild
new file mode 100644
index 000000000000..c06a2ebd59a9
--- /dev/null
+++ b/dev-libs/redland-bindings/redland-bindings-1.0.14.1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/redland-bindings/redland-bindings-1.0.14.1.ebuild,v 1.1 2011/11/25 00:08:43 ssuominen Exp $
+
+EAPI=4
+PYTHON_DEPEND="python? 2:2.7"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+inherit multilib python
+
+DESCRIPTION="Language bindings for Redland"
+HOMEPAGE="http://librdf.org/bindings/"
+SRC_URI="http://download.librdf.org/source/${P}.tar.gz"
+
+LICENSE="Apache-2.0 GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-macos"
+IUSE="lua perl python php ruby"
+
+RDEPEND=">=dev-libs/redland-1.0.14
+ lua? ( >=dev-lang/lua-5.1 )
+ perl? ( dev-lang/perl )
+ php? ( dev-lang/php )
+ ruby? ( dev-lang/ruby dev-ruby/log4r )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ >=dev-lang/swig-2
+ sys-apps/sed"
+
+pkg_setup() {
+ use python && python_pkg_setup
+}
+
+src_configure() {
+ econf \
+ $(use_with lua) \
+ $(use_with perl) \
+ $(use_with python) \
+ $(use_with php) \
+ $(use_with ruby)
+
+ # Python bindings are built/tested/installed manually.
+ sed -e "/^SUBDIRS =/s/ python//" -i Makefile
+}
+
+src_compile() {
+ default
+
+ if use python; then
+ python_copy_sources python
+
+ building() {
+ emake \
+ PYTHON_INCLUDES="-I$(python_get_includedir)" \
+ pythondir="$(python_get_sitedir)"
+ }
+ python_execute_function -s --source-dir python building
+ fi
+}
+
+src_test() {
+ default
+
+ if use python; then
+ testing() {
+ emake \
+ PYTHON="$(PYTHON)" \
+ check
+ }
+ python_execute_function -s --source-dir python testing
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" INSTALLDIRS=vendor luadir=/usr/$(get_libdir)/lua/5.1 install
+
+ if use perl; then
+ find "${ED}" -type f -name perllocal.pod -delete
+ find "${ED}" -depth -mindepth 1 -type d -empty -delete
+ fi
+
+ if use python; then
+ installation() {
+ emake \
+ DESTDIR="${D}" \
+ pythondir="$(python_get_sitedir)" \
+ install
+ }
+ python_execute_function -s --source-dir python installation
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README TODO
+ dohtml {NEWS,README,RELEASE,TODO}.html
+}
+
+pkg_postinst() {
+ use python && python_mod_optimize RDF.py
+}
+
+pkg_postrm() {
+ use python && python_mod_cleanup RDF.py
+}