python-pytz: update to 2014.4

Switch to setuptools.
Add python3.4 subpkg with pycompile support.
This commit is contained in:
Alessio Sergi 2014-06-29 12:06:45 +02:00
parent 2bdf185c39
commit 122ade51a0
2 changed files with 32 additions and 10 deletions

View file

@ -1,17 +1,38 @@
# Template file for 'python-pytz' # Template file for 'python-pytz'
pkgname=python-pytz pkgname=python-pytz
version=2014.2 version=2014.4
revision=1 revision=1
noarch=yes
wrksrc="pytz-${version}" wrksrc="pytz-${version}"
build_style=python-module build_style=python-module
hostmakedepends="python-distribute" python_versions="2.7 3.4"
makedepends="python-devel" hostmakedepends="python-setuptools python3.4-setuptools"
noarch="yes" makedepends="python-devel python3.4-devel"
pycompile_module="pytz"
depends="python>=2.7" depends="python>=2.7"
short_desc="Python timezone library" pycompile_module="pytz"
short_desc="Python2 timezone library"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://pypi.python.org/pypi/pytz" homepage="https://pypi.python.org/pypi/pytz/"
license="BSD" license="MIT"
distfiles="http://pypi.python.org/packages/source/p/pytz/pytz-${version}.tar.gz" distfiles="https://pypi.python.org/packages/source/p/pytz/pytz-${version}.tar.gz"
checksum=146af58281ec444f7427b1a2bb08f948490563777e78eef38fa20d44b10889ae checksum=fddc081b9aead4d4ec09685c6e9ed6c7d3f5cace1ff7d39c76ba770f2c8d1049
pre_install() {
sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/pytz/tzfile.py
}
post_install() {
vinstall LICENSE.txt 644 usr/share/licenses/${pkgname} LICENSE
}
python3.4-pytz_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="pytz"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove /usr/lib/python3.4
vinstall ${wrksrc}/LICENSE.txt 644 usr/share/licenses/${pkgname} LICENSE
}
}

1
srcpkgs/python3.4-pytz Symbolic link
View file

@ -0,0 +1 @@
python-pytz