[arch-commits] Commit in twisted/repos (4 files)
Felix Yan
fyan at archlinux.org
Mon Aug 10 03:50:17 UTC 2015
Date: Monday, August 10, 2015 @ 05:50:17
Author: fyan
Revision: 243135
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
twisted/repos/testing-i686/
twisted/repos/testing-i686/PKGBUILD
(from rev 243134, twisted/trunk/PKGBUILD)
twisted/repos/testing-x86_64/
twisted/repos/testing-x86_64/PKGBUILD
(from rev 243134, twisted/trunk/PKGBUILD)
-------------------------+
testing-i686/PKGBUILD | 78 ++++++++++++++++++++++++++++++++++++++++++++++
testing-x86_64/PKGBUILD | 78 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 156 insertions(+)
Copied: twisted/repos/testing-i686/PKGBUILD (from rev 243134, twisted/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2015-08-10 03:50:17 UTC (rev 243135)
@@ -0,0 +1,78 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Juergen Hoetzel <juergen at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgbase=twisted
+pkgname=(python-twisted python2-twisted)
+pkgver=15.3.0
+pkgrel=1
+pkgdesc="Asynchronous networking framework written in Python"
+arch=('i686' 'x86_64')
+url="http://twistedmatrix.com/"
+license=('MIT')
+makedepends=('python-crypto' 'python2-crypto' 'python-zope-interface' 'python2-zope-interface'
+ 'python-setuptools' 'python2-setuptools' 'python-service-identity' 'python2-service-identity')
+source=("http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-$pkgver.tar.bz2")
+sha1sums=('1932cc62ac038cce1624f3aa1c893bd83afe0f32')
+
+prepare() {
+ cp -a "Twisted-$pkgver"{,-py2}
+
+ cd "Twisted-$pkgver-py2"
+ sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \
+ twisted/python/test/pullpipe.py \
+ twisted/mail/test/pop3testserver.py \
+ twisted/trial/test/scripttest.py
+}
+
+build() {
+ cd "$srcdir/Twisted-$pkgver"
+ python3 setup.py build
+
+ cd "$srcdir/Twisted-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/Twisted-$pkgver"
+ # LC_CTYPE=en_US.utf8 python bin/trial twisted
+
+ cd "$srcdir/Twisted-$pkgver-py2"
+ LC_CTYPE=en_US.utf8 python2 bin/trial twisted || warning "Tests failed"
+}
+
+package_python-twisted() {
+ depends=('python-crypto' 'python-zope-interface')
+ optdepends=('python-pyopenssl'
+ 'python-service-identity: for TLS client hostname verification'
+ 'python-pyasn1: for using conch'
+ 'tk: for using tkconch')
+
+ cd "Twisted-$pkgver"
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ # Wrong path, wrong!
+ cp -a "$pkgdir"/usr/twisted/* "$pkgdir"/usr/lib/python3.4/site-packages/twisted/
+ rm -r "$pkgdir"/usr/twisted
+
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-twisted() {
+ depends=('python2-crypto' 'python2-zope-interface')
+ optdepends=('python2-pyopenssl'
+ 'python2-service-identity: for TLS client hostname verification'
+ 'python2-soappy: for twisted.web.soap'
+ 'python2-pyasn1: for using conch'
+ 'pygtk: for using manhole'
+ 'tk: for using tkconch')
+ provides=("twisted=$pkgver")
+ conflicts=('twisted<14.0.0')
+ replaces=('twisted<14.0.0')
+
+ cd "Twisted-$pkgver-py2"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: twisted/repos/testing-x86_64/PKGBUILD (from rev 243134, twisted/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2015-08-10 03:50:17 UTC (rev 243135)
@@ -0,0 +1,78 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Juergen Hoetzel <juergen at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgbase=twisted
+pkgname=(python-twisted python2-twisted)
+pkgver=15.3.0
+pkgrel=1
+pkgdesc="Asynchronous networking framework written in Python"
+arch=('i686' 'x86_64')
+url="http://twistedmatrix.com/"
+license=('MIT')
+makedepends=('python-crypto' 'python2-crypto' 'python-zope-interface' 'python2-zope-interface'
+ 'python-setuptools' 'python2-setuptools' 'python-service-identity' 'python2-service-identity')
+source=("http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-$pkgver.tar.bz2")
+sha1sums=('1932cc62ac038cce1624f3aa1c893bd83afe0f32')
+
+prepare() {
+ cp -a "Twisted-$pkgver"{,-py2}
+
+ cd "Twisted-$pkgver-py2"
+ sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \
+ twisted/python/test/pullpipe.py \
+ twisted/mail/test/pop3testserver.py \
+ twisted/trial/test/scripttest.py
+}
+
+build() {
+ cd "$srcdir/Twisted-$pkgver"
+ python3 setup.py build
+
+ cd "$srcdir/Twisted-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/Twisted-$pkgver"
+ # LC_CTYPE=en_US.utf8 python bin/trial twisted
+
+ cd "$srcdir/Twisted-$pkgver-py2"
+ LC_CTYPE=en_US.utf8 python2 bin/trial twisted || warning "Tests failed"
+}
+
+package_python-twisted() {
+ depends=('python-crypto' 'python-zope-interface')
+ optdepends=('python-pyopenssl'
+ 'python-service-identity: for TLS client hostname verification'
+ 'python-pyasn1: for using conch'
+ 'tk: for using tkconch')
+
+ cd "Twisted-$pkgver"
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ # Wrong path, wrong!
+ cp -a "$pkgdir"/usr/twisted/* "$pkgdir"/usr/lib/python3.4/site-packages/twisted/
+ rm -r "$pkgdir"/usr/twisted
+
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-twisted() {
+ depends=('python2-crypto' 'python2-zope-interface')
+ optdepends=('python2-pyopenssl'
+ 'python2-service-identity: for TLS client hostname verification'
+ 'python2-soappy: for twisted.web.soap'
+ 'python2-pyasn1: for using conch'
+ 'pygtk: for using manhole'
+ 'tk: for using tkconch')
+ provides=("twisted=$pkgver")
+ conflicts=('twisted<14.0.0')
+ replaces=('twisted<14.0.0')
+
+ cd "Twisted-$pkgver-py2"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list