# $Id$ PortSystem 1.0 PortGroup python 1.0 PortGroup github 1.0 name py-pyxb version 1.2.4 revision 1 categories-append devel textproc maintainers nomaintainer platforms darwin license Apache-2 supported_archs noarch description PyXB: Python XML Schema Bindings long_description \ PyXB is a pure Python package that generates Python code for classes that \ correspond to data structures defined by XMLSchema. In concept it is \ similar to JAXB for Java and CodeSynthesis XSD for C++. github.setup pabigot pyxb ${version} PyXB- github.tarball_from releases homepage https://github.com/pabigot/pyxb distname PyXB-${version} distfiles ${distname}.tar.gz master_sites ${homepage}/archive/ worksrcdir pyxb-PyXB-${version} checksums md5 1ccdfe7043eb6c6c6be98b2727b77ed5 \ sha1 ad451745950d84d4920a2c8e7b0a67a41f5ce578 \ rmd160 110c72628051791b98a41db95d1bd172cf2bec80 python.versions 27 34 if {$subport ne $name} { depends_lib-append port:py${python.version}-six test.run yes test.cmd ${python.bin} -u setup.py post-destroot { set docdir ${prefix}/share/doc/${subport} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} LICENSE NOTICE README.txt ${destroot}${docdir} copy ${worksrcpath}/doc ${destroot}${docdir} set examplesdir ${prefix}/share/examples/${subport} xinstall -d [file dirname ${destroot}${examplesdir}] copy ${worksrcpath}/examples ${destroot}${examplesdir} } livecheck.type none } else { livecheck.type regex livecheck.url ${homepage}/releases livecheck.regex {PyXB-(\d+(?:\.\d+)*)} }