[arch-commits] Commit in pycurl/repos (4 files)

Eric Bélanger eric at nymeria.archlinux.org
Mon Jan 20 15:09:51 UTC 2014


    Date: Monday, January 20, 2014 @ 16:09:51
  Author: eric
Revision: 204461

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  pycurl/repos/extra-i686/PKGBUILD
    (from rev 204460, pycurl/trunk/PKGBUILD)
  pycurl/repos/extra-x86_64/PKGBUILD
    (from rev 204460, pycurl/trunk/PKGBUILD)
Deleted:
  pycurl/repos/extra-i686/PKGBUILD
  pycurl/repos/extra-x86_64/PKGBUILD

-----------------------+
 /PKGBUILD             |  102 ++++++++++++++++++++++++++++++++++++++++++++++++
 extra-i686/PKGBUILD   |   31 --------------
 extra-x86_64/PKGBUILD |   31 --------------
 3 files changed, 102 insertions(+), 62 deletions(-)

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2014-01-20 15:09:21 UTC (rev 204460)
+++ extra-i686/PKGBUILD	2014-01-20 15:09:51 UTC (rev 204461)
@@ -1,31 +0,0 @@
-# $Id$
-# Maintainer:
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> 
-
-pkgbase=pycurl
-pkgname=('python2-pycurl')
-pkgver=7.19.0.2
-pkgrel=1
-arch=('i686' 'x86_64')
-url="http://pycurl.sourceforge.net/"
-license=('GPL')
-makedepends=('python2' 'curl')
-source=("http://pycurl.sourceforge.net/download/${pkgbase}-${pkgver}.tar.gz")
-md5sums=('518be33976dbc6838e42495ada64b43f')
-
-package_python2-pycurl() {
-  pkgdesc="A Python 2.x interface to libcurl"
-  depends=('python2' 'curl')
-  replaces=('pycurl' 'python-pycurl')
-  provides=('pycurl' 'python-pycurl')
-  conflicts=('python-pycurl')
-
-  cd ${pkgbase}-${pkgver}
-  python2 setup.py install --curl-config=/usr/bin/curl-config \
-    --prefix "${pkgdir}"/usr --optimize=1
-
-  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-    -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
-    $(find "${pkgdir}" -name '*.py')
-}

Copied: pycurl/repos/extra-i686/PKGBUILD (from rev 204460, pycurl/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2014-01-20 15:09:51 UTC (rev 204461)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer:
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> 
+
+pkgbase=pycurl
+pkgname=('python-pycurl' 'python2-pycurl')
+pkgver=7.19.3
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://pycurl.sourceforge.net/"
+license=('LGPL' 'MIT')
+makedepends=('python' 'python2' 'curl')
+source=("http://pycurl.sourceforge.net/download/${pkgbase}-${pkgver}.tar.gz")
+sha1sums=('5d8b7a7f869362421061d72f6d234bf805ebebb5')
+
+prepare() {
+  cp -r ${pkgbase}-${pkgver} python2-${pkgbase}-${pkgver}
+
+  cd "${srcdir}/${pkgbase}-${pkgver}"
+  find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python3|" {} +
+  sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python-pycurl"/' setup.py
+  cd "${srcdir}/python2-${pkgbase}-${pkgver}"
+  find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python2|" {} +
+  sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python2-pycurl"/' setup.py
+}
+
+build() {
+  cd "${srcdir}/${pkgbase}-${pkgver}"
+  python3 setup.py build --with-ssl
+  cd "${srcdir}/python2-${pkgbase}-${pkgver}"
+  python2 setup.py build --with-ssl
+}
+
+package_python-pycurl() {
+  pkgdesc="A Python 3.x interface to libcurl"
+  depends=('python' 'curl')
+
+  cd ${pkgbase}-${pkgver}
+  python setup.py install --root="${pkgdir}"
+  install -D -m644 COPYING-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pycurl() {
+  pkgdesc="A Python 2.x interface to libcurl"
+  depends=('python2' 'curl')
+
+  cd python2-${pkgbase}-${pkgver}
+  python2 setup.py install --root="${pkgdir}"
+  install -D -m644 COPYING-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2014-01-20 15:09:21 UTC (rev 204460)
+++ extra-x86_64/PKGBUILD	2014-01-20 15:09:51 UTC (rev 204461)
@@ -1,31 +0,0 @@
-# $Id$
-# Maintainer:
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> 
-
-pkgbase=pycurl
-pkgname=('python2-pycurl')
-pkgver=7.19.0.2
-pkgrel=1
-arch=('i686' 'x86_64')
-url="http://pycurl.sourceforge.net/"
-license=('GPL')
-makedepends=('python2' 'curl')
-source=("http://pycurl.sourceforge.net/download/${pkgbase}-${pkgver}.tar.gz")
-md5sums=('518be33976dbc6838e42495ada64b43f')
-
-package_python2-pycurl() {
-  pkgdesc="A Python 2.x interface to libcurl"
-  depends=('python2' 'curl')
-  replaces=('pycurl' 'python-pycurl')
-  provides=('pycurl' 'python-pycurl')
-  conflicts=('python-pycurl')
-
-  cd ${pkgbase}-${pkgver}
-  python2 setup.py install --curl-config=/usr/bin/curl-config \
-    --prefix "${pkgdir}"/usr --optimize=1
-
-  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-    -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
-    $(find "${pkgdir}" -name '*.py')
-}

Copied: pycurl/repos/extra-x86_64/PKGBUILD (from rev 204460, pycurl/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2014-01-20 15:09:51 UTC (rev 204461)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer:
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> 
+
+pkgbase=pycurl
+pkgname=('python-pycurl' 'python2-pycurl')
+pkgver=7.19.3
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://pycurl.sourceforge.net/"
+license=('LGPL' 'MIT')
+makedepends=('python' 'python2' 'curl')
+source=("http://pycurl.sourceforge.net/download/${pkgbase}-${pkgver}.tar.gz")
+sha1sums=('5d8b7a7f869362421061d72f6d234bf805ebebb5')
+
+prepare() {
+  cp -r ${pkgbase}-${pkgver} python2-${pkgbase}-${pkgver}
+
+  cd "${srcdir}/${pkgbase}-${pkgver}"
+  find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python3|" {} +
+  sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python-pycurl"/' setup.py
+  cd "${srcdir}/python2-${pkgbase}-${pkgver}"
+  find . -name '*.py' -exec sed -i -e "s|#! /usr/bin/env python|#!/usr/bin/env python2|" {} +
+  sed -i 's/"share", "doc", PACKAGE/"share", "doc", "python2-pycurl"/' setup.py
+}
+
+build() {
+  cd "${srcdir}/${pkgbase}-${pkgver}"
+  python3 setup.py build --with-ssl
+  cd "${srcdir}/python2-${pkgbase}-${pkgver}"
+  python2 setup.py build --with-ssl
+}
+
+package_python-pycurl() {
+  pkgdesc="A Python 3.x interface to libcurl"
+  depends=('python' 'curl')
+
+  cd ${pkgbase}-${pkgver}
+  python setup.py install --root="${pkgdir}"
+  install -D -m644 COPYING-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pycurl() {
+  pkgdesc="A Python 2.x interface to libcurl"
+  depends=('python2' 'curl')
+
+  cd python2-${pkgbase}-${pkgver}
+  python2 setup.py install --root="${pkgdir}"
+  install -D -m644 COPYING-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}




More information about the arch-commits mailing list