[arch-commits] Commit in (5 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Sun Feb 8 11:32:10 UTC 2015


    Date: Sunday, February 8, 2015 @ 12:32:10
  Author: aginiewicz
Revision: 127294

moving python2-singledispatch from AUR

Added:
  python2-singledispatch/
  python2-singledispatch/repos/
  python2-singledispatch/trunk/
  python2-singledispatch/trunk/PKGBUILD
  python2-singledispatch/trunk/license

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 license  |   19 +++++++++++++++++++
 2 files changed, 56 insertions(+)

Added: python2-singledispatch/trunk/PKGBUILD
===================================================================
--- python2-singledispatch/trunk/PKGBUILD	                        (rev 0)
+++ python2-singledispatch/trunk/PKGBUILD	2015-02-08 11:32:10 UTC (rev 127294)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgname=python2-singledispatch
+pkgver=3.4.0.3
+pkgrel=0
+pkgdesc="Implementation of functools.singledispatch from Python 3.4"
+arch=('any')
+url="https://bitbucket.org/ambv/singledispatch"
+license=('MIT')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("https://pypi.python.org/packages/source/s/singledispatch/singledispatch-$pkgver.tar.gz" license)
+md5sums=('af2fc6a3d6cc5a02d0bf54d909785fcb'
+         '360faaffcf297a20e20e2289af00ce07')
+
+prepare() {
+  cd "${srcdir}"/singledispatch-$pkgver
+
+  sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+    $(find "${srcdir}" -name '*.py')
+}
+
+build() {
+  cd "${srcdir}"/singledispatch-$pkgver
+
+  python2 setup.py build
+}
+
+package() {
+  cd "${srcdir}"/singledispatch-$pkgver
+
+  python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+
+  install -D "${srcdir}"/license "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+


Property changes on: python2-singledispatch/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: python2-singledispatch/trunk/license
===================================================================
--- python2-singledispatch/trunk/license	                        (rev 0)
+++ python2-singledispatch/trunk/license	2015-02-08 11:32:10 UTC (rev 127294)
@@ -0,0 +1,19 @@
+Copyright (c) 2013 Łukasz Langa
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.



More information about the arch-commits mailing list