You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
f8bfbcd23f
- make use of python.rootname, default PyPI livecheck - enable tests - update homepage - install files in post-destroot
49 lines
1.9 KiB
Tcl
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
|
|
}
|