python-rencode: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-17 09:54:17 +02:00
parent e9220173c7
commit c348f2ba68
2 changed files with 13 additions and 8 deletions

View file

@ -1,12 +1,11 @@
# Template file for 'python-rencode'
pkgname=python-rencode
version=1.0.5
revision=1
revision=2
wrksrc="rencode-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools python-Cython python3.4-Cython"
makedepends="python-devel python3.4-devel"
hostmakedepends="python-setuptools python3-setuptools python-Cython python3-Cython"
makedepends="python-devel python3-devel"
pycompile_module="rencode"
short_desc="Python2 module for fast (basic) object serialization"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
@ -15,11 +14,16 @@ homepage="https://github.com/aresch/rencode"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=cbdb8d2473aa5a7246e1a8077055be697fccec88477b78248c5fe93d79e2cd26
python3.4-rencode_package() {
pycompile_version="3.4"
python3-rencode_package() {
pycompile_module="rencode"
short_desc="${short_desc/Python2/Python3.4}"
replaces="python3.4-rencode>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3.4
vmove usr/lib/python3*
}
}
python3.4-rencode_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-rencode>=${version}_${revision}"
}

1
srcpkgs/python3-rencode Symbolic link
View file

@ -0,0 +1 @@
python-rencode