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/pyid3lib |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pyid3lib')
-rw-r--r-- | dev-python/pyid3lib/Manifest | 7 | ||||
-rw-r--r-- | dev-python/pyid3lib/files/pyid3lib-0.5.1-gcc-4.4.patch | 20 | ||||
-rw-r--r-- | dev-python/pyid3lib/files/pyid3lib-0.5.1-py25.patch | 57 | ||||
-rw-r--r-- | dev-python/pyid3lib/metadata.xml | 11 | ||||
-rw-r--r-- | dev-python/pyid3lib/pyid3lib-0.5.1-r2.ebuild | 33 |
5 files changed, 128 insertions, 0 deletions
diff --git a/dev-python/pyid3lib/Manifest b/dev-python/pyid3lib/Manifest new file mode 100644 index 000000000000..07d04016448a --- /dev/null +++ b/dev-python/pyid3lib/Manifest @@ -0,0 +1,7 @@ +AUX pyid3lib-0.5.1-gcc-4.4.patch 404 SHA256 dc1668d3d180f0cc0ac005f043875c270a6d6f50e558607484844977df08dba1 SHA512 dec8d4768f48125f2707489355fe3c1a1c5c64c10c4f486a62f26ae55e05b78bf8b3b787f15c5d49c44383bbf3a5a0932e2c259b497983b10470180300330edc WHIRLPOOL 58d702ecf3819c356fd1ef4e8cc15f1a98649adbfad44017e1e61a84fc6399af279a71aae0a22d5681ada23bb365db0e5145ed828d3a7d45821b72e005c782bb +AUX pyid3lib-0.5.1-py25.patch 1307 SHA256 07716da15662c5d266a3a184181d4825e391959306819f0eab89cd9993551342 SHA512 48da2449be6f7e711a3e9817927a9ed6aaaa2086c14e8674218993fce3f33816fb294ef70033de92950578e477998bc7b1cdce092f7a7e17f66dd24592d757cf WHIRLPOOL 550da5a25e5ef8b7f0b27cd23f2248d55945dbc7e172328b9f16e6bd9d86fa5d1305cad576382a4df0dbe8812151880ff018f2c78ea71867ac4f7f0e3ab4b520 +DIST pyid3lib-0.5.1.tar.bz2 21207 SHA256 2a7bdd52c24ed0e70e4a2d82c697214c4ab5a70f94ea9e7934df15ca202d1169 SHA512 fee073a7bd87540a186122b477e918b2c3d8a234ea5ebd83207115b9d0503cc22645b93f6702b79a1b41104d0cbcaa3c47900bba27ce52d44195a8f8a6331c57 WHIRLPOOL 35bc8cd5645269d0e7d95043188a4dfb789ed868ee0d6975175daf0de3366dd0b7f6a28f0967d3d9ea9b0f3f2de55dd6d871efdcc4a5ac6e19c2d08601af68b6 +EBUILD pyid3lib-0.5.1-r2.ebuild 651 SHA256 65ead2151019aff5752ee5c86f5a8072ef978b49e2a675ef071adca5571619c3 SHA512 be5a74f8479262aeb7c541b0c24fa6fb5f1e30c172d494d38349c421c63c14568078831f1598983d85b32f43ff6f528328b029a667c75f8fee3452b67abefdff WHIRLPOOL 1eea451af9062d58b5adec46e0d983aa31fa1279fe38afbcc0141349825d89197fe9d761cdeea6022a8baebaec5b9388b15d2d69cdc2b5188f06c6ca7afcd408 +MISC ChangeLog 2571 SHA256 3fdec827c9cecf2fc5491526c2ba40b40682e6602812cc593d47091cbf2331c4 SHA512 1a0bd6f2c0c83f75aebede3725620d004674739fa817a256c2864f776799dac855a09f48463f2210ef0d447d62bb78c37abc1c4561944b5b0d5584cd8b25626a WHIRLPOOL 202fd9fb36b048fc21b1e05034330735fa9f97fef1f8d616ac0f9e07efce66e722eb5123764182bc9f50350930789bb436080f8d7a20463b010b1942f129d468 +MISC ChangeLog-2015 2814 SHA256 94cd5c4c8f69e77ff1b09a40c8556336f787223de5c196d149deea2385528aec SHA512 479a33040ce77bf3c824aaba2e64ac4ce33f8267b0a6379be3f3f350c4d3da3af2fed576c5201e8e51987331c1216aef0e6c62f840289faf457e44a6fcdd0b53 WHIRLPOOL 3031274d9088bb42de04976b5f4cd1854ef4d96cb3fe7865c3764b95b7f160ab653dff09d43df95459b2f9f05481259be8f14318018c09d4d4af101d64fec354 +MISC metadata.xml 318 SHA256 24144d74c806ff98639528e397c076adb26c80c7c666e36000280451dc890656 SHA512 1c0f3d96a5bfe335f0ab1c8f637ed5a06938eb53c8c9684beec4b264edea3a3f6360ebe1c34c7f0d11349480b0e20db9f18adb7990a28608dda30a9eb221fa7c WHIRLPOOL d24da12b3427e995a5618acf40a6985f8a8eff05b16aaa34890d1da446c1de1f82fa85b9d24cdffe54a46fbdd1c238529bc09e325ab7b789802ea1206f04cbc5 diff --git a/dev-python/pyid3lib/files/pyid3lib-0.5.1-gcc-4.4.patch b/dev-python/pyid3lib/files/pyid3lib-0.5.1-gcc-4.4.patch new file mode 100644 index 000000000000..04df9e0a6c98 --- /dev/null +++ b/dev-python/pyid3lib/files/pyid3lib-0.5.1-gcc-4.4.patch @@ -0,0 +1,20 @@ +--- pyid3lib.cc ++++ pyid3lib.cc +@@ -920,7 +920,7 @@ enum frame_type + + typedef struct + { +- char* name; ++ const char* name; + ID3_FrameID fid; + frame_type type; + } magic_attribute; +@@ -1030,7 +1030,7 @@ static PyObject* id3_getattr( ID3Object* self, char* attrname ) + { + ID3_Frame* frame; + const char* str; +- char* slash; ++ const char* slash; + ID3_Field* fld; + int i; + diff --git a/dev-python/pyid3lib/files/pyid3lib-0.5.1-py25.patch b/dev-python/pyid3lib/files/pyid3lib-0.5.1-py25.patch new file mode 100644 index 000000000000..c24cfc97d5ac --- /dev/null +++ b/dev-python/pyid3lib/files/pyid3lib-0.5.1-py25.patch @@ -0,0 +1,57 @@ +--- pyid3lib-0.5.1/pyid3lib.cc.orig 2007-08-08 23:53:08.000000000 +0300 ++++ pyid3lib-0.5.1/pyid3lib.cc 2007-08-08 23:53:12.000000000 +0300 +@@ -10,13 +10,19 @@ + #include <id3/id3lib_frame.h> + #include <id3/tag.h> + ++#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) ++typedef int Py_ssize_t; ++#define PY_SSIZE_T_MAX INT_MAX ++#define PY_SSIZE_T_MIN INT_MIN ++#endif ++ + typedef struct + { + PyObject_HEAD + + ID3_Tag* tag; + ID3_Frame** frames; +- int size, alloc; ++ Py_ssize_t size, alloc; + } ID3Object; + + typedef struct +@@ -80,13 +86,24 @@ + + + static PySequenceMethods tag_as_sequence = { ++#if PY_VERSION_HEX >= 0x02050000 ++ (lenfunc)id3_length, ++#else + (inquiry)id3_length, ++#endif + NULL, + NULL, ++#if PY_VERSION_HEX >= 0x02050000 ++ (ssizeargfunc)id3_item, ++ (ssizessizeargfunc)id3_slice, ++ (ssizeobjargproc)id3_ass_item, ++ (ssizessizeobjargproc)id3_ass_slice, ++#else + (intargfunc)id3_item, + (intintargfunc)id3_slice, + (intobjargproc)id3_ass_item, + (intintobjargproc)id3_ass_slice, ++#endif + (objobjproc)id3_contains, + NULL, + NULL, +@@ -824,7 +841,7 @@ + static ID3_Frame* frame_from_dict( ID3_FrameID fid, PyObject* dict ) + { + char* data; +- int size; ++ Py_ssize_t size; + + ID3_Field* field; + ID3_FieldID flid; diff --git a/dev-python/pyid3lib/metadata.xml b/dev-python/pyid3lib/metadata.xml new file mode 100644 index 000000000000..23324cab5125 --- /dev/null +++ b/dev-python/pyid3lib/metadata.xml @@ -0,0 +1,11 @@ +<?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="sourceforge">pyid3lib</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyid3lib/pyid3lib-0.5.1-r2.ebuild b/dev-python/pyid3lib/pyid3lib-0.5.1-r2.ebuild new file mode 100644 index 000000000000..2615b2fb6271 --- /dev/null +++ b/dev-python/pyid3lib/pyid3lib-0.5.1-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 flag-o-matic + +DESCRIPTION="Module for manipulating ID3 tags in Python" +HOMEPAGE="http://pyid3lib.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ia64 ppc ppc64 sparc x86" +IUSE="" + +DEPEND="media-libs/id3lib" +RDEPEND="${DEPEND}" + +HTML_DOCS=( doc.html ) + +src_prepare() { + local PATCHES=( + "${FILESDIR}/${P}-gcc-4.4.patch" + "${FILESDIR}/${P}-py25.patch" + ) + + distutils-r1_src_prepare + + append-flags -fno-strict-aliasing +} |