source: trunk/dports/textproc/expat/Portfile @ 142582

Last change on this file since 142582 was 142582, checked in by ryandesign@…, 4 years ago

expat: use expansion operator instead of eval

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 142582 2015-11-16 13:58:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                expat
7version             2.1.0
8categories          textproc devel
9platforms           darwin freebsd
10maintainers         ryandesign
11license             MIT
12
13description         XML 1.0 parser written in C
14
15long_description    Expat is an XML parser library written in C. It is a \
16                    stream-oriented parser in which an application \
17                    registers handlers for things the parser might find \
18                    in the XML document (like start tags).
19                   
20homepage            http://www.libexpat.org/
21master_sites        sourceforge:project/${name}/${name}/${version}
22
23checksums           rmd160  bffca083d29fe7688f106a902ef9b909c3321c5d \
24                    sha256  823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86
25
26use_parallel_build  yes
27
28# Don't link with "-flat_namespace -undefined suppress" on Yosemite and later.
29patchfiles          yosemite-libtool.patch
30
31test.run            yes
32test.target         check
33
34post-destroot {
35    set docdir ${destroot}${prefix}/share/doc/${name}
36    set examplesdir ${destroot}${prefix}/share/examples/${name}
37    xinstall -m 0755 -d ${examplesdir} ${docdir}/html
38   
39    xinstall -m 0644 -W ${worksrcpath} COPYING Changes README ${docdir}
40    xinstall -m 0644 {*}[glob ${worksrcpath}/doc/*] ${docdir}/html
41   
42    xinstall -m 0644 -W ${worksrcpath}/examples elements.c outline.c \
43        ${examplesdir}
44}
45
46livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.