From 014a7837a8984837f9f923a5d8dc5df9c20f9ff2 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 16 Jul 2017 16:53:51 +0000 Subject: python2-futures: initial inclusion. dep of flexget --- abs/core/python_modules/python2-futures/LICENSE | 21 +++++++++++++++++ abs/core/python_modules/python2-futures/PKGBUILD | 30 ++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 abs/core/python_modules/python2-futures/LICENSE create mode 100644 abs/core/python_modules/python2-futures/PKGBUILD diff --git a/abs/core/python_modules/python2-futures/LICENSE b/abs/core/python_modules/python2-futures/LICENSE new file mode 100644 index 0000000..c430db0 --- /dev/null +++ b/abs/core/python_modules/python2-futures/LICENSE @@ -0,0 +1,21 @@ +Copyright 2009 Brian Quinlan. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY BRIAN QUINLAN "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +HALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/abs/core/python_modules/python2-futures/PKGBUILD b/abs/core/python_modules/python2-futures/PKGBUILD new file mode 100644 index 0000000..dcaed42 --- /dev/null +++ b/abs/core/python_modules/python2-futures/PKGBUILD @@ -0,0 +1,30 @@ +# $Id$ +# Maintainer: Balló György +# Contributor: Jaroslav Lichtblau +# Contributor: Allan McRae + +pkgname=python2-futures +_pkgname=futures +pkgver=3.1.1 +pkgrel=1 +pkgdesc="Backport of the concurrent.futures package from Python 3.2" +arch=('any') +url="https://github.com/agronholm/pythonfutures" +license=('BSD') +depends=('python2') +source=("$_pkgname-$pkgver.tar.gz::https://github.com/agronholm/pythonfutures/archive/$pkgver.tar.gz" + LICENSE) +md5sums=('c500fc20a02b83e7ec88dc5bac9649f5' + 'dd6708d05936d3f6c4e20ed14c87b5e3') + +build() { + cd "python$_pkgname-$pkgver" + python2 setup.py build +} + +package() { + cd "python$_pkgname-$pkgver" + python2 setup.py install --root "$pkgdir" --optimize=1 + + install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} -- cgit v0.12