diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-05-31 15:09:17 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-05-31 15:19:52 +0200 |
commit | 8476ecd4a67ea1d7ba3909aa2adf4cff964f0b95 (patch) | |
tree | 5759ee0aabb91532b580f41347a128964a88dca2 /dev-python/python-mimeparse | |
parent | dev-python/mimeparse: Prepare for rename (diff) | |
download | gentoo-8476ecd4a67ea1d7ba3909aa2adf4cff964f0b95.tar.gz gentoo-8476ecd4a67ea1d7ba3909aa2adf4cff964f0b95.tar.bz2 gentoo-8476ecd4a67ea1d7ba3909aa2adf4cff964f0b95.zip |
Move dev-python/{mimeparse → python-mimeparse}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-mimeparse')
-rw-r--r-- | dev-python/python-mimeparse/Manifest | 1 | ||||
-rw-r--r-- | dev-python/python-mimeparse/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/python-mimeparse/python-mimeparse-1.6.0-r1.ebuild | 24 | ||||
-rw-r--r-- | dev-python/python-mimeparse/python-mimeparse-1.6.0.ebuild | 37 |
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/python-mimeparse/Manifest b/dev-python/python-mimeparse/Manifest new file mode 100644 index 000000000000..d854705f9cec --- /dev/null +++ b/dev-python/python-mimeparse/Manifest @@ -0,0 +1 @@ +DIST python-mimeparse-1.6.0.tar.gz 6541 BLAKE2B 15de86feddf892ee4599e0fe7c113a93f343d5b8afc09725263e2fcb3869f8f152612b9f30dbf68279aa95e2ce8f6ba9d4dc6e8e2b75366a972dcdb705220742 SHA512 cc2ec8059034fc224c59bffeb77e7fd0ba86b753373c8daf3a182fd56d647f0b96d7bacb6708be285dd7e246ebc19b813e2bfb8ac79a86f6d4e702c223f5187e diff --git a/dev-python/python-mimeparse/metadata.xml b/dev-python/python-mimeparse/metadata.xml new file mode 100644 index 000000000000..e9e258b9c887 --- /dev/null +++ b/dev-python/python-mimeparse/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">python-mimeparse</remote-id> + <remote-id type="github">dbtsai/python-mimeparse</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/python-mimeparse/python-mimeparse-1.6.0-r1.ebuild b/dev-python/python-mimeparse/python-mimeparse-1.6.0-r1.ebuild new file mode 100644 index 000000000000..da812e05a8cc --- /dev/null +++ b/dev-python/python-mimeparse/python-mimeparse-1.6.0-r1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 ) + +inherit distutils-r1 + +MY_PN="python-mimeparse" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Basic functions for handling mime-types in python" +HOMEPAGE="https://github.com/dbtsai/python-mimeparse" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +python_test() { + "${EPYTHON}" mimeparse_test.py -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/python-mimeparse/python-mimeparse-1.6.0.ebuild b/dev-python/python-mimeparse/python-mimeparse-1.6.0.ebuild new file mode 100644 index 000000000000..64073a770224 --- /dev/null +++ b/dev-python/python-mimeparse/python-mimeparse-1.6.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 ) + +inherit distutils-r1 + +MY_PN="python-mimeparse" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Basic functions for handling mime-types in python" +HOMEPAGE="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 sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +python_test() { + "${EPYTHON}" mimeparse_test.py -v || 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" +} |