summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2016-06-12 20:57:22 +0200
committerPatrick Lauer <patrick@gentoo.org>2016-06-12 20:57:22 +0200
commit991ba8ca2cc1f1da96fd07a801c0c7821a07eafd (patch)
tree76ce88ad80718639a8ecf35139a9adda63d121e7
parentdev-python/bjoern: Bump (diff)
downloadgentoo-991ba8ca2cc1f1da96fd07a801c0c7821a07eafd.tar.gz
gentoo-991ba8ca2cc1f1da96fd07a801c0c7821a07eafd.tar.bz2
gentoo-991ba8ca2cc1f1da96fd07a801c0c7821a07eafd.zip
dev-python/mimeparse: Bump
Package-Manager: portage-2.3.0_rc1
-rw-r--r--dev-python/mimeparse/Manifest1
-rw-r--r--dev-python/mimeparse/mimeparse-1.5.2.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/mimeparse/Manifest b/dev-python/mimeparse/Manifest
index 830b45120327..f17d1f2cad5c 100644
--- a/dev-python/mimeparse/Manifest
+++ b/dev-python/mimeparse/Manifest
@@ -1,2 +1,3 @@
DIST python-mimeparse-0.1.4.tar.gz 5228 SHA256 3c69a21e37e77f754e6fc09ebda70acd92c90d8a58f29a41cc0248351378ddc3 SHA512 c8eeb298773a0eb36512b1d9a46dfc85423c0dab10b85ed94284bf1bf8dba8c34aeccefd8b6a187434789d5a160ab5d4af81659dd1808ea02078cc2b168e10b3 WHIRLPOOL f83328743b16ae46263e05055d6400617b7858e11837ce892919e26a36348650122b78ee366125a1793b20fa71c641b3606bf834d2936f98dab65b89b740385b
DIST python-mimeparse-1.5.1.tar.gz 5822 SHA256 e4d0c49120f5d946106ed3a6fed0b353740c0c9700b57d7d024c65466e50a106 SHA512 bd25dd43ba98ac8e10e02d21ae040be76b0a2ae3904333c6bbf8d46e4f12bda84eb410059b22a345b6840af2c055802b31c3f76c46f133c1c11673a4f15f21f7 WHIRLPOOL a31cd0a78ba86a16d335ece4a226981dce813399e0695ce577d6fa8f327e6cf88c5723f69600f5852cde2d1a66ccb49aac1b8ada3854e1fe8f33a073a8ebb27c
+DIST python-mimeparse-1.5.2.tar.gz 5870 SHA256 bef134a59598cc6aa598f84553162aa7a0c01f3f431588225bb9a208964b1827 SHA512 e11c28d627da4a12075ebc427813476ef32585cfeeb323c852e80f1fb8e987324ffab8a314e5249fe689460a457189d6cd252241b81a1d2d8216256d4976df14 WHIRLPOOL 9f1e290f37ab4e4cf0785c2188882bee7f660f533718b6c19867f12f0213f3a59a783559e98d86955f587c9e6d9b15de5b93cf3d1712e65c7b8e0248463d2ffa
diff --git a/dev-python/mimeparse/mimeparse-1.5.2.ebuild b/dev-python/mimeparse/mimeparse-1.5.2.ebuild
new file mode 100644
index 000000000000..0d1ed5a0049b
--- /dev/null
+++ b/dev-python/mimeparse/mimeparse-1.5.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
+
+inherit distutils-r1
+
+MY_PN="python-${PN}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Basic functions for handling mime-types in python"
+HOMEPAGE="
+ https://code.google.com/p/mimeparse
+ https://github.com/dbtsai/python-mimeparse"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+RDEPEND=""
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_test() {
+ "${PYTHON}" mimeparse_test.py || die "Tests fail with ${EPYTHON}"
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ if [[ ${EPYTHON} == pypy ]]; then
+ local pyver=2.7
+ elif [[ ${EPYTHON} == pypy3 ]]; then
+ local pyver=3.2
+ else
+ local pyver=${EPYTHON#python}
+ fi
+ python_export PYTHON_SITEDIR
+
+ # Previous versions were just called 'mimeparse'
+ ln -sf python_mimeparse-${PV}-py${pyver}.egg-info \
+ "${D%/}${PYTHON_SITEDIR}/mimeparse-${PV}-py${pyver}.egg-info" || die
+}