Ticket #31422: py-pygments.diff
File py-pygments.diff, 3.3 KB (added by jmroot (Joshua Root), 13 years ago) |
---|
-
Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 PortGroup python 321.04 PortGroup python 1.0 5 5 6 name py 32-pygments6 name py-pygments 7 7 version 1.4 8 revision 1 8 9 license BSD 9 10 categories-append devel 10 maintainers singingwolfboy openmaintainer11 maintainers erickt singingwolfboy openmaintainer 11 12 description Python syntax highlighter 12 13 long_description \ 13 14 Pygments is a fast syntax highlighter written in Python with a \ … … 18 19 platforms darwin 19 20 supported_archs noarch 20 21 21 homepage http://pygments.org 22 homepage http://pygments.org/ 22 23 master_sites http://pypi.python.org/packages/source/P/Pygments 23 24 distname Pygments-${version} 24 25 25 depends_lib port:py32-distribute26 27 26 checksums md5 d77ac8c93a7fb27545f2522abe9cc462 \ 28 27 sha1 d34f96421a86004aa5d26ecf975edefd09f948b1 \ 29 28 rmd160 52775927f5e1b61c4203ae21fa9347c376f59287 30 29 31 post-destroot { 32 ln -sf ${python.prefix}/bin/pygmentize \ 33 ${destroot}${prefix}/bin/pygmentize-${python.branch} 30 python.versions 24 25 26 27 31 32 34 31 35 set docdir ${prefix}/share/doc/${name} 36 xinstall -d ${destroot}${docdir} 37 xinstall -m 644 -W ${worksrcpath} AUTHORS CHANGES LICENSE TODO \ 38 ${destroot}${docdir} 39 copy ${worksrcpath}/docs/build ${destroot}${docdir}/html 32 if {$subport != $name} { 33 depends_lib port:py${python.version}-distribute 40 34 41 set man1 ${python.prefix}/share/man/man1 42 xinstall -d ${destroot}${man1} 43 xinstall -m 644 ${worksrcpath}/docs/pygmentize.1 ${destroot}${man1} 44 ln -sf ${man1}/pygmentize.1 \ 45 ${destroot}${prefix}/share/man/man1/pygmentize-${python.branch}.1 35 post-destroot { 36 if {${python.version} >= 26} { 37 ln -sf ${python.prefix}/bin/pygmentize \ 38 ${destroot}${prefix}/bin/pygmentize-${python.branch} 39 } else { 40 move ${destroot}${prefix}/bin/pygmentize \ 41 ${destroot}${prefix}/bin/pygmentize-${python.branch} 42 } 43 44 set docdir ${prefix}/share/doc/${subport} 45 xinstall -d ${destroot}${docdir} 46 xinstall -m 644 -W ${worksrcpath} AUTHORS CHANGES LICENSE TODO \ 47 ${destroot}${docdir} 48 copy ${worksrcpath}/docs/build ${destroot}${docdir}/html 49 50 if {${python.version} >= 26} { 51 set man1 ${python.prefix}/share/man/man1 52 xinstall -d ${destroot}${man1} 53 xinstall -m 644 ${worksrcpath}/docs/pygmentize.1 ${destroot}${man1} 54 ln -sf ${man1}/pygmentize.1 \ 55 ${destroot}${prefix}/share/man/man1/pygmentize-${python.branch}.1 56 } else { 57 xinstall -m 644 ${worksrcpath}/docs/pygmentize.1 \ 58 ${destroot}${prefix}/share/man/man1/pygmentize-${python.branch}.1 59 } 60 } 61 livecheck.type none 62 } else { 63 livecheck.type regex 64 livecheck.url ${master_sites} 65 livecheck.regex {Pygments-(\d+(?:\.\d+)*)} 46 66 } 47 48 livecheck.type regex49 livecheck.url ${master_sites}50 livecheck.regex {Pygments-(\d+(?:\.\d+)*)}