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

Last change on this file was 153851, checked in by mf2k@…, 13 months ago

py-beautifulsoup py-beautifulsoup4 py-flup py-html5lib py-pybtex py-pyrex py-soaplib py-vobject py-yaml: Ports abandoned. (#52195)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 153851 2016-10-13 16:31:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-yaml
8license             MIT
9version             3.11
10categories-append   devel
11platforms           darwin
12maintainers         nomaintainer
13
14description         YAML 1.1 parser and emitter for Python
15long_description    PyYAML is a YAML parser and emitter for Python, which \
16                    supports YAML 1.1, unicode input and output, low-level \
17                    event-based parser and emitter API, high-level API for \
18                    serializing and deserializing native Python objects.
19
20homepage            http://pyyaml.org/wiki/PyYAML
21master_sites        http://pyyaml.org/download/pyyaml/
22
23distname            PyYAML-${version}
24
25checksums           rmd160  9515e7573c7e021190198b242a415f2b55d50938 \
26                    sha256  c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8
27
28python.versions     26 27 33 34 35
29
30livecheck.url http://pyyaml.org/download/pyyaml/
31livecheck.regex PyYAML-(\[0-9+\]\.\[0-9\]+)\.tar\.gz
32
33if {${name} ne ${subport}} {
34    depends_build-append \
35                        port:py${python.version}-cython
36
37    depends_lib-append  port:libyaml
38    patchfiles          patch-setup.py
39
40    post-patch {
41        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
42    }
43
44    post-destroot {
45        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
46        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/examples
47        xinstall -m 755 -d \
48          ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight
49        xinstall -m 644 -W ${worksrcpath} LICENSE README \
50          ${destroot}${prefix}/share/doc/${subport}
51        xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg \
52          yaml_hl.py \
53          ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight
54    }
55}
Note: See TracBrowser for help on using the repository browser.