[28596] trunk/dports/gnome/yelp

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 4 01:57:03 PDT 2007


Revision: 28596
          http://trac.macosforge.org/projects/macports/changeset/28596
Author:   rhwood at macports.org
Date:     2007-09-04 01:57:03 -0700 (Tue, 04 Sep 2007)

Log Message:
-----------
Upgrade to version 2.18.1 with changes per ticket:11903

Modified Paths:
--------------
    trunk/dports/gnome/yelp/Portfile

Added Paths:
-----------
    trunk/dports/gnome/yelp/files/
    trunk/dports/gnome/yelp/files/patch-yelp-xslt-pager.c

Modified: trunk/dports/gnome/yelp/Portfile
===================================================================
--- trunk/dports/gnome/yelp/Portfile	2007-09-04 08:34:17 UTC (rev 28595)
+++ trunk/dports/gnome/yelp/Portfile	2007-09-04 08:57:03 UTC (rev 28596)
@@ -1,7 +1,7 @@
 # $Id$
 PortSystem 1.0
 name		yelp
-version		2.6.5
+version		2.18.1
 description	Help browser for GNOME.
 long_description        Help browser for GNOME 2.0 which supports docbook documents, \
 			info and man.
@@ -9,8 +9,8 @@
 categories	gnome
 platforms	darwin 
 homepage	http://www.gnome.org/
-master_sites    gnome:sources/yelp/2.6/
-checksums	md5 9bd94af344ee6a0bf69aa6f9cbd6b7e9
+master_sites    gnome:sources/yelp/2.18/
+checksums	md5 84abbfe7e042706cbf21752957e29bf3
 depends_lib	port:libgtkhtml \
 		port:libxslt \
 		port:gconf \
@@ -18,8 +18,31 @@
 		port:libbonobo \
 		port:libgnome \
 		port:libgnomeui \
-		port:tiff
+		port:tiff \
+		port:firefox-x11
 
 use_bzip2 	yes
+
+patchfiles      patch-yelp-xslt-pager.c
+
+variant debug {
+        configure.cflags-append -O0 -g
+        configure.cxxflags-append -O0 -g
+	configure.args-append --enable-debug
+}
+
+post-destroot {
+        # In order to call gecko, yelp must be installed in the same directory as FireFox.
+        # Move it and put a symlink in the bin directory
+        if { [catch {set ff [registry_active "firefox-x11"]} result]} {
+                ui_err "FireFox is not active: $result"
+        } else {
+                set ffver [lindex $ff 0 1]
+                xinstall -d ${destroot}${prefix}/lib/firefox-${ffver}
+                move ${destroot}${prefix}/bin/yelp ${destroot}${prefix}/lib/firefox-${ffver}
+                ln -s ${prefix}/lib/firefox-${ffver}/yelp ${destroot}${prefix}/bin
+        }
+}
+
 configure.cppflags-append "-L${prefix}/lib"
 configure.cflags-append "-no-cpp-precomp -flat_namespace -undefined suppress"

Added: trunk/dports/gnome/yelp/files/patch-yelp-xslt-pager.c
===================================================================
--- trunk/dports/gnome/yelp/files/patch-yelp-xslt-pager.c	                        (rev 0)
+++ trunk/dports/gnome/yelp/files/patch-yelp-xslt-pager.c	2007-09-04 08:57:03 UTC (rev 28596)
@@ -0,0 +1,19 @@
+--- /Users/mta/macports/dports/gnome/yelp/save/yelp-xslt-pager.c	2007-08-23 11:43:19.000000000 -0400
++++ src/yelp-xslt-pager.c	2007-08-23 11:45:13.000000000 -0400
+@@ -35,6 +35,7 @@
+ #include <libxslt/extensions.h>
+ #include <libxslt/xsltInternals.h>
+ #include <libxslt/xsltutils.h>
++#include <libexslt/exslt.h>
+ 
+ #include "yelp-error.h"
+ #include "yelp-settings.h"
+@@ -98,6 +99,8 @@
+ 	type = g_type_register_static (YELP_TYPE_PAGER,
+ 				       "YelpXsltPager", 
+ 				       &info, 0);
++	
++	exsltRegisterAll();
+     }
+     return type;
+ }

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


More information about the macports-changes mailing list