# -*- 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                i3
version             4.18.1
revision            0
checksums           rmd160  d3eb88594c6a6ec9b594473e9b9788632c65d673 \
                    sha256  9abf90fa803f2cb8e53e3bc8c952eba48c43463083608e4107fc53ab224be07c \
                    size    1217703

categories          x11
license             BSD
maintainers         nomaintainer

description         improved tiling window manager
long_description    i3 is a tiling window manager, completely written from \
                    scratch. i3 is primarily targeted at advanced users and \
                    developers.

homepage            https://i3wm.org/
master_sites        ${homepage}downloads/
use_bzip2           yes

patchfiles          patch-Makefile.in.diff

# asciidoc seems to not be used
# other stuff might not be required
depends_build       port:asciidoc \
                    port:docbook-xml-4.5 \
                    port:pkgconfig \
                    port:xmlto

# libxcursor changed to xcb-util-cursor in devel branch
depends_lib         path:lib/pkgconfig/cairo.pc:cairo \
                    port:dmenu \
                    port:gettext \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:libev \
                    port:libiconv \
                    port:libxkbcommon \
                    port:libxkbcommon-x11 \
                    path:lib/pkgconfig/pango.pc:pango \
                    port:pcre \
                    port:perl5 \
                    port:startup-notification \
                    port:xorg-libxcb \
                    port:xorg-xcb-util \
                    port:xorg-xcb-util-cursor \
                    port:xorg-xcb-util-keysyms \
                    port:xorg-xcb-util-wm \
                    port:xorg-xcb-util-xrm \
                    port:yajl

# dmenu is not universal
universal_variant   no

configure.args      --disable-silent-rules

build.args-append   CC="${configure.cc} [get_canonical_archflags]"

notes "
    To use the i3 window manager, edit or create the file ~/.xinitrc\
    and put the following line in it:

    exec ${prefix}/bin/i3
"

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     $name-(\\d+(?:\\.\\d+)*)
