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

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

description         A text editor for Xfce based on Leafpad
long_description    ${description}

homepage            https://www.xfce.org
master_sites        https://archive.xfce.org/src/apps/${name}/${branch}/
use_bzip2           yes

checksums           sha256  e7cacb3b8cb1cd689e6341484691069e73032810ca51fc747536fc36eb18d19d \
                    rmd160  186289b9c197e25b812cea87f354f78dc3608ecb \
                    size    1402314

depends_build       port:desktop-file-utils \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:intltool \
                    port:pkgconfig
depends_lib         path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:gtksourceview4 \
                    port:libxfce4ui \
                    port:libxfce4util

configure.args      --enable-dbus

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