[arch-commits] Commit in python2-rdflib/repos/extra-any (PKGBUILD PKGBUILD)
Eric Bélanger
eric at nymeria.archlinux.org
Thu Feb 6 16:03:56 UTC 2014
Date: Thursday, February 6, 2014 @ 17:03:56
Author: eric
Revision: 205515
archrelease: copy trunk to extra-any
Added:
python2-rdflib/repos/extra-any/PKGBUILD
(from rev 205514, python2-rdflib/trunk/PKGBUILD)
Deleted:
python2-rdflib/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 86 ++++++++++++++++++++++++++++++++++++++-----------------------
1 file changed, 54 insertions(+), 32 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2014-02-06 16:03:25 UTC (rev 205514)
+++ PKGBUILD 2014-02-06 16:03:56 UTC (rev 205515)
@@ -1,32 +0,0 @@
-# $Id$
-# Maintainer:
-# Contributor: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: Leif Warner <abimelech at gmail.com>
-
-pkgname=python2-rdflib
-pkgver=3.2.1
-pkgrel=1
-pkgdesc="A Python library for working with RDF, a simple yet powerful language for representing information"
-url="http://rdflib.net/"
-license=('BSD')
-depends=('python2' 'python2-isodate')
-makedepends=('python2-distribute')
-checkdepends=('python2-nose')
-arch=('any')
-replaces=('rdflib')
-provides=('rdflib')
-conflicts=('rdflib')
-source=(rdflib-$pkgver.tar.gz::https://github.com/RDFLib/rdflib/tarball/$pkgver)
-sha1sums=('e49f7fa347bab177f4fa74b72730f8f088280b93')
-
-check() {
- cd "$srcdir"/RDFLib-rdflib-*
- python2 setup.py test
-}
-
-package() {
- cd "$srcdir"/RDFLib-rdflib-*
- python2 setup.py install --root="$pkgdir" --optimize=1
- sed -i 's|/usr/bin/env python|/usr/bin/env python2|' "$pkgdir"/usr/lib/python2.7/site-packages/rdflib/plugins/parsers/{ntriples.py,notation3.py}
- install -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
Copied: python2-rdflib/repos/extra-any/PKGBUILD (from rev 205514, python2-rdflib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2014-02-06 16:03:56 UTC (rev 205515)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Leif Warner <abimelech at gmail.com>
+
+pkgbase=python2-rdflib
+pkgname=('python2-rdflib' 'python-rdflib')
+pkgver=4.1.0
+pkgrel=1
+pkgdesc="A Python library for working with RDF, a simple yet powerful language for representing information"
+arch=('any')
+url="http://rdflib.net/"
+license=('BSD')
+makedepends=('python2-isodate' 'python-isodate' 'python2-distribute' 'python-distribute')
+checkdepends=('python2-nose' 'python-nose' 'python2-pyparsing' 'python-pyparsing'
+ 'python2-six' 'python-six')
+source=(rdflib-$pkgver.tar.gz::https://github.com/RDFLib/rdflib/tarball/$pkgver)
+sha1sums=('5d7922ea3de794721bc70d3eb0618bcb4fdce9fc')
+
+prepare() {
+ cp -r RDFLib-rdflib-* python2-rdflib
+ cd python2-rdflib
+ sed -i 's|/usr/bin/env python|/usr/bin/env python2|' rdflib/extras/{describer.py,infixowl.py} \
+ rdflib/plugins/parsers/{ntriples.py,notation3.py,structureddata.py,pyRdfa/extras/httpheader.py} \
+ rdflib/tools/rdfpipe.py
+}
+
+check() {
+ cd RDFLib-rdflib-*
+ python setup.py test
+ cd ../python2-rdflib
+ python2 setup.py test
+}
+
+package_python2-rdflib() {
+ depends=('python2-isodate')
+
+ cd python2-rdflib
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ cd "$pkgdir/usr/bin"
+ for i in * ; do
+ mv $i $i-py2
+ done
+}
+
+package_python-rdflib() {
+ depends=('python-isodate')
+
+ cd RDFLib-rdflib-*
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list