[arch-commits] Commit in twisted/trunk (PKGBUILD twisted.install)

Giovanni Scafora giovanni at archlinux.org
Thu Jan 21 11:15:54 UTC 2010


    Date: Thursday, January 21, 2010 @ 06:15:53
  Author: giovanni
Revision: 64606

upgpkg: twisted 9.0.0-2
    Fixed FS17939

Added:
  twisted/trunk/twisted.install
Modified:
  twisted/trunk/PKGBUILD

-----------------+
 PKGBUILD        |    4 +++-
 twisted.install |   11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-01-21 08:42:53 UTC (rev 64605)
+++ PKGBUILD	2010-01-21 11:15:53 UTC (rev 64606)
@@ -4,18 +4,20 @@
 
 pkgname=twisted
 pkgver=9.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Asynchronous networking framework written in Python."
 arch=('i686' 'x86_64')
 url="http://twistedmatrix.com/"
 license=('MIT')
 depends=('python' 'pycrypto' 'zope-interface')
 optdepends=('pyopenssl')
+install=twisted.install
 source=(http://tmrc.mit.edu/mirror/twisted/Twisted/${pkgver%.*}/Twisted-${pkgver}.tar.bz2)
 md5sums=('93fc2756a09ffd1350c046cc940e4311')
 
 build() {
   cd "${srcdir}/Twisted-${pkgver}"
+
   python setup.py install --prefix=/usr --root=$pkgdir || return 1
   install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" || return 1
 }

Added: twisted.install
===================================================================
--- twisted.install	                        (rev 0)
+++ twisted.install	2010-01-21 11:15:53 UTC (rev 64606)
@@ -0,0 +1,11 @@
+post_install() {
+  python -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.6/site-packages/twisted/plugins -name dropin.cache | xargs -r rm -f
+}




More information about the arch-commits mailing list