[arch-commits] Commit in python-ipaddr/repos (3 files)

Ángel Velásquez angvp at nymeria.archlinux.org
Mon Aug 19 10:10:14 UTC 2013


    Date: Monday, August 19, 2013 @ 12:10:14
  Author: angvp
Revision: 96009

archrelease: copy trunk to community-testing-any

Added:
  python-ipaddr/repos/community-testing-any/
  python-ipaddr/repos/community-testing-any/PKGBUILD
    (from rev 96008, python-ipaddr/trunk/PKGBUILD)
  python-ipaddr/repos/community-testing-any/python3.patch
    (from rev 96008, python-ipaddr/trunk/python3.patch)

---------------+
 PKGBUILD      |   36 ++++++++++++++++++++++++++++++++++++
 python3.patch |   12 ++++++++++++
 2 files changed, 48 insertions(+)

Copied: python-ipaddr/repos/community-testing-any/PKGBUILD (from rev 96008, python-ipaddr/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2013-08-19 10:10:14 UTC (rev 96009)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Jonathan Liu <net147 at gmail.com>
+
+pkgbase=python-ipaddr
+pkgname=('python-ipaddr' 'python2-ipaddr')
+pkgver=2.1.10
+pkgrel=2
+pkgdesc="An IPv4/IPv6 manipulation library in Python"
+arch=('any')
+url="http://code.google.com/p/ipaddr-py/"
+license=('APACHE')
+makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
+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:

Copied: python-ipaddr/repos/community-testing-any/python3.patch (from rev 96008, python-ipaddr/trunk/python3.patch)
===================================================================
--- community-testing-any/python3.patch	                        (rev 0)
+++ community-testing-any/python3.patch	2013-08-19 10:10:14 UTC (rev 96009)
@@ -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])




More information about the arch-commits mailing list