[93239] trunk/dports/graphics/giflib
ryandesign at macports.org
ryandesign at macports.org
Thu May 17 23:26:08 PDT 2012
Revision: 93239
https://trac.macports.org/changeset/93239
Author: ryandesign at macports.org
Date: 2012-05-17 23:26:07 -0700 (Thu, 17 May 2012)
Log Message:
-----------
giflib: update to 4.2.0; change no_x11 variant to x11 variant and make deselecting it actually work right (#20462); lots of nice documentation and manpages now installed as well
Modified Paths:
--------------
trunk/dports/graphics/giflib/Portfile
trunk/dports/graphics/giflib/files/patch-gif_lib.h.diff
Modified: trunk/dports/graphics/giflib/Portfile
===================================================================
--- trunk/dports/graphics/giflib/Portfile 2012-05-18 06:16:23 UTC (rev 93238)
+++ trunk/dports/graphics/giflib/Portfile 2012-05-18 06:26:07 UTC (rev 93239)
@@ -2,18 +2,15 @@
# $Id$
PortSystem 1.0
-PortGroup muniversal 1.0
name giflib
-version 4.1.6
-set major [lindex [split ${version} .] 0]
-revision 1
+version 4.2.0
categories graphics
maintainers ryandesign
license MIT
platforms darwin
homepage http://sourceforge.net/projects/giflib/
-master_sites sourceforge:project/${name}/${name}%20${major}.x/${name}-${version}
+master_sites sourceforge:project/giflib/giflib
use_bzip2 yes
description GIF library using patented LZW algorithm
@@ -21,22 +18,37 @@
long_description GIF loading and saving shared library. \
Uses the LZW algorithm.
-checksums md5 7125644155ae6ad33dbc9fc15a14735f \
- sha1 22680f604ec92065f04caf00b1c180ba74fb8562 \
- rmd160 bdb99f7048a79b9e771b069f90ac151537011d19
+checksums rmd160 4549579f5fd8418dcca678f917b7c1aa7745b098 \
+ sha256 9ef613b8235c8b718d1a8db7201418d5522e8aa50a60c8eccdea82d5e8da2026
patchfiles patch-gif_lib.h.diff
-depends_lib port:xorg-libsm \
- port:xorg-libX11
+depends_build port:xmlto
+configure.args --disable-x11
+
use_parallel_build yes
-variant no_x11 {
- depends_lib-delete port:xorg-libsm
- depends_lib-delete port:xorg-libX11
- configure.args-append --without-x
+post-destroot {
+ set docdir ${prefix}/share/doc/${name}
+ xinstall -d ${destroot}${docdir}/html
+ 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
}
-livecheck.type sourceforge
+variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
+variant x11 {
+ depends_lib-append port:xorg-libsm \
+ port:xorg-libX11
+
+ configure.args-delete --disable-x11
+}
+
+if {[variant_isset no_x11]} {
+ default_variants -x11
+} else {
+ default_variants +x11
+}
+
livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
Modified: trunk/dports/graphics/giflib/files/patch-gif_lib.h.diff
===================================================================
--- trunk/dports/graphics/giflib/files/patch-gif_lib.h.diff 2012-05-18 06:16:23 UTC (rev 93238)
+++ trunk/dports/graphics/giflib/files/patch-gif_lib.h.diff 2012-05-18 06:26:07 UTC (rev 93239)
@@ -1,6 +1,6 @@
---- lib/gif_lib.h 2005-10-10 08:08:49.000000000 +0200
-+++ lib/gif_lib.h 2007-08-08 14:07:18.000000000 +0200
-@@ -266,7 +266,7 @@
+--- lib/gif_lib.h.orig 2012-05-06 15:55:48.000000000 -0500
++++ lib/gif_lib.h 2012-05-17 22:40:50.000000000 -0500
+@@ -216,7 +216,7 @@
extern ColorMapObject *MakeMapObject(int ColorCount,
const GifColorType * ColorMap);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120517/7fbe7a24/attachment.html>
More information about the macports-changes
mailing list