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

Last change on this file since 22362 was 22362, checked in by pipping@…, 11 years ago
  • fix testsuite for single-arch builds
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 22362 2007-02-27 11:03:50Z pipping@macports.org $
2
3PortSystem          1.0
4name                expat
5version             2.0.0
6revision            1
7categories          textproc devel
8maintainers         nomaintainer@macports.org
9description         XML 1.0 parser written in C
10long_description    Expat is an XML parser library written in C. It is a \
11                        stream-oriented parser in which an application \
12                        registers handlers for things the parser might find \
13                        in the XML document (like start tags).
14platforms           darwin freebsd
15homepage            http://expat.sourceforge.net/
16master_sites        sourceforge
17checksums           md5 d945df7f1c0868c5c73cf66ba9596f3f \
18                    sha1 9ff011a75a1f5b60145c4afdec520442cb398d93 \
19                    rmd160 f52ccab26950d0148c3e8b644d7c9021734de318
20configure.args      --mandir=\\\${prefix}/share/man
21destroot.destdir    prefix=${destroot}${prefix}
22
23pre-test {
24    cd ${worksrcpath}/lib
25    file copy -force expat.h expat_external.h ../tests
26}
27# extract from tests/README.txt: "Expat must be built and installed
28# before "make check" can be executed."
29test.run            yes
30test.target         check
31
32post-destroot {
33    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
34        ${destroot}${prefix}/share/examples/${name}
35    xinstall -m 644 -W ${worksrcpath} COPYING Changes README \
36        ${destroot}${prefix}/share/doc/${name}
37    eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
38        ${destroot}${prefix}/share/doc/${name}
39    xinstall -m 644 -W ${worksrcpath}/examples elements.c outline.c \
40        ${destroot}${prefix}/share/examples/${name}
41    cd ${destroot}${prefix}/lib
42    system "ln -s libexpat.1.dylib libexpat.0.dylib"
43}
44
45variant no_static {
46    configure.args-append   --disable-static
47}
Note: See TracBrowser for help on using the repository browser.