1 |
commit: 723d43dbc68ebd3d8254e3da72e7b80b4abfd813 |
2 |
Author: Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be> |
3 |
AuthorDate: Tue Oct 11 18:45:48 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 12 07:37:02 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=723d43db |
7 |
|
8 |
dev-python/mimeparse: version bump to 0.1.4-r2 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/2538 |
12 |
|
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
dev-python/mimeparse/mimeparse-0.1.4-r2.ebuild | 45 ++++++++++++++++++++++++++ |
16 |
1 file changed, 45 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/mimeparse/mimeparse-0.1.4-r2.ebuild b/dev-python/mimeparse/mimeparse-0.1.4-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000..bdd4916 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/mimeparse/mimeparse-0.1.4-r2.ebuild |
23 |
@@ -0,0 +1,45 @@ |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=5 |
29 |
+ |
30 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) |
31 |
+ |
32 |
+inherit distutils-r1 |
33 |
+ |
34 |
+DESCRIPTION="Basic functions for handling mime-types in python" |
35 |
+HOMEPAGE=" |
36 |
+ https://code.google.com/p/mimeparse |
37 |
+ https://github.com/dbtsai/python-mimeparse" |
38 |
+MY_PN="python-${PN}" |
39 |
+MY_P="${MY_PN}-${PV}" |
40 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" |
45 |
+IUSE="" |
46 |
+ |
47 |
+S="${WORKDIR}/${MY_P}" |
48 |
+ |
49 |
+python_test() { |
50 |
+ "${PYTHON}" mimeparse_test.py || die "Tests fail with ${EPYTHON}" |
51 |
+} |
52 |
+ |
53 |
+python_install() { |
54 |
+ distutils-r1_python_install |
55 |
+ |
56 |
+ if [[ ${EPYTHON} == pypy ]]; then |
57 |
+ local pyver=2.7 |
58 |
+ elif [[ ${EPYTHON} == pypy3 ]]; then |
59 |
+ local pyver=3.2 |
60 |
+ else |
61 |
+ local pyver=${EPYTHON#python} |
62 |
+ fi |
63 |
+ python_export PYTHON_SITEDIR |
64 |
+ |
65 |
+ # Previous versions were just called 'mimeparse' |
66 |
+ cp "${D%/}${PYTHON_SITEDIR}/python_mimeparse-${PV}-py${pyver}.egg-info" \ |
67 |
+ "${D%/}${PYTHON_SITEDIR}/mimeparse-${PV}-py${pyver}.egg-info" || die |
68 |
+} |