2013-03-06 09:30:21 +01:00
|
|
|
# Template file for 'python-Markdown'
|
|
|
|
pkgname=python-Markdown
|
2014-06-18 12:12:44 +02:00
|
|
|
version=2.4.1
|
|
|
|
revision=1
|
2013-03-06 09:30:21 +01:00
|
|
|
wrksrc="Markdown-${version}"
|
|
|
|
build_style=python-module
|
2014-06-18 12:12:44 +02:00
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
makedepends="python-devel python3.4-devel"
|
|
|
|
depends="python>=2.7"
|
2014-01-01 16:10:11 +01:00
|
|
|
noarch="yes"
|
2014-06-18 12:12:44 +02:00
|
|
|
python_versions="2.7 3.4"
|
2014-01-01 16:10:11 +01:00
|
|
|
pycompile_module="markdown"
|
2014-05-02 09:15:44 +02:00
|
|
|
short_desc="Python2 implementation of John Gruber's Markdown"
|
2013-03-06 09:30:21 +01:00
|
|
|
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"
|
2014-06-18 12:12:44 +02:00
|
|
|
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
|
|
|
|
}
|
2014-05-02 09:15:44 +02:00
|
|
|
|
2014-06-18 12:12:44 +02:00
|
|
|
python3.4-Markdown_package() {
|
|
|
|
noarch="yes"
|
|
|
|
depends="python3.4"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="markdown"
|
|
|
|
short_desc="${short_desc//Python2/Python3.4}"
|
2014-05-02 09:15:44 +02:00
|
|
|
pkg_install() {
|
2014-06-18 12:12:44 +02:00
|
|
|
vmove /usr/bin/markdown_py3
|
|
|
|
vmove /usr/lib/python3.4
|
|
|
|
vinstall ${wrksrc}/LICENSE.md 644 usr/share/licenses/${pkgname} LICENSE
|
2014-05-02 09:15:44 +02:00
|
|
|
}
|
|
|
|
}
|