summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2016-10-24 12:56:54 +0200
committerLars Wendler <polynomial-c@gentoo.org>2016-10-24 13:30:37 +0200
commit227971895d1916839d058aacdfe6d788f0e4adc2 (patch)
tree3fac2e3bf4cd2d429940d831b1eacbf9f9270937 /dev-python
parentdev-python/ipaddress: Bump to version 1.0.17 (diff)
downloadgentoo-227971895d1916839d058aacdfe6d788f0e4adc2.tar.gz
gentoo-227971895d1916839d058aacdfe6d788f0e4adc2.tar.bz2
gentoo-227971895d1916839d058aacdfe6d788f0e4adc2.zip
dev-python/mimeparse: Bump to version 1.6.0
Package-Manager: portage-2.3.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/mimeparse/Manifest1
-rw-r--r--dev-python/mimeparse/mimeparse-1.6.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/mimeparse/Manifest b/dev-python/mimeparse/Manifest
index 7dad3403c92c..b6cd8fd97e68 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.2.tar.gz 5870 SHA256 bef134a59598cc6aa598f84553162aa7a0c01f3f431588225bb9a208964b1827 SHA512 e11c28d627da4a12075ebc427813476ef32585cfeeb323c852e80f1fb8e987324ffab8a314e5249fe689460a457189d6cd252241b81a1d2d8216256d4976df14 WHIRLPOOL 9f1e290f37ab4e4cf0785c2188882bee7f660f533718b6c19867f12f0213f3a59a783559e98d86955f587c9e6d9b15de5b93cf3d1712e65c7b8e0248463d2ffa
+DIST python-mimeparse-1.6.0.tar.gz 6541 SHA256 76e4b03d700a641fd7761d3cd4fdbbdcd787eade1ebfac43f877016328334f78 SHA512 cc2ec8059034fc224c59bffeb77e7fd0ba86b753373c8daf3a182fd56d647f0b96d7bacb6708be285dd7e246ebc19b813e2bfb8ac79a86f6d4e702c223f5187e WHIRLPOOL 76fae536b6c27f5a13eaca1ce26fde1e2e3c66573ef7a011ce0920f1a169559adc5fb2391e6649ec5ea9319e2c124b5f506139310f9a84851704e3818293d358
diff --git a/dev-python/mimeparse/mimeparse-1.6.0.ebuild b/dev-python/mimeparse/mimeparse-1.6.0.ebuild
new file mode 100644
index 000000000000..e4d7e74bd768
--- /dev/null
+++ b/dev-python/mimeparse/mimeparse-1.6.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{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() {
+ "${EPYTHON}" mimeparse_test.py || die "Tests fail with ${EPYTHON}"
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ local pyver=$("${EPYTHON}" -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_version())")
+ 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 "Could not create mimeparse link"
+}