source: trunk/dports/textproc/libxslt/Portfile

Last change on this file was 149033, checked in by mps@…, 19 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
RevLine 
[40676]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
[20478]2# $Id: Portfile 149033 2016-05-25 18:57:08Z ryandesign@macports.org $
[970]3
[36569]4PortSystem      1.0
[4902]5
[36569]6name            libxslt
[149033]7version         1.1.29
[36569]8categories      textproc
[80238]9license         MIT
[36569]10platforms       darwin
[125003]11maintainers     nomaintainer
[36569]12description     gnome xslt library and xsltproc
[35789]13
[36569]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 \
[36570]19    functions and some of Saxon's evaluate and expressions extensions.
[36569]20
21homepage        http://xmlsoft.org/XSLT/
[76466]22master_sites    http://xmlsoft.org/sources/ \
23                ftp://xmlsoft.org/libxslt/ \
[36570]24                ftp://fr.rpmfind.net/pub/libxml/ \
[44170]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]*$//}]/
[28692]28
[149033]29checksums       rmd160  40a5202b3967db6b01cd6c0e722a9e459cac7960 \
30                sha256  b5976e3857837e7617b29f2249ebb5eeac34e249208d31f1fbf7a6ba7a4090ce
[28692]31
[36570]32configure.args  --mandir=${prefix}/share/man \
[45821]33                --enable-static \
[36569]34                --with-libxml-prefix=${prefix} \
35                --without-python \
36                --without-crypto
37
[114223]38if {${name} eq ${subport}} {
[137053]39    revision            1
[114223]40
41    depends_lib-append  port:libiconv \
42                        port:libxml2 \
43                        port:zlib
44
[4902]45pre-configure {
46    reinplace s|need_relink=yes|need_relink=no| ${worksrcpath}/ltmain.sh
47}
48
[49182]49post-patch {
[36569]50    if {![variant_isset doc]} {
[49182]51        reinplace -E "/^install-data-am:/s|install-data-local||" ${worksrcpath}/doc/Makefile.in
52        reinplace -E "/^all:/s|web||" ${worksrcpath}/doc/Makefile.in
[36569]53    }
[28692]54}
55
[36569]56test.run        yes
57test.target     check
58
[40728]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
[28692]70post-destroot {
[36569]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}
[28692]77}
78
79variant doc description {Install extra documentation} {}
80
[62420]81variant debug description {Enable debug support} {
[36569]82    configure.cflags-append -O0 -g
83    configure.args-append --with-debugger
[28433]84}
85
[57375]86livecheck.type  regex
[25798]87livecheck.url   ${homepage}news.html
88livecheck.regex {<h3>(\d+(?:\.\d+)*): .*</h3>}
[114223]89} else {
90    livecheck.type  none
91}
92
[126887]93foreach v {27} {
[114223]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.