diff options
author | Ali Polatel <hawking@gentoo.org> | 2007-08-08 21:42:20 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2007-08-08 21:42:20 +0000 |
commit | 201dd2b3f5e789d6a20beb946a418eb53d4f1f08 (patch) | |
tree | ca7c9047f8f8036aade4dd5029d2cc03d0b9ff0a /dev-python/pyid3lib | |
parent | Version bump, see bug 188045 (diff) | |
download | gentoo-2-201dd2b3f5e789d6a20beb946a418eb53d4f1f08.tar.gz gentoo-2-201dd2b3f5e789d6a20beb946a418eb53d4f1f08.tar.bz2 gentoo-2-201dd2b3f5e789d6a20beb946a418eb53d4f1f08.zip |
Added patch to fix python-2.5 & 64 bit issues (bug 188067)
(Portage version: 2.1.3.3)
Diffstat (limited to 'dev-python/pyid3lib')
-rw-r--r-- | dev-python/pyid3lib/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/pyid3lib/files/digest-pyid3lib-0.5.1-r1 | 3 | ||||
-rw-r--r-- | dev-python/pyid3lib/files/pyid3lib-0.5.1-py25.patch | 57 | ||||
-rw-r--r-- | dev-python/pyid3lib/pyid3lib-0.5.1-r1.ebuild | 25 |
4 files changed, 93 insertions, 2 deletions
diff --git a/dev-python/pyid3lib/ChangeLog b/dev-python/pyid3lib/ChangeLog index 8646b400f2fb..07403f18ef9a 100644 --- a/dev-python/pyid3lib/ChangeLog +++ b/dev-python/pyid3lib/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/pyid3lib -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyid3lib/ChangeLog,v 1.11 2006/07/12 15:56:57 agriffis Exp $ +# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyid3lib/ChangeLog,v 1.12 2007/08/08 21:42:20 hawking Exp $ + +*pyid3lib-0.5.1-r1 (08 Aug 2007) + + 08 Aug 2007; Ali Polatel <hawking@gentoo.org> + +files/pyid3lib-0.5.1-py25.patch, +pyid3lib-0.5.1-r1.ebuild: + Added patch to fix python-2.5 & 64 bit issues (bug 188067, thanks to Brian) 12 Jul 2006; Aron Griffis <agriffis@gentoo.org> pyid3lib-0.5.1.ebuild: Mark 0.5.1 stable on ia64 diff --git a/dev-python/pyid3lib/files/digest-pyid3lib-0.5.1-r1 b/dev-python/pyid3lib/files/digest-pyid3lib-0.5.1-r1 new file mode 100644 index 000000000000..cebab468350f --- /dev/null +++ b/dev-python/pyid3lib/files/digest-pyid3lib-0.5.1-r1 @@ -0,0 +1,3 @@ +MD5 49818a591430e08057c27a11e4c40aef pyid3lib-0.5.1.tar.bz2 21207 +RMD160 cec0607aab0eeaaa953428a4d06c7b7a19232616 pyid3lib-0.5.1.tar.bz2 21207 +SHA256 2a7bdd52c24ed0e70e4a2d82c697214c4ab5a70f94ea9e7934df15ca202d1169 pyid3lib-0.5.1.tar.bz2 21207 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/pyid3lib-0.5.1-r1.ebuild b/dev-python/pyid3lib/pyid3lib-0.5.1-r1.ebuild new file mode 100644 index 000000000000..0ef639fca4a2 --- /dev/null +++ b/dev-python/pyid3lib/pyid3lib-0.5.1-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyid3lib/pyid3lib-0.5.1-r1.ebuild,v 1.1 2007/08/08 21:42:20 hawking Exp $ + +inherit distutils eutils + +DESCRIPTION="Module for manipulating ID3 tags in Python" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +HOMEPAGE="http://pyid3lib.sourceforge.net/" +IUSE="" +SLOT="0" +LICENSE="LGPL-2.1" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +DEPEND="virtual/python + media-libs/id3lib" + +src_unpack() { + distutils_src_unpack + epatch "${FILESDIR}/${P}-py25.patch" +} + +src_install() { + distutils_src_install + dohtml doc.html +} |