95ed3f302f
Switch to setuptools. Add python3.4 subpkg. Add pycompile support for the 3.4 subpkg.
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
# Template file for 'python-Markdown'
|
|
pkgname=python-Markdown
|
|
version=2.4.1
|
|
revision=1
|
|
wrksrc="Markdown-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
makedepends="python-devel python3.4-devel"
|
|
depends="python>=2.7"
|
|
noarch="yes"
|
|
python_versions="2.7 3.4"
|
|
pycompile_module="markdown"
|
|
short_desc="Python2 implementation of John Gruber's Markdown"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://pypi.python.org/pypi/Markdown"
|
|
license="BSD"
|
|
distfiles="http://pypi.python.org/packages/source/M/Markdown/Markdown-${version}.tar.gz"
|
|
checksum=812ec5249f45edc31330b7fb06e52aaf6ab2d83aa27047df7cb6837ef2d269b6
|
|
|
|
pre_install() {
|
|
mv build-3.4/scripts-3.4/markdown_py{,3}
|
|
}
|
|
|
|
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() {
|
|
vmove /usr/bin/markdown_py3
|
|
vmove /usr/lib/python3.4
|
|
vinstall ${wrksrc}/LICENSE.md 644 usr/share/licenses/${pkgname} LICENSE
|
|
}
|
|
}
|