# -*- 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 108079 2013-07-12 18:51:43Z devans@macports.org $

PortSystem      1.0

name            ghex
version         2.24.0
revision        1
license         GPL-2
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:gnome-doc-utils

depends_lib     port:desktop-file-utils \
                port:libgnomeprintui \
                port:libgnomeui

depends_run     port:yelp

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

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

livecheck.type  gnome
