Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mimeparse/
Date: Mon, 01 Feb 2016 15:44:39
Message-Id: 1454341460.35a2a3ea05950687bec38ae26b83df0681c676e9.jlec@gentoo
1 commit: 35a2a3ea05950687bec38ae26b83df0681c676e9
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 15:32:26 2016 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 15:44:20 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35a2a3ea
7
8 dev-python/mimeparse: Version Bump
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/mimeparse/Manifest | 1 +
14 dev-python/mimeparse/mimeparse-1.5.ebuild | 49 +++++++++++++++++++++++++++++++
15 2 files changed, 50 insertions(+)
16
17 diff --git a/dev-python/mimeparse/Manifest b/dev-python/mimeparse/Manifest
18 index 70a6600..451d25f 100644
19 --- a/dev-python/mimeparse/Manifest
20 +++ b/dev-python/mimeparse/Manifest
21 @@ -1 +1,2 @@
22 DIST python-mimeparse-0.1.4.tar.gz 5228 SHA256 3c69a21e37e77f754e6fc09ebda70acd92c90d8a58f29a41cc0248351378ddc3 SHA512 c8eeb298773a0eb36512b1d9a46dfc85423c0dab10b85ed94284bf1bf8dba8c34aeccefd8b6a187434789d5a160ab5d4af81659dd1808ea02078cc2b168e10b3 WHIRLPOOL f83328743b16ae46263e05055d6400617b7858e11837ce892919e26a36348650122b78ee366125a1793b20fa71c641b3606bf834d2936f98dab65b89b740385b
23 +DIST python-mimeparse-1.5.tar.gz 5827 SHA256 9518ff1576d60e99f310116711beda6974f18caa3deb01c73d25bab409408878 SHA512 799b40c0128f22949869bc55f618b46f022bf937cd59be21343dab3d3d977cc24d84744dcbd23da4efb135e940a1373f064ec6e56e8bd4188fa54a3107d2718f WHIRLPOOL b9c9748c24ff931c2c3a2ae4da088818f9a7018be6450783c3ac0ff533e7292b23a5e94cff976b3209003a481240a5a4af65c7d6b81753b80e200b0fc5a0c03d
24
25 diff --git a/dev-python/mimeparse/mimeparse-1.5.ebuild b/dev-python/mimeparse/mimeparse-1.5.ebuild
26 new file mode 100644
27 index 0000000..0d1ed5a
28 --- /dev/null
29 +++ b/dev-python/mimeparse/mimeparse-1.5.ebuild
30 @@ -0,0 +1,49 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
38 +
39 +inherit distutils-r1
40 +
41 +MY_PN="python-${PN}"
42 +MY_P="${MY_PN}-${PV}"
43 +
44 +DESCRIPTION="Basic functions for handling mime-types in python"
45 +HOMEPAGE="
46 + https://code.google.com/p/mimeparse
47 + https://github.com/dbtsai/python-mimeparse"
48 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
53 +IUSE=""
54 +
55 +S="${WORKDIR}/${MY_P}"
56 +
57 +RDEPEND=""
58 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
59 +
60 +python_test() {
61 + "${PYTHON}" mimeparse_test.py || die "Tests fail with ${EPYTHON}"
62 +}
63 +
64 +python_install() {
65 + distutils-r1_python_install
66 +
67 + if [[ ${EPYTHON} == pypy ]]; then
68 + local pyver=2.7
69 + elif [[ ${EPYTHON} == pypy3 ]]; then
70 + local pyver=3.2
71 + else
72 + local pyver=${EPYTHON#python}
73 + fi
74 + python_export PYTHON_SITEDIR
75 +
76 + # Previous versions were just called 'mimeparse'
77 + ln -sf python_mimeparse-${PV}-py${pyver}.egg-info \
78 + "${D%/}${PYTHON_SITEDIR}/mimeparse-${PV}-py${pyver}.egg-info" || die
79 +}