[arch-commits] Commit in (5 files)

Andrzej Giniewicz aginiewicz at archlinux.org
Wed Dec 3 11:44:05 UTC 2014


    Date: Wednesday, December 3, 2014 @ 12:44:04
  Author: aginiewicz
Revision: 123391

moving python-jdcal from AUR as a new dependency of python-openpyxl>=2.0

Added:
  python-jdcal/
  python-jdcal/repos/
  python-jdcal/trunk/
  python-jdcal/trunk/LICENSE
  python-jdcal/trunk/PKGBUILD

----------+
 LICENSE  |   23 +++++++++++++++++++++++
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

Added: python-jdcal/trunk/LICENSE
===================================================================
--- python-jdcal/trunk/LICENSE	                        (rev 0)
+++ python-jdcal/trunk/LICENSE	2014-12-03 11:44:04 UTC (rev 123391)
@@ -0,0 +1,23 @@
+Copyright (c) 2011, Prasanth Nair
+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 THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 SHALL THE COPYRIGHT HOLDER 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.

Added: python-jdcal/trunk/PKGBUILD
===================================================================
--- python-jdcal/trunk/PKGBUILD	                        (rev 0)
+++ python-jdcal/trunk/PKGBUILD	2014-12-03 11:44:04 UTC (rev 123391)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Mariusz Szczepańczyk <mszczepanczyk at gmail.com>
+
+pkgbase=python-jdcal
+pkgname=('python2-jdcal' 'python-jdcal')
+pkgver=1.0
+pkgrel=0
+pkgdesc="Julian dates, from proleptic Gregorian and Julian calendars"
+arch=('any')
+url="https://github.com/phn/jdcal"
+license=('BSD')
+makedepends=('python2-setuptools' 'python-setuptools')
+source=("http://pypi.python.org/packages/source/j/jdcal/jdcal-${pkgver}.tar.gz"
+        "LICENSE")
+md5sums=('ae4a28210426f575232cb5a48d478d08'
+         'a933325008e394f91f4dfab09a4929fd')
+
+build() {
+  cd "$srcdir"
+  cp -a jdcal-${pkgver} jdcal-py2-${pkgver}
+
+  msg "Building Python2"
+  cd "$srcdir"/jdcal-py2-${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/jdcal-${pkgver}
+  python setup.py build
+}
+
+package_python2-jdcal() {
+  depends=('python2')
+
+  cd "$srcdir"/jdcal-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-jdcal() {
+  depends=('python')
+
+  cd "$srcdir"/jdcal-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+


Property changes on: python-jdcal/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list