# -*- 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: Portfile 115244 2013-12-30 06:17:14Z devans@macports.org $

PortSystem          1.0

name                regexxer
version             0.10
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          gnome
license             GPL-2+
platforms           darwin
maintainers         nomaintainer

description         A search and replace tool for GNOME.

long_description    regexxer is a nifty search/replace tool for the \
                    desktop user. It features recursive search through \
                    directory trees and Perl-style regular expressions.

homepage            http://${name}.sourceforge.net
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  e8223914e09472e0e75ec8c41fd3db926f051236 \
                    sha256  2a7832541a0306b3d4eb63a1cf8978d7bbfc7927e9304473fe801d71fd99736c

depends_build       port:pkgconfig \
                    port:intltool \
                    port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         port:desktop-file-utils \
                    port:gtkmm3 \
                    port:gtksourceviewmm3

patchfiles          patch-configure.ac.diff \
                    patch-Makefile.am.diff \
                    patch-fix-compilation.diff

configure.cmd       ./autogen.sh
configure.args      --disable-schemas-compile

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}

livecheck.type      gnome-with-unstable
