# -*- 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                zile
version             2.6.4
revision            0
categories          editors
license             GPL-3+
maintainers         nomaintainer
description         Zile Is Lossy Emacs
long_description    \
                    Zile is another Emacs-clone. Zile is a customizable, self-documenting \
                    real-time open-source display editor. Zile was written to be as similar as \
                    possible to Emacs\; every Emacs user should feel at home.

homepage            https://www.gnu.org/software/zile/
master_sites        gnu

checksums           rmd160  fa035e85977dd051c3217e702d12b9adb8cb6e30 \
                    sha256  d5d44b85cb490643d0707e1a2186f3a32998c2f6eabaa9481479b65caeee57c0 \
                    size    1330917

depends_build       port:help2man \
                    port:pkgconfig

depends_lib         port:boehmgc \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:libgee \
                    port:ncurses

# https://gitlab.gnome.org/GNOME/vala/-/issues/1408
# https://trac.macports.org/ticket/71629
# broken due to changes in Clang >=1500
if {[string match *clang* ${configure.compiler}]} {
    configure.cflags-append \
                        -Wno-incompatible-function-pointer-types
}

post-extract {
    file attributes ${worksrcpath}/configure -permissions a+x
}

configure.args      --disable-silent-rules
