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

ryandesign at macports.org ryandesign at macports.org
Mon May 25 20:30:45 PDT 2015


Revision: 136757
          https://trac.macports.org/changeset/136757
Author:   ryandesign at macports.org
Date:     2015-05-25 20:30:45 -0700 (Mon, 25 May 2015)
Log Message:
-----------
poco: update to 1.5.4; move documentation from doc variant to new poco-docs subport

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

Modified: trunk/dports/devel/poco/Portfile
===================================================================
--- trunk/dports/devel/poco/Portfile	2015-05-26 02:52:24 UTC (rev 136756)
+++ trunk/dports/devel/poco/Portfile	2015-05-26 03:30:45 UTC (rev 136757)
@@ -4,7 +4,7 @@
 PortSystem      1.0
 
 name            poco
-version         1.4.7p1
+version         1.5.4
 categories      devel
 maintainers     nomaintainer
 platforms       darwin
@@ -20,19 +20,16 @@
 
 homepage        http://pocoproject.org/
 master_sites    ${homepage}releases/poco-[strsed ${version} {s/[^0-9.].*$//}]/
-use_bzip2       yes
 distname        ${name}-${version}-all
-distfiles       ${distname}${extract.suffix}
-extract.only    ${distname}${extract.suffix}
-set docdistname ${distname}-doc
 
-checksums       ${distname}${extract.suffix} \
-                rmd160  7c947f6ff0cf6d59873c046cf95a3f703fe56162 \
-                sha256  bad31e9643a9d9fc2cdab5192fbfb5ccb8fb359ea6d2849f43ecf1132d052346 \
-                ${docdistname}.tar.gz \
-                rmd160  8c1a3edf7395cde4487cb25860301c88ba5a0a58 \
-                sha256  b5d41deb4dddba2877692542b48a4b7f0ed055612f875052c4bf4b6436b788dd
+checksums       rmd160  373d06dc11d73feef6b682c5ee1dd1d2a0de59bb \
+                sha256  97cf05b6750340930719f0a7125c49f5034e0efc718f2126e11dd0d1ab8acdf7
 
+set docdir      ${prefix}/share/doc/${name}
+
+if {${subport} eq ${name}} {
+use_bzip2       yes
+
 set omit        {NetSSL_OpenSSL Data/ODBC Data/MySQL Crypto}
 
 if {[string match *clang* ${configure.compiler}]} {
@@ -104,17 +101,13 @@
     }
 }
 
-set docdir      ${prefix}/share/doc/${name}
-
 post-destroot {
-    xinstall -d ${destroot}${docdir}
+    xinstall -d ${destroot}${docdir}/html
     xinstall -m 0644 -W ${worksrcpath} CHANGELOG CONTRIBUTORS LICENSE NEWS README VERSION \
         ${destroot}${docdir}
 
-    if {![variant_isset doc]} {
-        xinstall -d ${destroot}${docdir}/html
-        xinstall -m 0644 -W ${worksrcpath}/doc Acknowledgements.html ${destroot}${docdir}/html
-    }
+    xinstall -m 0644 -W ${worksrcpath}/doc Acknowledgements.html ${destroot}${docdir}/html
+    copy ${worksrcpath}/CppUnit/doc ${destroot}${docdir}/html/CppUnit
 }
 
 variant ssl description {Build NetSSL and Crypto library} {
@@ -135,20 +128,36 @@
 
     set omit [ldelete ${omit} Data/MySQL]
 }
+}
 
-variant doc description {Install extra documentation} {
-    distfiles-append        ${docdistname}.tar.gz
+subport ${name}-docs {
+    license             unknown
+    supported_archs     noarch
 
-    post-extract {
-        system "tar xzf ${distpath}/${docdistname}.tar.gz -C ${workpath}"
-    }
+    description         documentation for POCO
 
-    post-destroot {
-        copy ${workpath}/${docdistname} ${destroot}${docdir}/html
-        copy ${worksrcpath}/CppUnit/doc ${destroot}${docdir}/html/CppUnit
+    long_description    This port contains an offline copy of the POCO documentation.
+
+    homepage            ${homepage}documentation/
+    distname            ${distname}-doc
+
+    checksums           rmd160  7d52379d4015eb8457af584b71fb69876c3c667e \
+                        sha256  cf48e854b4fb2688aac5ce473a9ad620fe883dc37a94f7af908fa9e89dcdf670
+
+    use_configure       no
+
+    build {}
+
+    destroot {
+        xinstall -d ${destroot}${docdir}
+        copy ${worksrcpath} ${destroot}${docdir}/html
     }
 }
 
-livecheck.type      regex
-livecheck.url       ${homepage}download/
-livecheck.regex     /${name}-(\[0-9.p\]+)\\.tar
+if {${subport} eq ${name}} {
+    livecheck.type  regex
+    livecheck.url   ${homepage}download/
+    livecheck.regex /${name}-(\[0-9.p\]+)\\.tar
+} else {
+    livecheck.type  none
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150525/dc2caac4/attachment-0001.html>


More information about the macports-changes mailing list