[arch-commits] Commit in twisted/repos (6 files)

Ionut Biru ibiru at archlinux.org
Thu Dec 15 22:26:04 UTC 2011


    Date: Thursday, December 15, 2011 @ 17:26:04
  Author: ibiru
Revision: 145058

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

Added:
  twisted/repos/testing-i686/
  twisted/repos/testing-i686/PKGBUILD
    (from rev 145057, twisted/trunk/PKGBUILD)
  twisted/repos/testing-i686/twisted.install
    (from rev 145057, twisted/trunk/twisted.install)
  twisted/repos/testing-x86_64/
  twisted/repos/testing-x86_64/PKGBUILD
    (from rev 145057, twisted/trunk/PKGBUILD)
  twisted/repos/testing-x86_64/twisted.install
    (from rev 145057, twisted/trunk/twisted.install)

--------------------------------+
 testing-i686/PKGBUILD          |   34 ++++++++++++++++++++++++++++++++++
 testing-i686/twisted.install   |   11 +++++++++++
 testing-x86_64/PKGBUILD        |   34 ++++++++++++++++++++++++++++++++++
 testing-x86_64/twisted.install |   11 +++++++++++
 4 files changed, 90 insertions(+)

Copied: twisted/repos/testing-i686/PKGBUILD (from rev 145057, twisted/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2011-12-15 22:26:04 UTC (rev 145058)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Contributor: Juergen Hoetzel <juergen at archlinux.org>
+# Contributor:  Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=twisted
+pkgver=11.1.0
+pkgrel=1
+pkgdesc="Asynchronous networking framework written in Python."
+arch=('i686' 'x86_64')
+url="http://twistedmatrix.com/"
+license=('MIT')
+depends=('python2' 'pycrypto' 'zope-interface')
+optdepends=('python2-pyopenssl'
+            'python-soappy:for twisted.web.soap')
+install=twisted.install
+source=(http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-$pkgver.tar.bz2)
+md5sums=('972f3497e6e19318c741bf2900ffe31c')
+
+build() {
+    cd "$srcdir/Twisted-$pkgver"
+    python2 setup.py build
+}
+
+package() {
+    cd "$srcdir/Twisted-$pkgver"
+    python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+    install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+    sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+        -i "$pkgdir"/usr/lib/python2.7/site-packages/twisted/trial/test/scripttest.py
+    sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+        -i "$pkgdir"/usr/lib/python2.7/site-packages/twisted/mail/test/pop3testserver.py
+}

Copied: twisted/repos/testing-i686/twisted.install (from rev 145057, twisted/trunk/twisted.install)
===================================================================
--- testing-i686/twisted.install	                        (rev 0)
+++ testing-i686/twisted.install	2011-12-15 22:26:04 UTC (rev 145058)
@@ -0,0 +1,11 @@
+post_install() {
+  python2 -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' >/dev/null 2>&1 || return 1
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  find /usr/lib/python2.7/site-packages/twisted/plugins -name dropin.cache | xargs -r rm -f
+}

Copied: twisted/repos/testing-x86_64/PKGBUILD (from rev 145057, twisted/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2011-12-15 22:26:04 UTC (rev 145058)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Contributor: Juergen Hoetzel <juergen at archlinux.org>
+# Contributor:  Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=twisted
+pkgver=11.1.0
+pkgrel=1
+pkgdesc="Asynchronous networking framework written in Python."
+arch=('i686' 'x86_64')
+url="http://twistedmatrix.com/"
+license=('MIT')
+depends=('python2' 'pycrypto' 'zope-interface')
+optdepends=('python2-pyopenssl'
+            'python-soappy:for twisted.web.soap')
+install=twisted.install
+source=(http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-$pkgver.tar.bz2)
+md5sums=('972f3497e6e19318c741bf2900ffe31c')
+
+build() {
+    cd "$srcdir/Twisted-$pkgver"
+    python2 setup.py build
+}
+
+package() {
+    cd "$srcdir/Twisted-$pkgver"
+    python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+    install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+    sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+        -i "$pkgdir"/usr/lib/python2.7/site-packages/twisted/trial/test/scripttest.py
+    sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+        -i "$pkgdir"/usr/lib/python2.7/site-packages/twisted/mail/test/pop3testserver.py
+}

Copied: twisted/repos/testing-x86_64/twisted.install (from rev 145057, twisted/trunk/twisted.install)
===================================================================
--- testing-x86_64/twisted.install	                        (rev 0)
+++ testing-x86_64/twisted.install	2011-12-15 22:26:04 UTC (rev 145058)
@@ -0,0 +1,11 @@
+post_install() {
+  python2 -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' >/dev/null 2>&1 || return 1
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  find /usr/lib/python2.7/site-packages/twisted/plugins -name dropin.cache | xargs -r rm -f
+}




More information about the arch-commits mailing list