python-yaml: fix pycompile_module

This commit is contained in:
Alessio Sergi 2015-07-02 11:11:11 +02:00
parent 7dae2d0a2a
commit 9a7da231de

View File

@ -1,26 +1,25 @@
# Template file for 'python-yaml' # Template file for 'python-yaml'
pkgname=python-yaml pkgname=python-yaml
version=3.11 version=3.11
revision=1 revision=2
wrksrc="PyYAML-${version}" wrksrc="PyYAML-${version}"
build_style=python-module build_style=python-module
python_versions="2.7 3.4" python_versions="2.7 3.4"
pycompile_module="pyyaml" pycompile_module="yaml"
replaces="pyyaml>=0"
hostmakedepends="python-setuptools python3.4-setuptools" hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="libyaml-devel python-devel python3.4-devel" makedepends="libyaml-devel python-devel python3.4-devel"
short_desc="YAML parser and emitter for Python2" short_desc="YAML parser and emitter for Python2"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://pyyaml.org/wiki/PyYAML" homepage="http://pyyaml.org/wiki/PyYAML"
license="MIT" license="MIT"
distfiles="http://pyyaml.org/download/pyyaml/PyYAML-${version}.tar.gz" distfiles="${PYPI_SITE}/P/PyYAML/PyYAML-${version}.tar.gz"
checksum=c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8 checksum=c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8
python3.4-yaml_package() { python3.4-yaml_package() {
pycompile_version="3.4" pycompile_version="3.4"
pycompile_module="pyyaml" pycompile_module="yaml"
short_desc="${short_desc/Python2/Python3.4}" short_desc="${short_desc/Python2/Python3.4}"
pkg_install() { pkg_install() {
vmove /usr/lib/python3.4 vmove usr/lib/python3.4
} }
} }