[114223] trunk/dports

ryandesign at macports.org ryandesign at macports.org
Mon Dec 2 20:03:23 PST 2013


Revision: 114223
          https://trac.macports.org/changeset/114223
Author:   ryandesign at macports.org
Date:     2013-12-02 20:03:23 -0800 (Mon, 02 Dec 2013)
Log Message:
-----------
libxslt: add py*-libxslt as subports, thereby updating them to 1.1.28 (#39748) which fixes a build failure (#39325) which happened because the versions of libxslt and py*-libxslt didn't match and ensures we can never make that mistake again

Modified Paths:
--------------
    trunk/dports/textproc/libxslt/Portfile

Removed Paths:
-------------
    trunk/dports/python/py-libxslt/

Modified: trunk/dports/textproc/libxslt/Portfile
===================================================================
--- trunk/dports/textproc/libxslt/Portfile	2013-12-03 03:53:32 UTC (rev 114222)
+++ trunk/dports/textproc/libxslt/Portfile	2013-12-03 04:03:23 UTC (rev 114223)
@@ -8,7 +8,7 @@
 categories      textproc
 license         MIT
 platforms       darwin
-maintainers     nomaintainer
+maintainers         sfiera openmaintainer
 description     gnome xslt library and xsltproc
 
 long_description \
@@ -29,16 +29,19 @@
 checksums       rmd160  a4e2f9c3ac235284cc58a37ed26707a870e0f976 \
                 sha256  5fc7151a57b89c03d7b825df5a0fae0a8d5f05674c0e7cf2937ecec4d54a028c
 
-depends_lib     port:libiconv \
-                port:libxml2 \
-                port:zlib
-
 configure.args  --mandir=${prefix}/share/man \
                 --enable-static \
                 --with-libxml-prefix=${prefix} \
                 --without-python \
                 --without-crypto
 
+if {${name} eq ${subport}} {
+    revision            0
+
+    depends_lib-append  port:libiconv \
+                        port:libxml2 \
+                        port:zlib
+
 pre-configure {
     reinplace s|need_relink=yes|need_relink=no| ${worksrcpath}/ltmain.sh
 }
@@ -83,3 +86,39 @@
 livecheck.type  regex
 livecheck.url   ${homepage}news.html
 livecheck.regex {<h3>(\d+(?:\.\d+)*): .*</h3>}
+} else {
+    livecheck.type  none
+}
+
+foreach v {24 25 26 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}
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131202/859d956c/attachment.html>


More information about the macports-changes mailing list