[93443] trunk/dports/graphics/giflib

ryandesign at macports.org ryandesign at macports.org
Tue May 22 16:06:14 PDT 2012


Revision: 93443
          https://trac.macports.org/changeset/93443
Author:   ryandesign at macports.org
Date:     2012-05-22 16:06:13 -0700 (Tue, 22 May 2012)
Log Message:
-----------
giflib: as requested, only install HTML documentation when new doc variant is selected; for most users this removes xmlto and its many dependencies (#34506)

Modified Paths:
--------------
    trunk/dports/graphics/giflib/Portfile

Added Paths:
-----------
    trunk/dports/graphics/giflib/files/patch-no-docs.diff

Modified: trunk/dports/graphics/giflib/Portfile
===================================================================
--- trunk/dports/graphics/giflib/Portfile	2012-05-22 22:00:53 UTC (rev 93442)
+++ trunk/dports/graphics/giflib/Portfile	2012-05-22 23:06:13 UTC (rev 93443)
@@ -5,7 +5,7 @@
 
 name                            giflib
 version                         4.2.0
-revision                        1
+revision                        2
 set major                       [lindex [split ${version} .] 0]
 categories                      graphics
 maintainers                     ryandesign
@@ -28,20 +28,29 @@
 
 patchfiles                      patch-gif_lib.h.diff
 
-depends_build                   port:xmlto
-
 configure.args                  --disable-x11
 
 use_parallel_build              yes
 
+set docdir ${prefix}/share/doc/${name}
 post-destroot {
-    set docdir ${prefix}/share/doc/${name}
-    xinstall -d ${destroot}${docdir}/html
+    xinstall -d ${destroot}${docdir}
     xinstall -W ${worksrcpath} AUTHORS BUGS COPYING NEWS README TODO api.txt history.txt ${destroot}${docdir}
-    eval xinstall -m 644 [glob ${worksrcpath}/doc/*.html] ${destroot}${docdir}/html
     eval xinstall -m 644 [glob ${worksrcpath}/doc/*.1] ${destroot}${prefix}/share/man/man1
 }
 
+variant doc description {Install HTML documentation} {
+    depends_build-append        port:xmlto
+    post-destroot {
+        xinstall -d ${destroot}${docdir}/html
+        eval xinstall -m 644 [glob ${worksrcpath}/doc/*.html] ${destroot}${docdir}/html
+    }
+}
+
+if {![variant_isset doc]} {
+    patchfiles-append           patch-no-docs.diff
+}
+
 variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
 variant x11 {
     depends_lib-append          port:xorg-libsm \

Added: trunk/dports/graphics/giflib/files/patch-no-docs.diff
===================================================================
--- trunk/dports/graphics/giflib/files/patch-no-docs.diff	                        (rev 0)
+++ trunk/dports/graphics/giflib/files/patch-no-docs.diff	2012-05-22 23:06:13 UTC (rev 93443)
@@ -0,0 +1,11 @@
+--- Makefile.in.orig	2012-05-16 19:59:23.000000000 -0500
++++ Makefile.in	2012-05-22 17:53:23.000000000 -0500
+@@ -229,7 +229,7 @@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-SUBDIRS = lib util doc pic
++SUBDIRS = lib util pic
+ EXTRA_DIST = Makefile.unx \
+ 	     autogen.sh \
+ 	     tests \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120522/ae6a9d3b/attachment-0001.html>


More information about the macports-changes mailing list