[arch-commits] Commit in python2-slip/repos/community-any (3 files)
Maxime Gauduin
alucryd at nymeria.archlinux.org
Sun Mar 31 20:44:06 UTC 2013
Date: Sunday, March 31, 2013 @ 22:44:06
Author: alucryd
Revision: 87450
archrelease: copy trunk to community-any
Added:
python2-slip/repos/community-any/PKGBUILD
(from rev 87449, python2-slip/trunk/PKGBUILD)
Deleted:
python2-slip/repos/community-any/PKGBUILD
python2-slip/repos/community-any/python2.patch
---------------+
PKGBUILD | 70 ++++++++++++++++++++++++++------------------------------
python2.patch | 54 -------------------------------------------
2 files changed, 33 insertions(+), 91 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2013-03-31 20:43:55 UTC (rev 87449)
+++ PKGBUILD 2013-03-31 20:44:06 UTC (rev 87450)
@@ -1,37 +0,0 @@
-# $Id$
-# Maintainer: Maxime Gauduin <alucryd at gmail.com>
-
-pkgname=python2-slip
-pkgver=0.2.24
-pkgrel=4
-pkgdesc="Simple Library for Python"
-arch=('any')
-url="http://fedorahosted.org/python-slip"
-license=('GPL2')
-depends=('gtk2' 'polkit' 'python2-dbus' 'python2-gobject' 'python2-decorator' 'pygtk')
-source=("http://fedorahosted.org/released/python-slip/python-slip-${pkgver}.tar.bz2" 'python2.patch')
-sha256sums=('ffd4c1beca05b0af9f30923e9304c97e714e2c7e535ff4ccee0486d2d7e7e08b'
- '9637162d79de637616737977bc4717c1e746435643225f25a19999e48c2b3524')
-
-build() {
- cd "${srcdir}"/python-slip-${pkgver}
-
-# Patch
- patch -Np1 -i "${srcdir}"/python2.patch
-
-# Build
- make
-}
-
-package() {
- cd "${srcdir}"/python-slip-${pkgver}
-
-# Install
- make DESTDIR="${pkgdir}" install
-
-# Fix permissions
- find "${pkgdir}" -type d -exec chmod 755 {} +
- find "${pkgdir}" -type f -exec chmod 644 {} +
-}
-
-# vim: ts=2 sw=2 et:
Copied: python2-slip/repos/community-any/PKGBUILD (from rev 87449, python2-slip/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2013-03-31 20:44:06 UTC (rev 87450)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+
+pkgname=python2-slip
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="Simple Library for Python"
+arch=('any')
+url="http://fedorahosted.org/python-slip"
+license=('GPL2')
+depends=('gtk2' 'polkit' 'pygtk' 'python2-dbus' 'python2-decorator' 'python2-gobject')
+source=("http://fedorahosted.org/released/python-slip/python-slip-${pkgver}.tar.bz2")
+sha256sums=('db5afa59681e17f59559c5e1cc32447ae138120ea3058111dd5c61745e079212')
+
+build() {
+ cd "${srcdir}"/python-slip-${pkgver}
+
+# Patch
+ sed -i 's|^#!.*python$|#!/usr/bin/python2|' $(grep -rl '^#!.*python')
+ sed -i 's|python|python2|g' py_rules.mk
+
+# Build
+ make
+}
+
+package() {
+ cd "${srcdir}"/python-slip-${pkgver}
+
+# Install
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et:
Deleted: python2.patch
===================================================================
--- python2.patch 2013-03-31 20:43:55 UTC (rev 87449)
+++ python2.patch 2013-03-31 20:44:06 UTC (rev 87450)
@@ -1,54 +0,0 @@
---- a/doc/dbus/example/example-conf-client.py
-+++ b/doc/dbus/example/example-conf-client.py
-@@ -1,4 +1,4 @@
--#!/usr/bin/python
-+#!/usr/bin/python2
- # -*- coding: utf-8 -*-
-
- import dbus
---- a/doc/dbus/example/example-conf-mechanism.py
-+++ b/doc/dbus/example/example-conf-mechanism.py
-@@ -1,4 +1,4 @@
--#!/usr/bin/python
-+#!/usr/bin/python2
- # -*- coding: utf-8 -*-
-
- import gobject
---- a/py_rules.mk
-+++ b/py_rules.mk
-@@ -33,15 +33,15 @@ $(_SETUP_PY): $(_SETUP_PY).in $(PKGNAME).spec
-
- py-build-ext: $(_SETUP_PY) $(PY_SOURCES)
- cd $(PY_TOPDIR); \
-- python $(SETUP_PY) build_ext -i
-+ python2 $(SETUP_PY) build_ext -i
-
- py-build: $(_SETUP_PY) $(PY_SOURCES)
- cd $(PY_TOPDIR); \
-- python $(SETUP_PY) build
-+ python2 $(SETUP_PY) build
-
- py-install: $(_SETUP_PY)
- cd $(PY_TOPDIR); \
-- python $(SETUP_PY) install -O1 \
-+ python2 $(SETUP_PY) install -O1 \
- --root $(DESTDIR) \
- --prefix $(PREFIX) \
- --exec-prefix $(EXEC_PREFIX) \
-@@ -49,7 +49,7 @@ py-install: $(_SETUP_PY)
-
- py-clean: $(_SETUP_PY)
- cd $(PY_TOPDIR); \
-- python $(SETUP_PY) clean; \
-+ python2 $(SETUP_PY) clean; \
- rm -f $(SETUP_PY); \
- rm -rf build
-
---- a/setup.py.in
-+++ b/setup.py.in
-@@ -1,4 +1,4 @@
--#!/usr/bin/python
-+#!/usr/bin/python2
- # -*- coding: utf-8 -*-
-
- from distutils.core import setup
More information about the arch-commits
mailing list