forked from ports/contrib
21 lines
690 B
Plaintext
21 lines
690 B
Plaintext
# Description: Python implementation of markdown
|
|
# URL: http://www.freewisdom.org/projects/python-markdown/
|
|
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
|
# Packager: Lucas Hazel, lucas at die dot net dot au
|
|
# Depends on: setuptools
|
|
|
|
name=python-markdown
|
|
version=2.0
|
|
release=1
|
|
source=(http://pypi.python.org/packages/source/M/Markdown/Markdown-$version.tar.gz)
|
|
|
|
build() {
|
|
cd Markdown-$version
|
|
python setup.py install --root=$PKG
|
|
# having markdown.py in /usr/bin results in a cycled markdown loading
|
|
# in some cases
|
|
mv $PKG/usr/bin/markdown.py $PKG/usr/bin/markdown-cli.py
|
|
ln -s /usr/bin/markdown-cli.py $PKG/usr/bin/markdown
|
|
find $PKG -name '*egg-info' | xargs rm -rf
|
|
}
|