[arch-commits] Commit in python-pystemmer/repos (4 files)

Felix Yan fyan at archlinux.org
Tue Dec 8 03:46:45 UTC 2015


    Date: Tuesday, December 8, 2015 @ 04:46:44
  Author: fyan
Revision: 150147

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

Added:
  python-pystemmer/repos/community-i686/
  python-pystemmer/repos/community-i686/PKGBUILD
    (from rev 150146, python-pystemmer/trunk/PKGBUILD)
  python-pystemmer/repos/community-x86_64/
  python-pystemmer/repos/community-x86_64/PKGBUILD
    (from rev 150146, python-pystemmer/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   50 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

Copied: python-pystemmer/repos/community-i686/PKGBUILD (from rev 150146, python-pystemmer/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-12-08 03:46:44 UTC (rev 150147)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pystemmer
+pkgname=('python-pystemmer' 'python2-pystemmer')
+pkgver=1.3.0
+pkgrel=1
+pkgdesc="Snowball stemming algorithms, for information retrieval"
+arch=('i686' 'x86_64')
+license=('BSD' 'MIT')
+url="http://snowball.tartarus.org"
+makedepends=('python' 'python2')
+source=("http://snowball.tartarus.org/wrappers/PyStemmer-$pkgver.tar.gz")
+sha512sums=('35f40606347ead6a6068dae28aa24f5becfa0e52930998027a7b20955f331c6bd4762158267be7d40857ea8aae0084a07f663dbd48c4aa6aac10ce90f26c2a2d')
+
+prepare() {
+  cp -a PyStemmer-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/PyStemmer-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/PyStemmer-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/PyStemmer-$pkgver"
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" python runtests.py
+
+  cd "$srcdir/PyStemmer-$pkgver-py2"
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 runtests.py
+}
+
+package_python-pystemmer() {
+  depends=('python')
+
+  cd PyStemmer-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pystemmer() {
+  depends=('python2')
+
+  cd PyStemmer-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: python-pystemmer/repos/community-x86_64/PKGBUILD (from rev 150146, python-pystemmer/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-12-08 03:46:44 UTC (rev 150147)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pystemmer
+pkgname=('python-pystemmer' 'python2-pystemmer')
+pkgver=1.3.0
+pkgrel=1
+pkgdesc="Snowball stemming algorithms, for information retrieval"
+arch=('i686' 'x86_64')
+license=('BSD' 'MIT')
+url="http://snowball.tartarus.org"
+makedepends=('python' 'python2')
+source=("http://snowball.tartarus.org/wrappers/PyStemmer-$pkgver.tar.gz")
+sha512sums=('35f40606347ead6a6068dae28aa24f5becfa0e52930998027a7b20955f331c6bd4762158267be7d40857ea8aae0084a07f663dbd48c4aa6aac10ce90f26c2a2d')
+
+prepare() {
+  cp -a PyStemmer-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/PyStemmer-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/PyStemmer-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/PyStemmer-$pkgver"
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" python runtests.py
+
+  cd "$srcdir/PyStemmer-$pkgver-py2"
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 runtests.py
+}
+
+package_python-pystemmer() {
+  depends=('python')
+
+  cd PyStemmer-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pystemmer() {
+  depends=('python2')
+
+  cd PyStemmer-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list