2010-11-27 23:50:22 +01:00
|
|
|
# Template file for 'python-MarkupSafe'
|
|
|
|
pkgname=python-MarkupSafe
|
2014-06-06 09:26:26 +02:00
|
|
|
version=0.23
|
2014-06-18 12:44:20 +02:00
|
|
|
revision=4
|
2010-11-27 23:50:22 +01:00
|
|
|
wrksrc="MarkupSafe-${version}"
|
|
|
|
build_style=python-module
|
2014-06-18 10:18:43 +02:00
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
makedepends="python-devel python3.4-devel"
|
2014-06-06 09:26:26 +02:00
|
|
|
depends="python>=2.7"
|
2014-06-18 10:18:43 +02:00
|
|
|
python_versions="2.7 3.4"
|
2014-01-01 16:10:11 +01:00
|
|
|
pycompile_module="markupsafe"
|
2014-06-06 09:26:26 +02:00
|
|
|
short_desc="Implements a XML/HTML/XHTML Markup safe string for Python2"
|
2010-11-27 23:50:22 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-02-21 19:11:40 +01:00
|
|
|
homepage="http://pypi.python.org/pypi/MarkupSafe"
|
|
|
|
license="MIT"
|
|
|
|
distfiles="http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-${version}.tar.gz"
|
2014-06-06 09:26:26 +02:00
|
|
|
checksum=a4ec1aff59b95a14b45eb2e23761a0179e98319da5a7eb76b56ea8cdc7b871c3
|
|
|
|
|
2014-06-18 12:44:20 +02:00
|
|
|
post_install() {
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|
|
|
|
|
2014-06-18 10:18:43 +02:00
|
|
|
python3.4-MarkupSafe_package() {
|
|
|
|
depends="python3.4"
|
2014-06-18 11:59:06 +02:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="markupsafe"
|
2014-06-18 10:18:43 +02:00
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
2014-06-06 09:26:26 +02:00
|
|
|
pkg_install() {
|
2014-06-18 10:18:43 +02:00
|
|
|
vmove /usr/lib/python3.4
|
2014-06-18 12:44:20 +02:00
|
|
|
vinstall ${wrksrc}/LICENSE 644 usr/share/licenses/${pkgname}
|
2014-06-06 09:26:26 +02:00
|
|
|
}
|
|
|
|
}
|