[37482] trunk/dports/gnome/gnome-terminal/Portfile
jmr at macports.org
jmr at macports.org
Mon Jun 9 11:16:31 PDT 2008
Revision: 37482
http://trac.macosforge.org/projects/macports/changeset/37482
Author: jmr at macports.org
Date: 2008-06-09 11:16:31 -0700 (Mon, 09 Jun 2008)
Log Message:
-----------
gnome-terminal: add the standard gnome configuration dance
Modified Paths:
--------------
trunk/dports/gnome/gnome-terminal/Portfile
Modified: trunk/dports/gnome/gnome-terminal/Portfile
===================================================================
--- trunk/dports/gnome/gnome-terminal/Portfile 2008-06-09 17:36:10 UTC (rev 37481)
+++ trunk/dports/gnome/gnome-terminal/Portfile 2008-06-09 18:16:31 UTC (rev 37482)
@@ -5,7 +5,7 @@
name gnome-terminal
version 2.22.1
-revision 1
+revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
description Terminal component for the GNOME 2 Desktop
long_description Terminal component for the GNOME 2 Desktop
@@ -23,11 +23,13 @@
depends_lib \
port:audiofile \
+ port:cairo \
port:dbus \
port:dbus-glib \
port:expat \
port:fontconfig \
port:freetype \
+ port:gconf \
port:gettext \
port:gnome-doc-utils \
port:gnome-platform-suite \
@@ -38,6 +40,7 @@
port:libpng \
port:perl5.8 \
port:popt \
+ port:rarian \
port:startup-notification \
port:tiff \
port:vte \
@@ -49,20 +52,48 @@
configure.args \
--mandir=${prefix}/share/man \
- --disable-scrollkeeper \
- --with-gconf-source="xml::${destroot}${prefix}/etc/gconf/gconf.xml.defaults"
+ --x-includes=${x11prefix}/include \
+ --x-libraries=${x11prefix}/lib \
+ --disable-scrollkeeper
configure.cflags-append "-no-cpp-precomp -flat_namespace -undefined suppress"
-pre-destroot { file mkdir -f ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/ }
-post-destroot {
- file delete -force ${destroot}${prefix}/var/scrollkeeper
- file delete -force ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/apps/%gconf.xml
- file delete -force ${destroot}${prefix}/etc/gconf/gconf.xml.defaults/schemas/%gconf.xml
- file delete -force ${destroot}${prefix}/etc/gconf/gconf.xml.defaults//schemas/apps/%gconf.xml
+set storagedir ${prefix}/etc/macports/gconf
+set storagefile $storagedir/${name}
+
+post-destroot {
+ # 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 {
- system "scrollkeeper-update"
+ system "${prefix}/bin/scrollkeeper-update"
+ 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"
}
livecheck.check regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080609/543c9f05/attachment-0001.htm
More information about the macports-changes
mailing list