source: trunk/dports/textproc/libxslt/Portfile @ 39485

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

libxslt: autoreconf needs automake and libtool, so add those dependencies too; follow-up to r39326; see #14063.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 39485 2008-08-21 22:44:32Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            libxslt
6version         1.1.23
7revision        1
8categories      textproc
9platforms       darwin
10maintainers     nox openmaintainer
11description     gnome xslt library and xsltproc
12
13long_description \
14    Libxslt is the XSLT C library developed for the Gnome project. \
15    XSLT itself is a an XML language to define transformation for XML. \
16    Libxslt is based on libxml2 the XML C library developed for the Gnome project. \
17    It also implements most of the EXSLT set of processor-portable extensions \
18    functions and some of Saxon's evaluate and expressions extensions.
19
20homepage        http://xmlsoft.org/XSLT/
21master_sites    ftp://xmlsoft.org/libxslt/ \
22                ftp://fr.rpmfind.net/pub/libxml/ \
23                ftp://gd.tuwien.ac.at/pub/libxml/ \
24                gnome:sources/${name}/[strsed ${version} {/\.[0-9]*$//}]/
25
26checksums       md5     0650b23650b70ad7ce2447ee16f445a3 \
27                sha1    9b6bb279808893643d9116e514eafecb22eff76c \
28                rmd160  fcecbaddd9b35e4d5e44670f6bd6d9d5fff327bc
29
30depends_build   port:autoconf \
31                port:automake \
32                port:libtool
33depends_lib     port:libiconv \
34                port:libxml2 \
35                port:zlib
36
37use_autoconf    yes
38autoconf.cmd    autoreconf
39
40configure.args  --mandir=${prefix}/share/man \
41                --enable-static=no \
42                --with-libxml-prefix=${prefix} \
43                --without-python \
44                --without-crypto
45
46use_parallel_build  yes
47
48pre-configure {
49    reinplace s|need_relink=yes|need_relink=no| ${worksrcpath}/ltmain.sh
50}
51
52post-configure {
53    if {![variant_isset doc]} {
54        reinplace -E "/^install-data-am:/s|install-data-local||" ${worksrcpath}/doc/Makefile
55        reinplace -E "/^all:/s|web||" ${worksrcpath}/doc/Makefile
56    }
57}
58
59test.run        yes
60test.target     check
61
62post-destroot {
63    set docdir ${prefix}/share/doc/${name}-${version}
64    if {![variant_isset doc]} {
65        xinstall -d ${destroot}${docdir}
66    }
67    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog Copyright FEATURES \
68        NEWS README TODO ${destroot}${docdir}
69}
70
71variant doc description {Install extra documentation} {}
72
73variant debug {
74    configure.cflags-append -O0 -g
75    configure.args-append --with-debugger
76}
77
78livecheck.check regex
79livecheck.url   ${homepage}news.html
80livecheck.regex {<h3>(\d+(?:\.\d+)*): .*</h3>}
Note: See TracBrowser for help on using the repository browser.