source: trunk/dports/textproc/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: 2.2 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 148943 2016-05-23 11:09:23Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# Please keep the version of the libxml2 and py-libxml2 ports the same.
7
8name                libxml2
9version             2.9.4
10categories          textproc
11platforms           darwin
12license             MIT
13maintainers         nomaintainer
14
15description         GNOME XML C parser and toolkit
16long_description    Libxml is the XML C library developed for the GNOMEproject.  \
17                    XML itself is a metalanguage to design markup languages. \
18                    Though the library is written in C, a variety of language bindings make it \
19                    available in other environments.
20homepage            http://xmlsoft.org/
21
22depends_lib         port:libiconv \
23                    port:xz \
24                    port:zlib
25
26master_sites        ftp://gd.tuwien.ac.at/pub/libxml/ \
27                    ${homepage}sources/ \
28                    ftp://xmlsoft.org/${name}/
29checksums           rmd160  bb59656e0683d64a38a2f1a45ca9d918837e1e56 \
30                    sha256  ffb911191e509b966deb55de705387f14156e1a56b21824357cdf0053233633c
31
32post-extract {
33    reinplace -locale C "s|/etc|${prefix}/etc|g" \
34        ${worksrcpath}/catalog.c \
35        ${worksrcpath}/runtest.c \
36        ${worksrcpath}/xmlcatalog.c \
37        ${worksrcpath}/xmllint.c \
38        ${worksrcpath}/doc/xmlcatalog.1 \
39        ${worksrcpath}/doc/xmllint.1
40}
41
42configure.args      --enable-static \
43                    --without-python
44
45destroot.keepdirs   ${destroot}${prefix}/etc/xml
46post-destroot {
47    xinstall -m 755 -d ${destroot}${prefix}/etc/xml
48}
49
50test.run            yes
51test.target         check
52
53variant debug description {Enable debug build} {
54    configure.optflags      -O0 -g -Wno-uninitialized
55    configure.args-append   --with-run-debug
56}
57
58variant readline description {Enable readline support} {
59    configure.args-append   --with-readline \
60                            --with-history
61    depends_lib-append      port:readline
62}
63
64livecheck.type      regex
65livecheck.url       ${homepage}news.html
66livecheck.regex     {<h3>[v]*(\d+(?:\.\d+)*): .*</h3>}
Note: See TracBrowser for help on using the repository browser.