[35998] trunk/dports/gnome/dasher/Portfile
mr_bond at macports.org
mr_bond at macports.org
Sun Apr 13 19:01:51 PDT 2008
Revision: 35998
http://trac.macosforge.org/projects/macports/changeset/35998
Author: mr_bond at macports.org
Date: 2008-04-13 19:01:50 -0700 (Sun, 13 Apr 2008)
Log Message:
-----------
reverted gnome/dasher/Portfile to [35974], svn-git reverted theese changes for some reason :/
Modified Paths:
--------------
trunk/dports/gnome/dasher/Portfile
Modified: trunk/dports/gnome/dasher/Portfile
===================================================================
--- trunk/dports/gnome/dasher/Portfile 2008-04-14 01:46:56 UTC (rev 35997)
+++ trunk/dports/gnome/dasher/Portfile 2008-04-14 02:01:50 UTC (rev 35998)
@@ -34,6 +34,46 @@
configure.args --mandir=${prefix}/share/man \
--disable-scrollkeeper
+
+set storagedir ${prefix}/etc/macports/gconf
+set storagefile $storagedir/${name}
+
+post-destroot {
+ # Register schemas with gconf. See http://trac.macosforge.org/projects/macports/ticket/14729
+
+ # 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"
+
system "${prefix}/bin/scrollkeeper-update"
system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080413/4d396b72/attachment-0001.html
More information about the macports-changes
mailing list