# -*- 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 107999 2013-07-10 17:01:52Z devans@macports.org $

PortSystem      1.0

name            leafpad
version         0.8.17
license         GPL-2
description     A simple GTK+ 2 text editor that emphasizes simplicity.
long_description \
                ${description}
maintainers     nomaintainer
categories      editors gnome
platforms       darwin 
homepage        http://tarot.freeshell.org/leafpad/
master_sites    http://savannah.nongnu.org/download/leafpad/

checksums       md5     d39acdf4d31de309d484511bdc9f5924 \
                sha1    d13f585f3b2d9ea263102e1abb9fc688e3e5874a \
                rmd160  8302c5cff5174167567ab7a5eac664b95e6947a5

depends_build   port:pkgconfig

depends_lib     port:gtk2 \
                port:freetype \
                port:desktop-file-utils

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