python-Markdown: update to 2.4.1
Switch to setuptools. Add python3.4 subpkg. Add pycompile support for the 3.4 subpkg.
This commit is contained in:
parent
16d6e31410
commit
95ed3f302f
@ -1,27 +1,41 @@
|
|||||||
# Template file for 'python-Markdown'
|
# Template file for 'python-Markdown'
|
||||||
pkgname=python-Markdown
|
pkgname=python-Markdown
|
||||||
version=2.2.1
|
version=2.4.1
|
||||||
revision=2
|
revision=1
|
||||||
wrksrc="Markdown-${version}"
|
wrksrc="Markdown-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python-distribute python3-distribute"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
makedepends="python-devel python3-devel"
|
makedepends="python-devel python3.4-devel"
|
||||||
noarch="yes"
|
|
||||||
python_versions="2.7 3.3"
|
|
||||||
pycompile_module="markdown"
|
|
||||||
depends="python>=2.7"
|
depends="python>=2.7"
|
||||||
|
noarch="yes"
|
||||||
|
python_versions="2.7 3.4"
|
||||||
|
pycompile_module="markdown"
|
||||||
short_desc="Python2 implementation of John Gruber's Markdown"
|
short_desc="Python2 implementation of John Gruber's Markdown"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://pypi.python.org/pypi/Markdown"
|
homepage="http://pypi.python.org/pypi/Markdown"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
distfiles="http://pypi.python.org/packages/source/M/Markdown/Markdown-${version}.tar.gz"
|
distfiles="http://pypi.python.org/packages/source/M/Markdown/Markdown-${version}.tar.gz"
|
||||||
checksum=f8b9a1efceab71afe9336a7c456fde36bfb0f505fb664ebb7f3dd44eddab44b6
|
checksum=812ec5249f45edc31330b7fb06e52aaf6ab2d83aa27047df7cb6837ef2d269b6
|
||||||
|
|
||||||
python3-Markdown_package() {
|
pre_install() {
|
||||||
noarch=yes
|
mv build-3.4/scripts-3.4/markdown_py{,3}
|
||||||
depends="python3"
|
}
|
||||||
short_desc="${short_desc//Python2/Python3}"
|
|
||||||
|
post_install() {
|
||||||
|
rm -f ${DESTDIR}/usr/bin/markdown_py
|
||||||
|
vinstall build-2.7/scripts-2.7/markdown_py 755 usr/bin
|
||||||
|
vinstall LICENSE.md 644 usr/share/licenses/${pkgname} LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
|
python3.4-Markdown_package() {
|
||||||
|
noarch="yes"
|
||||||
|
depends="python3.4"
|
||||||
|
pycompile_version="3.4"
|
||||||
|
pycompile_module="markdown"
|
||||||
|
short_desc="${short_desc//Python2/Python3.4}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove /usr/lib/python3.3
|
vmove /usr/bin/markdown_py3
|
||||||
|
vmove /usr/lib/python3.4
|
||||||
|
vinstall ${wrksrc}/LICENSE.md 644 usr/share/licenses/${pkgname} LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user