You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
49 lines
1.7 KiB
Tcl
49 lines
1.7 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup python 1.0
|
|
PortGroup github 1.0
|
|
|
|
github.setup trentm python-markdown2 2.5.4
|
|
# Change github.tarball_from to 'releases' or 'archive' next update
|
|
github.tarball_from tarball
|
|
revision 0
|
|
name py-markdown2
|
|
|
|
categories-append textproc
|
|
supported_archs noarch
|
|
platforms {darwin any}
|
|
license MIT
|
|
maintainers nomaintainer
|
|
|
|
description A fast and complete implementation of Markdown in Python
|
|
long_description {*}${description}. Markdown2 comes with a number of extensions \
|
|
for things like syntax coloring, tables, header-ids.
|
|
|
|
checksums rmd160 c202d2cba2519905843c4d3afd7cfeaeabe5a3db \
|
|
sha256 04cfc434e3de866416e1da45f970956014fdfb73dc6318a820ea04ce238e3b55 \
|
|
size 1113002
|
|
|
|
python.versions 310 311 312 313 314
|
|
|
|
if {${name} ne ${subport}} {
|
|
# Required for code highlighting and tests to pass
|
|
# See https://github.com/trentm/python-markdown2/issues/388#issuecomment-769236400
|
|
depends_run-append \
|
|
port:py${python.version}-pygments
|
|
|
|
post-destroot {
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
xinstall -d ${destroot}${docdir}
|
|
xinstall -m 0644 -W ${worksrcpath} TODO.txt README.md \
|
|
LICENSE.txt CONTRIBUTORS.txt CHANGES.md \
|
|
${destroot}${docdir}
|
|
}
|
|
|
|
test.run yes
|
|
python.test_framework
|
|
test.dir ${build.dir}/test
|
|
test.cmd ${python.bin}
|
|
test.args test.py -- -knownfailure
|
|
}
|