# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name		ghex
version		2.24.0
set branch  [join [lrange [split ${version} .] 0 1] .]
description	GHex - a binary editor.
long_description	GHex allows the user to load data from any file, \
			view and edit it in either hex or ascii. A must for \
			anyone playing games that use non-ascii format for saving.
maintainers	nomaintainer
categories	gnome
platforms	darwin
homepage	http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

use_bzip2	yes

checksums       md5     982b2a4e70e80d2166bcc782e989889c \
                sha1    6fd8e0df1cb6fb9fcf60cfa2bc88877713e4366c \
                rmd160  dfdcf1eda509246f805ab593cf4a3e8a06e831d7

depends_build   port:pkgconfig \
                port:intltool \
                port:p5-xml-parser \
                port:gnome-doc-utils

depends_lib	port:libgnomeprintui \
                port:libgnomeui

configure.args  --disable-schemas-install \
                --disable-scrollkeeper

configure.cflags-append -no-cpp-precomp

post-activate {
   system "scrollkeeper-update"
   system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
