[50579] trunk/dports/gnome/gconf-editor/Portfile

devans at macports.org devans at macports.org
Mon May 4 13:13:36 PDT 2009


Revision: 50579
          http://trac.macports.org/changeset/50579
Author:   devans at macports.org
Date:     2009-05-04 13:13:36 -0700 (Mon, 04 May 2009)
Log Message:
-----------
gconf-editor:

  * take maintainership openmaintainer
  * update dependencies
  * simplify installation of schemas

Modified Paths:
--------------
    trunk/dports/gnome/gconf-editor/Portfile

Modified: trunk/dports/gnome/gconf-editor/Portfile
===================================================================
--- trunk/dports/gnome/gconf-editor/Portfile	2009-05-04 20:07:16 UTC (rev 50578)
+++ trunk/dports/gnome/gconf-editor/Portfile	2009-05-04 20:13:36 UTC (rev 50579)
@@ -4,83 +4,43 @@
 PortSystem 1.0
 
 name		gconf-editor
-version		2.24.1
+version		2.26.0
 set branch	[join [lrange [split ${version} .] 0 1] .]
 description	gconf-editor is a gconf database editor for GNOME 2.0.
 long_description        gconf-editor is a gconf database editor for \
 			GNOME 2.0.  It is similar to regedit on Windows
-maintainers	nomaintainer
+maintainers	devans openmaintainer
 categories	gnome
 platforms	darwin
 homepage	http://www.gnome.org/projects/gconf/
 master_sites    gnome:sources/gconf-editor/${branch}/
 
-checksums       md5     2fe93cb2ac8ea0d34860cc6d059076d8 \
-                sha1    cc19e19add4f509d75553e5d03609f7529cc29a4 \
-                rmd160  ee8607b951548a16fdb6705c3efa95e5349fb0e1
+checksums       md5     2dc76415b22d805cfacfcd5fb98f185c \
+                sha1    8b0369a747394f2ee0bec225dab561477b1531c6 \
+                rmd160  ef5a446bb99617208d2f6de374f9d2c764a29bc9
 
-depends_lib \
-	port:libgnome \
-	port:libgnomeui \
-	port:gconf \
-	port:gtk2
+depends_build   port:pkgconfig \
+                port:gnome-doc-utils
 
-depends_build \
-	port:gnome-doc-utils
+depends_lib     port:gconf \
+                port:policykit
 
 use_bzip2	yes
 
-configure.args  --mandir=${prefix}/share/man --disable-scrollkeeper
+configure.args  --mandir=${prefix}/share/man \
+                --disable-schemas-install \
+                --disable-scrollkeeper
+
 configure.cppflags-append "-L${prefix}/lib"
 
-set storagedir  ${prefix}/etc/macports/gconf
-set storagefile $storagedir/${name}
-
 post-destroot {
 	file delete -force ${destroot}${prefix}/var/scrollkeeper
-
-	# We need to register some stuff to gconf. Just putting the
- 	# schema files to the right place is not enough.
-	# For now we store the files in
-	# ${prefix}/etc/macports/gconf/${name} and use that file
-	# in post-activate. Until there is no better solution
-	# this will make it into the gnomeportgroup
-
-        # Find all .schemas files 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"
-
-	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 "scrollkeeper-update"
+   system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
+        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
 }
 
 livecheck.check regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090504/106ac963/attachment-0001.html>


More information about the macports-changes mailing list