diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/mimeparse |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/mimeparse')
-rw-r--r-- | dev-python/mimeparse/Manifest | 7 | ||||
-rw-r--r-- | dev-python/mimeparse/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/mimeparse/mimeparse-0.1.4-r1.ebuild | 44 | ||||
-rw-r--r-- | dev-python/mimeparse/mimeparse-1.6.0.ebuild | 42 |
4 files changed, 105 insertions, 0 deletions
diff --git a/dev-python/mimeparse/Manifest b/dev-python/mimeparse/Manifest new file mode 100644 index 000000000000..60b6d760f5d2 --- /dev/null +++ b/dev-python/mimeparse/Manifest @@ -0,0 +1,7 @@ +DIST python-mimeparse-0.1.4.tar.gz 5228 SHA256 3c69a21e37e77f754e6fc09ebda70acd92c90d8a58f29a41cc0248351378ddc3 SHA512 c8eeb298773a0eb36512b1d9a46dfc85423c0dab10b85ed94284bf1bf8dba8c34aeccefd8b6a187434789d5a160ab5d4af81659dd1808ea02078cc2b168e10b3 WHIRLPOOL f83328743b16ae46263e05055d6400617b7858e11837ce892919e26a36348650122b78ee366125a1793b20fa71c641b3606bf834d2936f98dab65b89b740385b +DIST python-mimeparse-1.6.0.tar.gz 6541 SHA256 76e4b03d700a641fd7761d3cd4fdbbdcd787eade1ebfac43f877016328334f78 SHA512 cc2ec8059034fc224c59bffeb77e7fd0ba86b753373c8daf3a182fd56d647f0b96d7bacb6708be285dd7e246ebc19b813e2bfb8ac79a86f6d4e702c223f5187e WHIRLPOOL 76fae536b6c27f5a13eaca1ce26fde1e2e3c66573ef7a011ce0920f1a169559adc5fb2391e6649ec5ea9319e2c124b5f506139310f9a84851704e3818293d358 +EBUILD mimeparse-0.1.4-r1.ebuild 1158 SHA256 f27dd6006bb959c38da19dd2c6526e34a0313b8dfa4afb9258430df14c8b3ef8 SHA512 77250c17a627c22853db5d2caa05dae861ade7d7fb0859997035e1163730523799d6cb0d2facbd6932390be40fbf38dbda61df086e7cc5519b733982147560e2 WHIRLPOOL 70911bd3adbb1fe93ea20daa8e270118cf7126b065c5477a48aa8de2323503e46b02790322d321fe23d1671c61f65318231ebf50a0f22752cee8ed9ce893d530 +EBUILD mimeparse-1.6.0.ebuild 1202 SHA256 d045c916183bac54fbf698c15e735271c2f28246cfd2e7d2ced2d407c0e51165 SHA512 4fd2f78401d3816e2b190850f794bf84fa720fc8907d724ed2d4e205a71a8a614f5f3c10e43ed5e2a6aac012701ac66fd5ddda5f8190f93a6e6efae9c4d60035 WHIRLPOOL e854106414c4ee810aac10193fc03e77cf837e88008f3ab139adbc659fdebe989a8ed9844a7496b6b0d7e97873c54c6f174e7b748eb70281b4ceecfaa2e69b05 +MISC ChangeLog 6678 SHA256 88b097d7ed2089456c87273d94dad2abfb7a0c393bf4df900a7ba2ad5f0f5c03 SHA512 bcffbcf173d1d6fa1fe0e91a7d26f3a95580f22a12e8480bd875819240a0ea42ecefd2523945703feb6a3b9cf879c674e1220af5a820838e5fe1adcdc8f84576 WHIRLPOOL 0643773dbfb74c879afe02c93c78f8c91e0c59219453a5e59ecfe7cf26d499c2706b7b30c08d7c854375822c521f1b8de7a060f7719c3e761ea76c393bac7555 +MISC ChangeLog-2015 5073 SHA256 fed2ea2c1248467c24d96be65a0b64b0ac59985971c778427db82f007ea41a65 SHA512 8e2669894e69ca8e566253ef5c073022632d399e80788af376cc37f8bc9dd2210b2fa597e0f9c0b3f18b9e4569d6444779a4ce396d532c3199719b91df0e85d5 WHIRLPOOL 2e60973bb194e00a40cdbc71b8229f1a80257130dc11f7588aa1285dfed21ba4b610d6c0f860b4fd9af7afadcf8ebd3d14e0a6934527e7ea1396deb85db77b8c +MISC metadata.xml 394 SHA256 53861ac21f09988ae5fabbf43c30f116a1b059a71f390841cac643f655d115e7 SHA512 900355ef3cc835ae4e0766614eaabcbe701570fc54e1b00cfb55eeeafb0b65df35e24ab272eef54bbaa7aa0540cf89931a9bf58f5b515fdd6c88d303fec4518f WHIRLPOOL 3d21a3041bfa4f3a8244cb1d80bd2db44c6efaaad1d2994820fff9beb46cafcf5d2f4bc53330986d1d263011bfed276e3c5facb672817feab381aecde901aa3e diff --git a/dev-python/mimeparse/metadata.xml b/dev-python/mimeparse/metadata.xml new file mode 100644 index 000000000000..e9e258b9c887 --- /dev/null +++ b/dev-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/mimeparse/mimeparse-0.1.4-r1.ebuild b/dev-python/mimeparse/mimeparse-0.1.4-r1.ebuild new file mode 100644 index 000000000000..542f7ab01eb3 --- /dev/null +++ b/dev-python/mimeparse/mimeparse-0.1.4-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Basic functions for handling mime-types in python" +HOMEPAGE=" + https://code.google.com/p/mimeparse + https://github.com/dbtsai/python-mimeparse" +MY_PN="python-${PN}" +MY_P="${MY_PN}-${PV}" +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}" + +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' + cp "${D%/}${PYTHON_SITEDIR}/python_mimeparse-${PV}-py${pyver}.egg-info" \ + "${D%/}${PYTHON_SITEDIR}/mimeparse-${PV}-py${pyver}.egg-info" || die +} 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..559dfa3db277 --- /dev/null +++ b/dev-python/mimeparse/mimeparse-1.6.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} 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" +} |