[28910] trunk/dports/devel/libsigcxx2/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 11 06:41:58 PDT 2007


Revision: 28910
          http://trac.macosforge.org/projects/macports/changeset/28910
Author:   nox at macports.org
Date:     2007-09-11 06:41:57 -0700 (Tue, 11 Sep 2007)

Log Message:
-----------
libsigcxx2:
 * Updated to 2.0.18.
 * Added standard doc installation.
 * Added doc variant.
 * Added sha1 and rmd160 checksums and livecheck.

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

Modified: trunk/dports/devel/libsigcxx2/Portfile
===================================================================
--- trunk/dports/devel/libsigcxx2/Portfile	2007-09-11 12:47:31 UTC (rev 28909)
+++ trunk/dports/devel/libsigcxx2/Portfile	2007-09-11 13:41:57 UTC (rev 28910)
@@ -3,7 +3,8 @@
 PortSystem      1.0
 
 name            libsigcxx2
-version         2.0.17
+set my_name     libsigc++
+version         2.0.18
 categories      devel
 platforms       darwin
 maintainers     nomaintainer
@@ -19,13 +20,35 @@
 distname        libsigc++-${version}
 use_bzip2       yes
 
-checksums       md5 fde0ee69e3125e982746d9fe005763e1
+checksums       md5 ddebf5aafc8525d10366a8724abc9f28 \
+                sha1 75df46c977a3418bda4d5ae7e21c9ede28993835 \
+                rmd160 314e5fd243dbaf49974130bd9d2692766f0116f5
 
+set docdir      ${prefix}/share/doc/${my_name}-${version}
+
+post-patch {
+    if {! [variant_isset doc]} {
+        reinplace -E "/^SUBDIRS/s/docs//" ${worksrcpath}/Makefile.in
+    }
+}
+
 post-destroot {
-    delete ${destroot}${prefix}/share
+    if {! [variant_isset doc]} {
+        xinstall -d ${destroot}${docdir}
+    }
+    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README TODO \
+        ${destroot}${docdir}
 }
 
 platform darwin 8 {
     configure.compiler  gcc-4.0
 }
 
+variant doc description {Install extra documentation} {
+    destroot.args  libsigc_docdir=${docdir}/html
+}
+
+livecheck.check regex
+livecheck.url   http://ftp.gnome.org/pub/GNOME/sources/${my_name}/2.0/?C=M&O=D
+livecheck.regex {libsigc\+\+-(\d+(?:\.\d+)*)}
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070911/376414af/attachment.html


More information about the macports-changes mailing list