# -*- 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

PortSystem      1.0
PortGroup       github 1.0

github.setup    stevenhoneyman l3afpad 0.8.18.1.11 v
name            l3afpad
license         GPL-2+
description     A simple GTK+ 3 text editor that emphasizes simplicity.
long_description \
                ${description}
maintainers     physics.ox.ac.uk:russell.jones openmaintainer
categories      editors gnome
platforms       darwin

checksums       rmd160  35f5998c78b7c4141dcd5601fa9296dde4821782 \
                sha256  50d3e842c9c214e02e43da1f149831a36bd166528d3a2f7bb16a76f81ddf499d

depends_build   port:pkgconfig \
                port:intltool

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

# reconfigure using intltoolize and autoreconf (no autogen.sh available) for intltool 0.51 compatibility

pre-configure {
    system -W ${worksrcpath} "${prefix}/bin/intltoolize --force --copy --automake"
}

use_autoreconf  yes
autoreconf.args -fvi

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"
}
