source: trunk/dports/python/py-pygments/Portfile

Last change on this file was 146286, checked in by stromnov@…, 17 months ago

py-pygments: update to version 2.1.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
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# $Id: Portfile 146286 2016-03-03 11:28:31Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-pygments
8version             2.1.3
9categories-append   devel
10platforms           darwin
11license             BSD
12supported_archs     noarch
13
14python.versions     26 27 33 34 35
15
16maintainers         stromnov openmaintainer
17
18description         Python syntax highlighter
19
20long_description \
21    Pygments is a fast syntax highlighter written in Python with a \
22    special focus on details. Can highlight source code in many supported \
23    languages: Python, Ruby, PHP, HTML etc. Outputs arbitrarily-styled \
24    HTML or LaTeX, comes with many builtin styles.
25
26homepage            http://pygments.org/
27master_sites        pypi:P/Pygments
28
29distname            Pygments-${version}
30
31checksums           rmd160  164f2442fa402b7c9d34bfc39cca3f1f4e13b984 \
32                    sha256  88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81
33
34if {${name} ne ${subport}} {
35    depends_lib-append  port:py${python.version}-setuptools
36
37    post-destroot {
38        set docdir ${prefix}/share/doc/${subport}
39        xinstall -d ${destroot}${docdir}
40        xinstall -m 644 -W ${worksrcpath} AUTHORS CHANGES LICENSE TODO \
41            ${destroot}${docdir}
42        set man1 ${python.prefix}/share/man/man1
43        xinstall -d ${destroot}${man1}
44        xinstall -m 644 ${worksrcpath}/doc/pygmentize.1 ${destroot}${man1}
45        ln -sf ${man1}/pygmentize.1 \
46            ${destroot}${prefix}/share/man/man1/pygmentize-${python.branch}.1
47    }
48
49    livecheck.type      none
50} else {
51    livecheck.name      Pygments
52    livecheck.type      pypi
53}
Note: See TracBrowser for help on using the repository browser.