# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name gconf-editor version 2.24.1 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 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 depends_lib \ port:libgnome \ port:libgnomeui \ port:gconf \ port:gtk2 depends_build \ port:gnome-doc-utils use_bzip2 yes configure.args --mandir=${prefix}/share/man --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" } livecheck.check regex livecheck.url http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/ livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}