1 |
commit: e07fe5b23618c6f420f76610dc42853ef97aa85e |
2 |
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> |
3 |
AuthorDate: Thu Dec 17 23:34:50 2015 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 17 23:34:50 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=e07fe5b2 |
7 |
|
8 |
dev-python/pyexiv2: 0.3.2 |
9 |
|
10 |
dev-python/pyexiv2/pyexiv2-0.3.2.ebuild | 55 +++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 55 insertions(+) |
12 |
|
13 |
diff --git a/dev-python/pyexiv2/pyexiv2-0.3.2.ebuild b/dev-python/pyexiv2/pyexiv2-0.3.2.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..bd87d43 |
16 |
--- /dev/null |
17 |
+++ b/dev-python/pyexiv2/pyexiv2-0.3.2.ebuild |
18 |
@@ -0,0 +1,55 @@ |
19 |
+# Copyright 1999-2014 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=5 |
24 |
+ |
25 |
+PYTHON_COMPAT=( python2_7 ) |
26 |
+ |
27 |
+inherit eutils versionator scons-utils python-single-r1 |
28 |
+ |
29 |
+MY_PV=$(get_version_component_range 1-2) |
30 |
+DESCRIPTION="Python binding to exiv2" |
31 |
+HOMEPAGE="http://tilloy.net/dev/pyexiv2/" |
32 |
+SRC_URI="http://launchpad.net/${PN}/${MY_PV}.x/${PV}/+download/${P}.tar.bz2" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+IUSE="doc examples" |
38 |
+ |
39 |
+DEPEND=" |
40 |
+ >=media-gfx/exiv2-0.20 |
41 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
42 |
+ >=dev-libs/boost-1.57[python,${PYTHON_USEDEP}]" |
43 |
+RDEPEND="${DEPEND}" |
44 |
+ |
45 |
+_get_boostlib() { |
46 |
+ python -c 'import sys; print ("boost_python-%d.%d" % sys.version_info[0:2])' |
47 |
+} |
48 |
+ |
49 |
+src_compile() { |
50 |
+ escons BOOSTLIB="$(_get_boostlib)" lib |
51 |
+ if use doc; then |
52 |
+ escons doc |
53 |
+ |
54 |
+ # To enable doins -r in src_install |
55 |
+ rm -R doc/_build/.doctrees || die |
56 |
+ fi |
57 |
+} |
58 |
+ |
59 |
+src_install() { |
60 |
+ escons DESTDIR="${D}" BOOSTLIB="$(_get_boostlib)" install |
61 |
+ dodoc NEWS README todo |
62 |
+ |
63 |
+ if use examples; then |
64 |
+ insinto /usr/share/${PN}/examples |
65 |
+ doins src/*example*.py |
66 |
+ fi |
67 |
+ |
68 |
+ if use doc; then |
69 |
+ docinto html |
70 |
+ dodoc -r doc/html/* |
71 |
+ fi |
72 |
+ python_optimize |
73 |
+} |