Files
reneeotten f8bfbcd23f py-cjson: update to 1.2.1
- make use of python.rootname, default PyPI livecheck
- enable tests
- update homepage
- install files in post-destroot
2019-02-20 10:29:19 -07:00

49 lines
1.9 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-cjson
python.rootname python-cjson
version 1.2.1
revision 0
platforms darwin
license LGPL
maintainers nomaintainer
description Fast JSON encoder/decoder for Python
long_description This module implements a very fast JSON \
encoder/decoder for Python. The module is written \
in C and it is up to 250 times faster when \
compared to the other python JSON implementations \
which are written directly in python. This speed \
gain varies with the complexity of the data and \
the operation and is the the range of 10-200 times \
for encoding operations and in the range of \
100-250 times for decoding operations.
homepage https://github.com/AGProjects/python-cjson
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
distname ${python.rootname}-${version}
checksums rmd160 867ddc7312685999e966128893c2eeb11fa01f0a \
sha256 52db2745264624768bfd9b604acb38f631bde5c2ec9b23861677d747e4558626 \
size 12575
python.versions 27
if {${name} ne ${subport}} {
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} README LICENSE ChangeLog ${destroot}${docdir}
}
pre-test {
test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
}
test.run yes
test.cmd ${python.bin} jsontest.py
test.target
livecheck.type none
}