[35534] trunk/dports/gnome/galeon/Portfile
jmr at macports.org
jmr at macports.org
Sat Mar 29 14:00:51 PDT 2008
Revision: 35534
http://trac.macosforge.org/projects/macports/changeset/35534
Author: jmr at macports.org
Date: 2008-03-29 14:00:50 -0700 (Sat, 29 Mar 2008)
Log Message:
-----------
galeon: update to 2.0.5.
Modified Paths:
--------------
trunk/dports/gnome/galeon/Portfile
Modified: trunk/dports/gnome/galeon/Portfile
===================================================================
--- trunk/dports/gnome/galeon/Portfile 2008-03-29 20:57:11 UTC (rev 35533)
+++ trunk/dports/gnome/galeon/Portfile 2008-03-29 21:00:50 UTC (rev 35534)
@@ -4,39 +4,70 @@
PortSystem 1.0
name galeon
-version 2.0.1
-description A GNOME browser.
+version 2.0.5
+description A GNOME web browser.
long_description Galeon is a GNOME Web browser based on gecko (the \
mozilla rendering engine). It's fast, it has a \
light interface, and it is fully standards-compliant.
maintainers nomaintainer
categories gnome
platforms darwin
-homepage http://galeon.sourceforge.net
+homepage http://galeon.sourceforge.net/
master_sites sourceforge
use_bzip2 yes
-checksums md5 34d6e3a6ee78f9e4d12736e5d81b462b
+checksums md5 bbddb89ad1ba08a62e03bceab5a38d93 \
+ sha1 c0ae9496db47a8f588eb1e579761d939da44b14d \
+ rmd160 060447fe7f004bf02c524abde8732a3457353a8a
-depends_lib bin:mozilla:mozilla bin:gnome-session:gnome-session lib:libiconv.2:libiconv
+depends_lib port:gnome-session port:libiconv port:firefox-x11
-configure.cppflags-append "-L${prefix}/lib"
configure.cflags-append "-no-cpp-precomp -flat_namespace -undefined suppress"
-configure.args --enable-nautilus-view=no --mandir=${prefix}/share/man \
- --with-gconf-source="xml::${destroot}${prefix}/etc/gconf/gconf.xml.defaults"
+configure.args \
+ --mandir=${prefix}/share/man \
+ --enable-nautilus-view=no \
+ --with-mozilla=firefox
-pre-destroot {
- # mkdir the directory for teh gconf'in
- file mkdir -f ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/
-}
+set storagedir ${prefix}/etc/macports/gconf
+set storagefile $storagedir/${name}
post-destroot {
# make a da script happen
file copy ${destroot}${prefix}/bin/galeon ${destroot}${prefix}/bin/galeon-bin
file copy -force ${filespath}/galeon ${destroot}${prefix}/bin/galeon
- # damn gconf
- file delete ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/schemas/apps/%gconf.xml
- file delete ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/schemas/%gconf.xml
- file delete ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/apps/%gconf.xml
+
# use da ${prefix} Luke ...
reinplace "s|/opt/local|${prefix}|g" ${destroot}${prefix}/bin/galeon
+
+ # schema installation procedure from #14729 (pending gnome portgroup)
+ # Find all .schemas file in the destroot
+ fs-traverse schema ${destroot}${prefix}/etc/gconf/schemas {
+ if { [ file isfile $schema ] } {
+ lappend schemafiles $schema
+ }
+ }
+
+ # And put them in etc/macports/gconf/$name
+ if { [ llength $schemafiles ] > 0 } {
+ file mkdir ${destroot}${storagedir}
+ set fh [open ${destroot}${storagefile} w]
+ foreach file $schemafiles {
+ puts $fh [exec basename $file]
+ }
+ close $fh
+ }
}
+
+post-activate {
+ if { [file exists ${storagefile} ] } {
+ set fh [open ${storagefile} r]
+ while { ! [eof $fh] } {
+ lappend schemafiles [gets $fh]
+ }
+ close $fh
+ }
+
+ set schemastring [join $schemafiles " "]
+
+ system "cd ${prefix}/etc/gconf/schemas && \
+ GCONF_CONFIG_SOURCE=`${prefix}/bin/gconftool-2 --get-default-source` ${prefix}/bin/gconftool-2 --makefile-install-rule $schemastring"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080329/c7e259d0/attachment.html
More information about the macports-changes
mailing list