1 |
commit: 6828d951509f248aa3130ba16d48b72fab33e635 |
2 |
Author: Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be> |
3 |
AuthorDate: Tue Oct 11 18:37:09 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 12 07:36:58 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6828d951 |
7 |
|
8 |
dev-python/mimeparse: use the actual ABI version |
9 |
|
10 |
In src_install there was a bit of scripted logic to determine |
11 |
the ABI used for link creation. This wasn't working with a |
12 |
newer version of pypy3. Instead of the logic a small Python |
13 |
script is implemented that should always get the correct |
14 |
ABI version. |
15 |
|
16 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=586008 |
17 |
|
18 |
Package-Manager: portage-2.3.0 |
19 |
Closes: https://github.com/gentoo/gentoo/pull/2538 |
20 |
|
21 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
22 |
|
23 |
dev-python/mimeparse/mimeparse-1.5.2-r1.ebuild | 16 +++++----------- |
24 |
1 file changed, 5 insertions(+), 11 deletions(-) |
25 |
|
26 |
diff --git a/dev-python/mimeparse/mimeparse-1.5.2-r1.ebuild b/dev-python/mimeparse/mimeparse-1.5.2-r1.ebuild |
27 |
index 0d1ed5a..e4d7e74 100644 |
28 |
--- a/dev-python/mimeparse/mimeparse-1.5.2-r1.ebuild |
29 |
+++ b/dev-python/mimeparse/mimeparse-1.5.2-r1.ebuild |
30 |
@@ -2,9 +2,9 @@ |
31 |
# Distributed under the terms of the GNU General Public License v2 |
32 |
# $Id$ |
33 |
|
34 |
-EAPI=5 |
35 |
+EAPI=6 |
36 |
|
37 |
-PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) |
38 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy pypy3 ) |
39 |
|
40 |
inherit distutils-r1 |
41 |
|
42 |
@@ -28,22 +28,16 @@ RDEPEND="" |
43 |
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
44 |
|
45 |
python_test() { |
46 |
- "${PYTHON}" mimeparse_test.py || die "Tests fail with ${EPYTHON}" |
47 |
+ "${EPYTHON}" mimeparse_test.py || die "Tests fail with ${EPYTHON}" |
48 |
} |
49 |
|
50 |
python_install() { |
51 |
distutils-r1_python_install |
52 |
|
53 |
- if [[ ${EPYTHON} == pypy ]]; then |
54 |
- local pyver=2.7 |
55 |
- elif [[ ${EPYTHON} == pypy3 ]]; then |
56 |
- local pyver=3.2 |
57 |
- else |
58 |
- local pyver=${EPYTHON#python} |
59 |
- fi |
60 |
+ local pyver=$("${EPYTHON}" -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_version())") |
61 |
python_export PYTHON_SITEDIR |
62 |
|
63 |
# Previous versions were just called 'mimeparse' |
64 |
ln -sf python_mimeparse-${PV}-py${pyver}.egg-info \ |
65 |
- "${D%/}${PYTHON_SITEDIR}/mimeparse-${PV}-py${pyver}.egg-info" || die |
66 |
+ "${D%/}${PYTHON_SITEDIR}/mimeparse-${PV}-py${pyver}.egg-info" || die "Could not create mimeparse link" |
67 |
} |