# -*- 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 # $Id: Portfile 137053 2015-06-03 18:39:52Z ryandesign@macports.org $ PortSystem 1.0 name libxslt version 1.1.28 categories textproc license MIT platforms darwin maintainers nomaintainer description gnome xslt library and xsltproc long_description \ Libxslt is the XSLT C library developed for the Gnome project. \ XSLT itself is a an XML language to define transformation for XML. \ Libxslt is based on libxml2 the XML C library developed for the Gnome project. \ It also implements most of the EXSLT set of processor-portable extensions \ functions and some of Saxon's evaluate and expressions extensions. homepage http://xmlsoft.org/XSLT/ master_sites http://xmlsoft.org/sources/ \ ftp://xmlsoft.org/libxslt/ \ ftp://fr.rpmfind.net/pub/libxml/ \ ftp://gd.tuwien.ac.at/pub/libxml/ # gnome mirrors only have up to 1.1.22, ticket #17737 # gnome:sources/${name}/[strsed ${version} {/\.[0-9]*$//}]/ checksums rmd160 a4e2f9c3ac235284cc58a37ed26707a870e0f976 \ sha256 5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c configure.args --mandir=${prefix}/share/man \ --enable-static \ --with-libxml-prefix=${prefix} \ --without-python \ --without-crypto if {${name} eq ${subport}} { revision 1 depends_lib-append port:libiconv \ port:libxml2 \ port:zlib pre-configure { reinplace s|need_relink=yes|need_relink=no| ${worksrcpath}/ltmain.sh } patchfiles-append yosemite-libtool.patch post-patch { if {![variant_isset doc]} { reinplace -E "/^install-data-am:/s|install-data-local||" ${worksrcpath}/doc/Makefile.in reinplace -E "/^all:/s|web||" ${worksrcpath}/doc/Makefile.in } } test.run yes test.target check pre-test { set path {} fs-traverse -depth f $worksrcpath { if {[file isdirectory $f] && [file tail $f] eq ".libs"} { lappend path $f continue } } test.env DYLD_LIBRARY_PATH=[join $path :] } post-destroot { set docdir ${prefix}/share/doc/${name}-${version} if {![variant_isset doc]} { xinstall -d ${destroot}${docdir} } xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog Copyright FEATURES \ NEWS README TODO ${destroot}${docdir} } variant doc description {Install extra documentation} {} variant debug description {Enable debug support} { configure.cflags-append -O0 -g configure.args-append --with-debugger } livecheck.type regex livecheck.url ${homepage}news.html livecheck.regex {

(\d+(?:\.\d+)*): .*

} } else { livecheck.type none } foreach v {27} { subport py${v}-${name} " set python.version $v set python.branch [join [split $v ""] .] " } if {${name} ne ${subport}} { epoch 1 revision 0 categories-append python description Python bindings for libxslt long_description ${description} depends_lib-append port:${name} \ port:python${python.version} \ port:py${python.version}-libxml2 configure.args-replace --without-python --with-python configure.python ${prefix}/bin/python${python.branch} destroot.dir ${worksrcpath}/python if {${python.version} >= 26} { destroot.args PYTHON_SITE_PACKAGES="${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages" } post-destroot { move ${destroot}${prefix}/share/doc/${name}-python-${version} \ ${destroot}${prefix}/share/doc/${subport} } }