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

blair at macports.org blair at macports.org
Sat Aug 29 22:09:15 PDT 2009


Revision: 56560
          http://trac.macports.org/changeset/56560
Author:   blair at macports.org
Date:     2009-08-29 22:09:10 -0700 (Sat, 29 Aug 2009)
Log Message:
-----------
The port fails in destroot with the +doc variant due to documentation
build changes in 2.2.4.

Also, if the +doc variant is not specified then the documentation is
still installed.

The --docdir command line argument passed to configure is not honored
by docs/Makefile.in and it instead uses $(book_name) as the directory
name to install into.  Trying to set book_name by passing it on make's
command line argument causes to build to fail, so I took the approach
of installing everything which installs the extra docs into
${prefix}/share/doc/libsigc++-2.0 and then moving the contents into
${prefix}/share/doc/libsigc++-${version} if the variant it set.  Then
always delete libsigc++-2.0.

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

Modified: trunk/dports/devel/libsigcxx2/Portfile
===================================================================
--- trunk/dports/devel/libsigcxx2/Portfile	2009-08-30 04:53:31 UTC (rev 56559)
+++ trunk/dports/devel/libsigcxx2/Portfile	2009-08-30 05:09:10 UTC (rev 56560)
@@ -6,6 +6,7 @@
 name            libsigcxx2
 set my_name     libsigc++
 version         2.2.4.1
+revision        1
 set branch      [join [lrange [split ${version} .] 0 1] .]
 categories      devel
 platforms       darwin
@@ -28,25 +29,23 @@
 
 set docdir      ${prefix}/share/doc/${my_name}-${version}
 
-post-patch {
-    if {! [variant_isset doc]} {
-        reinplace -E "/^SUBDIRS/s/docs//" ${worksrcpath}/Makefile.in
-    }
-}
-
 post-destroot {
-    if {! [variant_isset doc]} {
-        xinstall -d ${destroot}${docdir}
-    }
+    xinstall -d ${destroot}${docdir}
     xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README TODO \
         ${destroot}${docdir}
+
+    if { [variant_isset doc]} {
+        foreach {f} {images index.html reference tutorial} {
+            file rename ${destroot}${prefix}/share/doc/libsigc++-2.0/${f} \
+                ${destroot}${docdir}/${f}
+        }
+    }
+    file delete -force ${destroot}${prefix}/share/doc/libsigc++-2.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}/${branch}/?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/20090829/3253fb6f/attachment-0001.html>


More information about the macports-changes mailing list