Date: Wednesday, July 3, 2013 @ 14:49:46 Author: spupykin Revision: 93430
Added: python-ipaddr/ python-ipaddr/repos/ python-ipaddr/trunk/ python-ipaddr/trunk/PKGBUILD python-ipaddr/trunk/python3.patch ---------------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ python3.patch | 12 ++++++++++++ 2 files changed, 46 insertions(+) Added: python-ipaddr/trunk/PKGBUILD =================================================================== --- python-ipaddr/trunk/PKGBUILD (rev 0) +++ python-ipaddr/trunk/PKGBUILD 2013-07-03 12:49:46 UTC (rev 93430) @@ -0,0 +1,34 @@ +# Maintainer: Jonathan Liu <[email protected]> + +pkgbase=python-ipaddr +pkgname=('python-ipaddr' 'python2-ipaddr') +pkgver=2.1.10 +pkgrel=1 +pkgdesc="An IPv4/IPv6 manipulation library in Python" +arch=('any') +url="http://code.google.com/p/ipaddr-py/" +license=('APACHE') +makedepends=('python' 'python2' 'python-distribute' 'python2-distribute') +source=("http://ipaddr-py.googlecode.com/files/ipaddr-${pkgver}.tar.gz" + "python3.patch") +md5sums=('f315ac829218e9735c5d772d59a3e0e7' + '030b8f2479eb223b369b07c1239377b2') + +build() { + cd "${srcdir}/ipaddr-${pkgver}" + patch -Np1 -i "${srcdir}/python3.patch" +} + +package_python-ipaddr() { + depends=('python') + cd "${srcdir}/ipaddr-${pkgver}" + python setup.py install --root="${pkgdir}" -O1 +} + +package_python2-ipaddr() { + depends=('python2') + cd "${srcdir}/ipaddr-${pkgver}" + python2 setup.py install --root="${pkgdir}" -O1 +} + +# vim:set ts=2 sw=2 et: Added: python-ipaddr/trunk/python3.patch =================================================================== --- python-ipaddr/trunk/python3.patch (rev 0) +++ python-ipaddr/trunk/python3.patch 2013-07-03 12:49:46 UTC (rev 93430) @@ -0,0 +1,12 @@ +diff -Nur ipaddr-2.1.10.orig/ipaddr.py ipaddr-2.1.10/ipaddr.py +--- ipaddr-2.1.10.orig/ipaddr.py 2012-01-21 14:03:17.000000000 +1100 ++++ ipaddr-2.1.10/ipaddr.py 2012-03-27 18:58:32.792042210 +1100 +@@ -1462,7 +1462,7 @@ + + try: + # Now, parse the hextets into a 128-bit integer. +- ip_int = 0L ++ ip_int = 0 + for i in xrange(parts_hi): + ip_int <<= 16 + ip_int |= self._parse_hextet(parts[i])
