1 |
commit: 37e203e784364e5fa60972cac749ceb804cde12e |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 29 16:04:13 2013 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 29 16:04:13 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=37e203e7 |
7 |
|
8 |
sci-chemistry/coot: Move to new python eclasses |
9 |
|
10 |
Package-Manager: portage-2.2.0_alpha177 |
11 |
|
12 |
--- |
13 |
sci-chemistry/coot/ChangeLog | 3 +++ |
14 |
sci-chemistry/coot/coot-9999.ebuild | 16 +++++++++------- |
15 |
2 files changed, 12 insertions(+), 7 deletions(-) |
16 |
|
17 |
diff --git a/sci-chemistry/coot/ChangeLog b/sci-chemistry/coot/ChangeLog |
18 |
index 1d89d32..e877cf7 100644 |
19 |
--- a/sci-chemistry/coot/ChangeLog |
20 |
+++ b/sci-chemistry/coot/ChangeLog |
21 |
@@ -2,6 +2,9 @@ |
22 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
23 |
# $Header: $ |
24 |
|
25 |
+ 29 May 2013; Justin Lecher <jlec@g.o> coot-9999.ebuild: |
26 |
+ Move to new python eclasses |
27 |
+ |
28 |
29 May 2013; Justin Lecher <jlec@g.o> coot-9999.ebuild, metadata.xml: |
29 |
Drop version from clipper |
30 |
|
31 |
|
32 |
diff --git a/sci-chemistry/coot/coot-9999.ebuild b/sci-chemistry/coot/coot-9999.ebuild |
33 |
index 6beaf9e..73032af 100644 |
34 |
--- a/sci-chemistry/coot/coot-9999.ebuild |
35 |
+++ b/sci-chemistry/coot/coot-9999.ebuild |
36 |
@@ -2,13 +2,13 @@ |
37 |
# Distributed under the terms of the GNU General Public License v2 |
38 |
# $Header: $ |
39 |
|
40 |
-EAPI=4 |
41 |
+EAPI=5 |
42 |
|
43 |
-PYTHON_DEPEND="2" |
44 |
+PYTHON_COMPAT=( python{2_6,2_7} ) |
45 |
|
46 |
AUTOTOOLS_AUTORECONF="true" |
47 |
|
48 |
-inherit autotools-utils python subversion toolchain-funcs versionator |
49 |
+inherit autotools-utils python-single-r1 subversion toolchain-funcs versionator |
50 |
|
51 |
MY_S2_PV=$(replace_version_separator 2 - ${PV}) |
52 |
MY_S2_P=${PN}-${MY_S2_PV/pre1/pre-1} |
53 |
@@ -26,6 +26,8 @@ LICENSE="GPL-3" |
54 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
55 |
IUSE="+openmp static-libs test" |
56 |
|
57 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
58 |
+ |
59 |
AUTOTOOLS_IN_SOURCE_BUILD=1 |
60 |
|
61 |
SCIDEPS=" |
62 |
@@ -60,7 +62,8 @@ RDEPEND=" |
63 |
${SCIDEPS} |
64 |
${XDEPS} |
65 |
${SCHEMEDEPS} |
66 |
- dev-python/pygtk:2 |
67 |
+ ${PYTHON_DEPS} |
68 |
+ dev-python/pygtk:2[${PYTHON_USEDEP}] |
69 |
>=dev-libs/gmp-4.2.2-r2 |
70 |
>=net-misc/curl-7.19.6 |
71 |
net-dns/libidn" |
72 |
@@ -76,8 +79,7 @@ pkg_setup() { |
73 |
if use openmp; then |
74 |
tc-has-openmp || die "Please use an OPENMP capable compiler" |
75 |
fi |
76 |
- python_set_active_version 2 |
77 |
- python_pkg_setup |
78 |
+ python-single-r1_pkg_setup |
79 |
} |
80 |
|
81 |
PATCHES=( |
82 |
@@ -126,7 +128,7 @@ src_configure() { |
83 |
|
84 |
src_compile() { |
85 |
autotools-utils_src_compile |
86 |
- python_convert_shebangs $(python_get_version) "${S}"/src/coot_gtk2.py |
87 |
+ python_fix_shebang "${S}"/src/coot_gtk2.py |
88 |
cp "${S}"/src/coot_gtk2.py python/coot.py || die |
89 |
} |