# -*- 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
description A simple GTK+ 2 text editor that emphasizes simplicity.
homepage http://tarot.freeshell.org/leafpad/
master_sites https://savannah.nongnu.org/download/leafpad/
checksums rmd160 df9caa1d4248e7da3dc5ecae31f3e758f477732e \
sha256 959d22ae07f22803bc66ff40d373a854532a6e4732680bf8a96a3fbcb9f80a2c
depends_build port:pkgconfig \
# reconfigure using intltoolize and autoreconf (no autogen.sh available) for intltool 0.51 compatibility
system -W ${worksrcpath} "${prefix}/bin/intltoolize --force --copy --automake"
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
livecheck.url ${master_sites}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"