Ticket #52622: patch-Portfile.diff
File patch-Portfile.diff, 3.1 KB (added by slewsys (Andrew L. Moore), 8 years ago) |
---|
-
Portfile
1 1 # -*- 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 2 2 # $Id$ 3 3 4 PortSystem 1.0 5 PortGroup python 1.0 4 PortSystem 1.0 5 PortGroup python 1.0 6 PortGroup select 1.0 6 7 7 8 name py-docutils 8 version 0.1 29 version 0.13 9 10 categories-append textproc 10 11 license GPL-3+ PSF-2.1.1 BSD 11 12 maintainers jmr alexnicksay.com:alex openmaintainer … … 20 21 21 22 homepage http://docutils.sourceforge.net/ 22 23 master_sites sourceforge:project/docutils/docutils/${version}/ 23 distname docutils-${version} 24 fetch.type svn 25 svn.url https://svn.code.sf.net/p/docutils/code/trunk/docutils 26 svn.revision 7973 24 27 25 checksums md5 4622263b62c5c771c03502afa3157768 \26 sha1 002450621b33c5690060345b0aac25bc2426d675 \27 rmd160 1eb12ed88a334a154c8548f404ea82c7a65fa9ba28 29 28 python.versions 26 27 33 34 35 30 29 30 select.group docutils 31 select.file ${name} 32 33 worksrcdir docutils 34 31 35 if {$subport ne $name} { 32 36 depends_lib port:py${python.version}-roman 33 37 34 38 # we want e.g. *-2.7.py not *.py-2.7 35 39 python.link_binaries no 40 41 42 notes " 43 To make ${subport} the default, please run: 44 45 sudo port select --set ${select.group} ${subport} 46 47 To generate HTML documentation, run: 48 49 cd ${prefix}/share/doc/${subport} && sudo buildhtml 50 " 51 36 52 post-destroot { 37 foreach f {rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xml rstpep2html rst2xetex} { 38 ln -s ${python.prefix}/bin/${f}.py ${destroot}${prefix}/bin/${f}-${python.branch}.py 53 54 # Install `buildhtml.py' to generate HTML documentation from 55 # ReST files in a directory. 56 copy ${worksrcpath}/tools/buildhtml.py ${destroot}${python.prefix}/bin/ 57 58 xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${subport} 59 foreach f [glob ${worksrcpath}/docs/*] { 60 copy ${f} ${destroot}${prefix}/share/doc/${subport}/ 39 61 } 62 63 foreach f {buildhtml rst2html rst2html5 rst2latex rst2man 64 rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xml 65 rstpep2html rst2xetex} { 66 ln -s ${python.prefix}/bin/${f}.py \ 67 ${destroot}${prefix}/bin/${f}-${python.branch}.py 68 } 69 70 # Manually install select/${subport} and base... 71 copy ${filespath}/${name} \ 72 ${destroot}${prefix}/etc/select/${select.group}/base 73 move ${destroot}${prefix}/etc/select/${select.group}/${name} \ 74 ${destroot}${prefix}/etc/select/${select.group}/${subport} 75 reinplace "s|$|-${python.branch}.py|" \ 76 ${destroot}${prefix}/etc/select/${select.group}/${subport} 40 77 } 78 41 79 livecheck.type none 42 80 } else { 43 81 livecheck.url http://sourceforge.net/api/file/index/project-id/38414/rss