summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2015-12-17 23:26:23 +0100
committerSebastian Pipping <sebastian@pipping.org>2015-12-17 23:26:23 +0100
commit0a930cd135228c199806c8b140878eb360b8d0b1 (patch)
treefa68d01e67ccd947aea7fdef9782b5f7034f779f /dev-python
parentapp-dicts/12dicts: Fix Windows newlines on the fly (diff)
downloadbetagarden-0a930cd135228c199806c8b140878eb360b8d0b1.tar.gz
betagarden-0a930cd135228c199806c8b140878eb360b8d0b1.tar.bz2
betagarden-0a930cd135228c199806c8b140878eb360b8d0b1.zip
dev-python/pyexiv2: Fix compilation against libboost_python-X.Y.so
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pyexiv2/pyexiv2-0.3.0-r2.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/pyexiv2/pyexiv2-0.3.0-r2.ebuild b/dev-python/pyexiv2/pyexiv2-0.3.0-r2.ebuild
new file mode 100644
index 0000000..1a3adcd
--- /dev/null
+++ b/dev-python/pyexiv2/pyexiv2-0.3.0-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils versionator scons-utils python-single-r1
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="Python binding to exiv2"
+HOMEPAGE="http://tilloy.net/dev/pyexiv2/"
+SRC_URI="http://launchpad.net/${PN}/${MY_PV}.x/${MY_PV}/+download/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+DEPEND="
+ >=media-gfx/exiv2-0.20
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ >=dev-libs/boost-1.57[python,${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+_get_boostlib() {
+ python -c 'import sys; print ("boost_python-%d.%d" % sys.version_info[0:2])'
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-docs.patch
+}
+
+src_compile() {
+ escons BOOSTLIB="$(_get_boostlib)" lib
+ if use doc; then
+ escons doc
+
+ # To enable doins -r in src_install
+ rm -R doc/_build/.doctrees || die
+ fi
+}
+
+src_install() {
+ escons DESTDIR="${D}" BOOSTLIB="$(_get_boostlib)" install
+ dodoc NEWS README todo
+
+ if use examples; then
+ insinto /usr/share/${PN}/examples
+ doins src/*example*.py
+ fi
+
+ if use doc; then
+ docinto html
+ dodoc -r doc/html/*
+ fi
+ python_optimize
+}