Date: Monday, June 9, 2014 @ 12:22:12 Author: aginiewicz Revision: 112873
Moved python-openpyxl1 instead, v2.x is compatible with almost no packages as it turned out Added: python-openpyxl1/ python-openpyxl1/repos/ python-openpyxl1/trunk/ python-openpyxl1/trunk/LICENCE python-openpyxl1/trunk/PKGBUILD ----------+ LICENCE | 35 +++++++++++++++++++++++++++++++++++ PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) Added: python-openpyxl1/trunk/LICENCE =================================================================== --- python-openpyxl1/trunk/LICENCE (rev 0) +++ python-openpyxl1/trunk/LICENCE 2014-06-09 10:22:12 UTC (rev 112873) @@ -0,0 +1,35 @@ +This software is under the MIT Licence +====================================== + +Copyright (c) 2010 openpyxl + +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. + +Odict implementation in openpyxl/writer/odict.py uses the following licence: + +Copyright (c) 2001-2011 Python Software Foundation + 2011 Raymond Hettinger +License: PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 + See http://www.opensource.org/licenses/Python-2.0 for full terms +Note: backport changes by Raymond were originally distributed under MIT + license, but since the original license for Python is more + restrictive than MIT, code cannot be released under its terms and + still adheres to the limitations of Python license. + Added: python-openpyxl1/trunk/PKGBUILD =================================================================== --- python-openpyxl1/trunk/PKGBUILD (rev 0) +++ python-openpyxl1/trunk/PKGBUILD 2014-06-09 10:22:12 UTC (rev 112873) @@ -0,0 +1,56 @@ +# $Id$ +# Maintainer: Andrzej Giniewicz <[email protected]> +# Contributor: Nishit Joseph (reachjlight at gmail dot com) +# Contributor: Martin Corley <[email protected]> + +pkgbase=python-openpyxl1 +pkgname=('python2-openpyxl1' 'python-openpyxl1') +pkgver=1.8.6 +pkgrel=0 +pkgdesc="A Python library to read/write Excel 2007 xlsx/xlsm files, 1.x branch" +arch=('any') +url="http://openpyxl.readthedocs.org/en/1.8.6" +license=('MIT') +makedepends=('python2-setuptools' 'python-setuptools') +source=("https://pypi.python.org/packages/source/o/openpyxl/openpyxl-${pkgver}.tar.gz" + "LICENCE") +md5sums=('a610d32ca5460eb78df4eb83c896ba34' + 'd5feddd06c61a04aea40b7aa1707e625') + +build() { + cd "$srcdir" + cp -a openpyxl-${pkgver} openpyxl-py2-${pkgver} + + msg "Building Python2" + cd "$srcdir"/openpyxl-py2-${pkgver} + python2 setup.py build + + msg "Building Python3" + cd "$srcdir"/openpyxl-${pkgver} + python setup.py build +} + +package_python2-openpyxl1() { + depends=('python2') + optdepends=('python2-pillow: needed to include images') + + cd "$srcdir"/openpyxl-py2-${pkgver} + + python2 setup.py install --skip-build --root="$pkgdir" --optimize=1 + + sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find "${pkgdir}" -name '*.py') + + install -Dm644 "$srcdir"/LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE +} + +package_python-openpyxl1() { + depends=('python') + optdepends=('python-pillow: needed to include images') + + cd "$srcdir"/openpyxl-${pkgver} + + python setup.py install --skip-build --root="$pkgdir" --optimize=1 + + install -Dm644 "$srcdir"/LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE +} + Property changes on: python-openpyxl1/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
