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

Eric Bélanger eric at archlinux.org
Mon Oct 15 21:19:51 UTC 2012


    Date: Monday, October 15, 2012 @ 17:19:51
  Author: eric
Revision: 168774

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

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

--------------------------------+
 staging-i686/PKGBUILD          |   37 +++++++++++++++++++++++++++++++++++++
 staging-i686/twisted.install   |   11 +++++++++++
 staging-x86_64/PKGBUILD        |   37 +++++++++++++++++++++++++++++++++++++
 staging-x86_64/twisted.install |   11 +++++++++++
 4 files changed, 96 insertions(+)

Copied: twisted/repos/staging-i686/PKGBUILD (from rev 168773, twisted/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2012-10-15 21:19:51 UTC (rev 168774)
@@ -0,0 +1,37 @@
+# $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=12.2.0
+pkgrel=2
+pkgdesc="Asynchronous networking framework written in Python."
+arch=('i686' 'x86_64')
+url="http://twistedmatrix.com/"
+license=('MIT')
+depends=('python2-crypto' 'python2-zope-interface')
+optdepends=('python2-pyopenssl'
+            'python2-soappy: for twisted.web.soap'
+	    'python2-pyasn1: for using conch'
+	    'pygtk: for using manhole'
+	    'tk: for using tkconch')
+install=twisted.install
+source=(http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-$pkgver.tar.bz2)
+sha1sums=('c51834c1270e7a4bb0de9190056e4317413920f9')
+
+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 -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \
+      "$pkgdir"/usr/lib/python2.7/site-packages/twisted/trial/test/scripttest.py \
+      "$pkgdir"/usr/lib/python2.7/site-packages/twisted/mail/test/pop3testserver.py \
+      "$pkgdir"/usr/lib/python2.7/site-packages/twisted/python/test/pullpipe.py
+}

Copied: twisted/repos/staging-i686/twisted.install (from rev 168773, twisted/trunk/twisted.install)
===================================================================
--- staging-i686/twisted.install	                        (rev 0)
+++ staging-i686/twisted.install	2012-10-15 21:19:51 UTC (rev 168774)
@@ -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/staging-x86_64/PKGBUILD (from rev 168773, twisted/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2012-10-15 21:19:51 UTC (rev 168774)
@@ -0,0 +1,37 @@
+# $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=12.2.0
+pkgrel=2
+pkgdesc="Asynchronous networking framework written in Python."
+arch=('i686' 'x86_64')
+url="http://twistedmatrix.com/"
+license=('MIT')
+depends=('python2-crypto' 'python2-zope-interface')
+optdepends=('python2-pyopenssl'
+            'python2-soappy: for twisted.web.soap'
+	    'python2-pyasn1: for using conch'
+	    'pygtk: for using manhole'
+	    'tk: for using tkconch')
+install=twisted.install
+source=(http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-$pkgver.tar.bz2)
+sha1sums=('c51834c1270e7a4bb0de9190056e4317413920f9')
+
+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 -i 's:^#!.*bin.*python:#!/usr/bin/python2:' \
+      "$pkgdir"/usr/lib/python2.7/site-packages/twisted/trial/test/scripttest.py \
+      "$pkgdir"/usr/lib/python2.7/site-packages/twisted/mail/test/pop3testserver.py \
+      "$pkgdir"/usr/lib/python2.7/site-packages/twisted/python/test/pullpipe.py
+}

Copied: twisted/repos/staging-x86_64/twisted.install (from rev 168773, twisted/trunk/twisted.install)
===================================================================
--- staging-x86_64/twisted.install	                        (rev 0)
+++ staging-x86_64/twisted.install	2012-10-15 21:19:51 UTC (rev 168774)
@@ -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