Ticket #31421: py-docutils.diff
File py-docutils.diff, 2.1 KB (added by jmroot (Joshua Root), 13 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup python 271.05 PortGroup python 1.0 6 6 7 name py 27-docutils7 name py-docutils 8 8 version 0.8.1 9 9 categories-append textproc 10 10 license GPL-3+ PSF-2.1.1 BSD 11 maintainers jmr openmaintainer11 maintainers jmr alexnicksay.com:alex openmaintainer 12 12 description A set of tools for processing plaintext documentation 13 13 long_description Docutils is a set of tools for processing plaintext \ 14 14 documentation into useful formats, such as HTML, XML, \ … … 26 26 sha1 5c23bf94b46d5ad786dd6f278233d1f16c3047e8 \ 27 27 rmd160 372abf9f47af11f0e63ae11f35f7db450097d960 28 28 29 depends_lib port:py27-roman 29 python.versions 24 25 26 27 30 30 31 # we want *-2.7.py not *.py-2.7 32 python.link_binaries no 33 post-destroot { 34 foreach f {rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xml rstpep2html} { 35 ln -s ${python.prefix}/bin/${f}.py ${destroot}${prefix}/bin/${f}-2.7.py 31 if {$subport != $name} { 32 depends_lib port:py${python.version}-roman 33 34 # we want e.g. *-2.7.py not *.py-2.7 35 python.link_binaries no 36 post-destroot { 37 foreach f {rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xml rstpep2html rst2xetex} { 38 if {${python.version} >= 26} { 39 ln -s ${python.prefix}/bin/${f}.py ${destroot}${prefix}/bin/${f}-${python.branch}.py 40 } else { 41 move ${destroot}${prefix}/bin/${f}.py ${destroot}${prefix}/bin/${f}-${python.branch}.py 42 } 43 } 36 44 } 45 livecheck.type none 46 } else { 47 livecheck.url http://sourceforge.net/api/file/index/project-id/38414/rss 48 livecheck.regex {docutils/([0-9.]+)} 37 49 } 38 39 livecheck.url http://sourceforge.net/api/file/index/project-id/38414/rss40 livecheck.regex {docutils/([0-9.]+)}