1 |
commit: 104550b95288c8006f02c3867e1cefdcb5283e4e |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 17:42:00 2016 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 17:42:00 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=104550b9 |
7 |
|
8 |
dev-python/visual: Bump to EAPI=5 and python-single-r1.eclass |
9 |
|
10 |
Fix for libsigc++-2.6 |
11 |
|
12 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=570618 |
13 |
|
14 |
Package-Manager: portage-2.2.26 |
15 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
16 |
|
17 |
dev-python/visual/visual-5.74-r1.ebuild | 72 +++++++++++++++++++++++++++++++++ |
18 |
1 file changed, 72 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/visual/visual-5.74-r1.ebuild b/dev-python/visual/visual-5.74-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 0000000..a2d6d23 |
23 |
--- /dev/null |
24 |
+++ b/dev-python/visual/visual-5.74-r1.ebuild |
25 |
@@ -0,0 +1,72 @@ |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI=5 |
31 |
+ |
32 |
+PYTHON_COMPAT=( python2_7 ) |
33 |
+ |
34 |
+inherit eutils flag-o-matic multilib python-single-r1 versionator |
35 |
+ |
36 |
+MY_P="${PN}-$(delete_version_separator 2)_release" |
37 |
+ |
38 |
+DESCRIPTION="Real-time 3D graphics library for Python" |
39 |
+HOMEPAGE="http://www.vpython.org/" |
40 |
+SRC_URI="http://www.vpython.org/contents/download/${MY_P}.tar.bz2" |
41 |
+ |
42 |
+LICENSE="HPND Boost-1.0" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~ppc ~x86" |
45 |
+IUSE="doc examples" |
46 |
+ |
47 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
48 |
+ |
49 |
+RDEPEND="${PYTHON_DEPS} |
50 |
+ >=dev-cpp/gtkglextmm-1.2 |
51 |
+ dev-cpp/libglademm |
52 |
+ >=dev-libs/boost-1.48[python,${PYTHON_USEDEP}] |
53 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
54 |
+ dev-python/polygon:2[${PYTHON_USEDEP}] |
55 |
+ dev-python/ttfquery[${PYTHON_USEDEP}]" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ virtual/pkgconfig" |
58 |
+ |
59 |
+S="${WORKDIR}/${MY_P}" |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ # Verbose build. |
63 |
+ sed -i \ |
64 |
+ -e 's/2\?>>[[:space:]]*\$(LOGFILE).*//' \ |
65 |
+ src/Makefile.in || die |
66 |
+ |
67 |
+ epatch "${FILESDIR}/${P}-boost-1.50.patch" |
68 |
+ |
69 |
+ sed \ |
70 |
+ -e "s/-lboost_python/-lboost_python-${EPYTHON#python}/" \ |
71 |
+ -e "s/libboost_python/libboost_python-${EPYTHON#python}/" \ |
72 |
+ -i src/Makefile.in src/gtk2/makefile || die |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ BOOST_PKG="$(best_version ">=dev-libs/boost-1.48")" |
77 |
+ BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")" |
78 |
+ BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")" |
79 |
+ BOOST_INC="${EPREFIX}/usr/include/boost-${BOOST_VER}" |
80 |
+ BOOST_LIB="${EPREFIX}/usr/$(get_libdir)/boost-${BOOST_VER}" |
81 |
+ |
82 |
+ # Specify the include and lib directory for Boost. |
83 |
+ append-cxxflags -I${BOOST_INC} -std=c++11 |
84 |
+ append-ldflags -L${BOOST_LIB} |
85 |
+ |
86 |
+ econf \ |
87 |
+ --with-example-dir="${EPREFIX}/usr/share/doc/${PF}/examples" \ |
88 |
+ --with-html-dir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
89 |
+ $(use_enable doc docs) \ |
90 |
+ $(use_enable examples) |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ default |
95 |
+ |
96 |
+ dodoc authors.txt HACKING.txt NEWS.txt |
97 |
+} |