[arch-commits] Commit in python-ipaddr/trunk (PKGBUILD python3.patch)

Sergej Pupykin spupykin at nymeria.archlinux.org
Fri Jan 17 11:39:03 UTC 2014


    Date: Friday, January 17, 2014 @ 12:39:03
  Author: spupykin
Revision: 104301

Modified:
  python-ipaddr/trunk/PKGBUILD
Deleted:
  python-ipaddr/trunk/python3.patch

---------------+
 PKGBUILD      |   30 +++++++-----------------------
 python3.patch |   12 ------------
 2 files changed, 7 insertions(+), 35 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-17 11:35:48 UTC (rev 104300)
+++ PKGBUILD	2014-01-17 11:39:03 UTC (rev 104301)
@@ -2,35 +2,19 @@
 # Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
 # Maintainer: Jonathan Liu <net147 at gmail.com>
 
-pkgbase=python-ipaddr
-pkgname=('python-ipaddr' 'python2-ipaddr')
+pkgname='python2-ipaddr'
 pkgver=2.1.10
-pkgrel=2
+pkgrel=3
 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')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("http://ipaddr-py.googlecode.com/files/ipaddr-${pkgver}.tar.gz")
+md5sums=('f315ac829218e9735c5d772d59a3e0e7')
 
-build() {
+package() {
   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:

Deleted: python3.patch
===================================================================
--- python3.patch	2014-01-17 11:35:48 UTC (rev 104300)
+++ python3.patch	2014-01-17 11:39:03 UTC (rev 104301)
@@ -1,12 +0,0 @@
-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