You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
66 lines
2.1 KiB
Tcl
66 lines
2.1 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
|
|
|
|
name py-cog
|
|
python.rootname cogapp
|
|
version 3.0.0
|
|
revision 0
|
|
platforms darwin
|
|
supported_archs noarch
|
|
license MIT
|
|
maintainers nomaintainer
|
|
|
|
description Cog is a code generation tool. It lets you use pieces of Python \
|
|
code as generators in your source files to generate whatever code \
|
|
you need.
|
|
long_description ${description}
|
|
|
|
homepage https://nedbatchelder.com/code/cog/
|
|
master_sites pypi:c/${python.rootname}
|
|
|
|
distname ${python.rootname}-${version}
|
|
|
|
checksums rmd160 705f49591837155f5f29d42e7780cbb09f836509 \
|
|
sha256 5e5da2bcfc4e4750c66cecb80ea4eaed1ef4fddd3787c989d4f5bfffb1152d6a \
|
|
size 24638
|
|
|
|
python.versions 27 35 36 37 38
|
|
|
|
if {${name} ne ${subport}} {
|
|
if {${python.version} eq 27} {
|
|
version 2.5.1
|
|
revision 0
|
|
distname ${python.rootname}-${version}
|
|
checksums rmd160 253834c2612eca68ac38d5618716768360e830dd \
|
|
sha256 f8cf2288fb5a2087eb4a00d8b347ddc86e9058d4ab26b8c868433eb401adfe1c \
|
|
size 22226
|
|
}
|
|
|
|
depends_lib-append \
|
|
port:py${python.version}-setuptools
|
|
|
|
depends_lib-append \
|
|
port:py${python.version}-pytest
|
|
|
|
test.run yes
|
|
test.cmd py.test-${python.branch}
|
|
test.target
|
|
test.env PYTHONPATH=${worksrcpath}/build/lib
|
|
|
|
post-destroot {
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
xinstall -d ${destroot}${docdir}
|
|
if {${python.version} eq 27} {
|
|
xinstall -m 0644 -W ${worksrcpath} README.txt LICENSE.txt \
|
|
${destroot}${docdir}
|
|
} else {
|
|
xinstall -m 0644 -W ${worksrcpath} README.rst LICENSE.txt \
|
|
${destroot}${docdir}
|
|
}
|
|
}
|
|
|
|
livecheck.type none
|
|
}
|