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

Last change on this file was 148943, checked in by devans@…, 18 months ago

libxml2, py-libxml2: update to version 2.9.4.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
2# $Id: Portfile 148943 2016-05-23 11:09:23Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup python 1.0
6
7# Please keep the version of the libxml2 and py-libxml2 ports the same.
8
9name                    py-libxml2
10version                 2.9.4
11categories-append       textproc
12license                 MIT
13platforms               darwin
14maintainers             mcalhoun openmaintainer
15description             Python bindings for libxml2
16long_description        ${description}
17
18homepage                http://xmlsoft.org/python.html
19
20master_sites            http://www.xmlsoft.org/sources/ \
21                        ftp://gd.tuwien.ac.at/pub/libxml/ \
22                        ftp://xmlsoft.org/libxml2/
23
24distname                libxml2-${version}
25dist_subdir             libxml2
26
27checksums               rmd160  bb59656e0683d64a38a2f1a45ca9d918837e1e56 \
28                        sha256  ffb911191e509b966deb55de705387f14156e1a56b21824357cdf0053233633c
29
30python.versions         27 34 35
31
32if {${name} ne ${subport}} {
33    depends_lib-append      port:libxml2
34
35    worksrcdir              ${worksrcdir}/python
36
37    post-patch {
38      reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py
39    }
40
41    patchfiles              patch-setup.py.diff
42
43    post-destroot {
44      set docdir ${prefix}/share/doc/${subport}
45      xinstall -d ${destroot}${docdir}
46      xinstall -m 644 -W ${worksrcpath} README TODO \
47        ${destroot}${docdir}
48    }
49}
50
51livecheck.type  regex
52livecheck.url   http://www.xmlsoft.org/news.html
53livecheck.regex {<h3>[v]*(\d+(?:\.\d+)*): .*</h3>}
Note: See TracBrowser for help on using the repository browser.