Permalink
Browse files
py-pydicom: Update to 1.0.1; Add compat port
The library name itself (within python) changed from dicom to pydiom to match the package. Added new (old library naming) py-dicom package as a compatibility option. (In keeping with PyPi.)
- Loading branch information
Showing
with
68 additions
and 24 deletions.
- +53 −0 python/py-dicom/Portfile
- +15 −24 python/py-pydicom/Portfile
| @@ -0,0 +1,53 @@ | ||
| # -*- 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 pydicom pydicom 0.9.9.post1 v | ||
| name py-dicom | ||
| python.versions 27 | ||
| platforms darwin | ||
| license MIT BSD | ||
| maintainers eborisch \ | ||
| openmaintainer | ||
| supported_archs noarch | ||
|
|
||
| description Python Module for working with DICOM files | ||
|
|
||
| long_description pydicom is a pure python package for working with DICOM \ | ||
| files. It was made for inspecting and modifying DICOM \ | ||
| files in an easy pythonic way. The modifications can be \ | ||
| written again to a new file. As a pure python package, it \ | ||
| should run anywhere python runs without any other \ | ||
| requirements. | ||
|
|
||
| checksums \ | ||
| rmd160 dfcbce2681e92b0da9c29973d6e08a6c3a2effc0 \ | ||
| sha256 2d7f1460c61a8cd85c59096dfe7aa1a292a4d33298e446e6015d32c9ba9ad845 | ||
|
|
||
| if {${name} ne ${subport}} { | ||
| depends_lib-append port:py${python.version}-numpy | ||
| depends_build-append port:py${python.version}-sphinx | ||
|
|
||
| worksrcdir ${distname}/source | ||
|
|
||
| post-extract { | ||
| reinplace s/sphinx-build/sphinx-build-${python.branch}/ \ | ||
| ../docs/Makefile | ||
| } | ||
|
|
||
| post-build { | ||
| system -W ${worksrcpath}/../docs/ \ | ||
| "make html" | ||
| } | ||
|
|
||
| post-destroot { | ||
| set DOCDIR ${destroot}${prefix}/share/doc/${subport} | ||
| xinstall -d ${DOCDIR} | ||
| file copy ${worksrcpath}/dicom/license.txt ${DOCDIR} | ||
| file copy ${worksrcpath}/../docs/release-notes.txt ${DOCDIR} | ||
| file copy ${worksrcpath}/../docs/_build/html ${DOCDIR} | ||
| } | ||
|
|
||
| notes "Port exists for compatibility. Ongoing development in pyNN-pydicom." | ||
| } |