[25429] trunk/dports/devel/poco/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon May 21 18:40:35 PDT 2007


Revision: 25429
          http://trac.macosforge.org/projects/macports/changeset/25429
Author:   jann at macports.org
Date:     2007-05-21 18:40:35 -0700 (Mon, 21 May 2007)

Log Message:
-----------
Update by maintainer #11976

Modified Paths:
--------------
    trunk/dports/devel/poco/Portfile

Modified: trunk/dports/devel/poco/Portfile
===================================================================
--- trunk/dports/devel/poco/Portfile	2007-05-22 00:23:25 UTC (rev 25428)
+++ trunk/dports/devel/poco/Portfile	2007-05-22 01:40:35 UTC (rev 25429)
@@ -4,6 +4,7 @@
 
 name            poco
 version         1.3.0
+revision        1
 categories      devel
 maintainers     n.oxyde at gmail.com
 description     POCO C++ Libraries
@@ -16,6 +17,7 @@
 homepage        http://pocoproject.org/
 master_sites    sourceforge
 use_bzip2       yes
+set my_distname ${distname}
 
 checksums       [suffix ${distname}] \
                     md5 798e3e99f3ed97fe4d2151acec12024e \
@@ -25,18 +27,49 @@
                     md5 c5169f92f2787a609f9611346d221e78 \
                     sha1 1429b7fb925e61e88df8d19648ef87c29144b6b4 \
                     rmd160 aeb24c2382a13e21d14bba4160bc7d144bb2780b \
-                ${name}-${version}-doc.tar.gz \
+                [suffix ${distname}-data] \
+                    md5 edd64a9245dcd06a3bacfc0b12716600 \
+                    sha1 7ee415462b3abc37fb02b799eeee9d61feaec346 \
+                    rmd160 be8aba090d0553b868984d5564d3830c0467c724 \
+                ${my_distname}-doc.tar.gz \
                     md5 6107295904c6203a58377b2e7f97ed33 \
                     sha1 1374f44a3f82477c6587037e0d990cd26d0eb61e \
                     rmd160 433a7ff6f5db661fb799f09c4bfbf439f4cbc841
 
 platforms       darwin
 
-configure.args  --no-tests \
-                --no-samples
+configure.args  --no-samples
 
 build.target    poco
 
+test.run        yes
+
+test {
+    proc luniq {list} {
+        set x() {}; unset x
+        foreach {item} ${list} {
+            set x(${item}) ""
+        }
+        return [array names x]
+    }
+
+    cd ${worksrcpath}
+    set file [open components]
+
+    set components {}
+    while {[gets ${file} component] != -1} {
+        lappend components ${component}
+    }
+
+    close ${file}
+
+    foreach {component} [luniq ${components}] {
+        foreach {testrunner} [glob -nocomplain ${component}/testsuite/bin/*/*/testrunner{,d}] {
+            catch {system "${testrunner} -all -print"}
+        }
+    }
+}
+
 set docdir      ${prefix}/share/doc/${name}-${version}
 
 post-destroot {
@@ -50,26 +83,40 @@
     }
 }
 
-variant ipv6 requires darwin_8 {}
+variant ipv6 description {Support IPv6 protocol in Net library (Requires Darwin 8)} requires darwin_8 {}
 
-variant ssl {
-    distname                ${distname}-ssl
+variant ssl description {Build NetSSL library} {
+    distname                ${my_distname}-ssl
     depends_lib-append      port:openssl
 }
 
-variant doc {
+variant data description {Build Data library} {
+    distname                ${my_distname}-data
+    depends_lib-append      lib:libiodbc:unixODBC
+
+    post-patch {
+        if {! [variant_isset ssl]} {
+            reinplace -E {/^(COMPONENTS|\.PHONY|libexecs|tests|samples)/s/NetSSL_OpenSSL[^ ]*//} \
+                ${worksrcpath}/Makefile
+            reinplace {/NETSSL_OpenSSL/d} ${worksrcpath}/components
+        }
+    }
+}
+
+variant doc description {Install extra documentation} {
     extract.only            ${distfiles}
-    distfiles-append        ${name}-${version}-doc.tar.gz
+    distfiles-append        ${my_distname}-doc.tar.gz
 
     post-extract {
-        system "tar xzf ${distpath}/${name}-${version}-doc.tar.gz -C ${workpath}"
+        system "tar xzf ${distpath}/${my_distname}-doc.tar.gz -C ${workpath}"
     }
 
     post-destroot {
-        set workdocpath ${workpath}/${name}-${version}-doc
+        set workdocpath ${workpath}/${my_distname}-doc
 
-        xinstall -m 0755 -d ${destroot}${docdir}/html
+        xinstall -m 0755 -d ${destroot}${docdir}/html/CppUnit
         eval xinstall -m 0644 [glob ${workdocpath}/*.html] ${destroot}${docdir}/html
+        eval xinstall -m 0644 [glob ${worksrcpath}/CppUnit/doc/*] ${destroot}${docdir}/html/CppUnit
 
         foreach {dir} {images css} {
             xinstall -m 0755 -d ${destroot}${docdir}/html/${dir}
@@ -112,3 +159,5 @@
         }
     }
 }
+
+livecheck.regex "<title>sources ${name}-(.*) released "

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070521/8449a35a/attachment.html


More information about the macports-changes mailing list