source: trunk/dports/textproc/libxslt/Portfile

Last change on this file was 149033, checked in by mps@…, 16 months ago

libxslt: update to version 1.1.29, remove patch now included upstream.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 149033 2016-05-25 18:57:08Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            libxslt
7version         1.1.29
8categories      textproc
9license         MIT
10platforms       darwin
11maintainers     nomaintainer
12description     gnome xslt library and xsltproc
13
14long_description \
15    Libxslt is the XSLT C library developed for the Gnome project. \
16    XSLT itself is a an XML language to define transformation for XML. \
17    Libxslt is based on libxml2 the XML C library developed for the Gnome project. \
18    It also implements most of the EXSLT set of processor-portable extensions \
19    functions and some of Saxon's evaluate and expressions extensions.
20
21homepage        http://xmlsoft.org/XSLT/
22master_sites    http://xmlsoft.org/sources/ \
23                ftp://xmlsoft.org/libxslt/ \
24                ftp://fr.rpmfind.net/pub/libxml/ \
25                ftp://gd.tuwien.ac.at/pub/libxml/
26# gnome mirrors only have up to 1.1.22, ticket #17737
27#                gnome:sources/${name}/[strsed ${version} {/\.[0-9]*$//}]/
28
29checksums       rmd160  40a5202b3967db6b01cd6c0e722a9e459cac7960 \
30                sha256  b5976e3857837e7617b29f2249ebb5eeac34e249208d31f1fbf7a6ba7a4090ce
31
32configure.args  --mandir=${prefix}/share/man \
33                --enable-static \
34                --with-libxml-prefix=${prefix} \
35                --without-python \
36                --without-crypto
37
38if {${name} eq ${subport}} {
39    revision            1
40
41    depends_lib-append  port:libiconv \
42                        port:libxml2 \
43                        port:zlib
44
45pre-configure {
46    reinplace s|need_relink=yes|need_relink=no| ${worksrcpath}/ltmain.sh
47}
48
49post-patch {
50    if {![variant_isset doc]} {
51        reinplace -E "/^install-data-am:/s|install-data-local||" ${worksrcpath}/doc/Makefile.in
52        reinplace -E "/^all:/s|web||" ${worksrcpath}/doc/Makefile.in
53    }
54}
55
56test.run        yes
57test.target     check
58
59pre-test {
60    set path {}
61    fs-traverse -depth f $worksrcpath {
62        if {[file isdirectory $f] && [file tail $f] eq ".libs"} {
63            lappend path $f
64            continue
65        }
66    }
67    test.env    DYLD_LIBRARY_PATH=[join $path :]
68}
69
70post-destroot {
71    set docdir ${prefix}/share/doc/${name}-${version}
72    if {![variant_isset doc]} {
73        xinstall -d ${destroot}${docdir}
74    }
75    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog Copyright FEATURES \
76        NEWS README TODO ${destroot}${docdir}
77}
78
79variant doc description {Install extra documentation} {}
80
81variant debug description {Enable debug support} {
82    configure.cflags-append -O0 -g
83    configure.args-append --with-debugger
84}
85
86livecheck.type  regex
87livecheck.url   ${homepage}news.html
88livecheck.regex {<h3>(\d+(?:\.\d+)*): .*</h3>}
89} else {
90    livecheck.type  none
91}
92
93foreach v {27} {
94    subport py${v}-${name} "
95        set python.version $v
96        set python.branch [join [split $v ""] .]
97    "
98}
99
100if {${name} ne ${subport}} {
101    epoch                   1
102    revision                0
103    categories-append       python
104
105    description             Python bindings for libxslt
106    long_description        ${description}
107
108    depends_lib-append      port:${name} \
109                            port:python${python.version} \
110                            port:py${python.version}-libxml2
111
112    configure.args-replace  --without-python --with-python
113    configure.python        ${prefix}/bin/python${python.branch}
114
115    destroot.dir            ${worksrcpath}/python
116    if {${python.version} >= 26} {
117        destroot.args       PYTHON_SITE_PACKAGES="${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages"
118    }
119
120    post-destroot {
121        move ${destroot}${prefix}/share/doc/${name}-python-${version} \
122            ${destroot}${prefix}/share/doc/${subport}
123    }
124}
Note: See TracBrowser for help on using the repository browser.