# -*- 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 active_variants 1.1 name surf version 2.0 license MIT categories www maintainers nomaintainer description simple webkit2-gtk-based browser long_description surf is a simple Web browser based on WebKit2/GTK+. It is able to display \ websites and follow links. It supports the XEmbed protocol which makes it possible to embed \ it in another application. Furthermore, one can point surf to another URI by setting its XProperties. homepage https://surf.suckless.org/ platforms darwin master_sites https://dl.suckless.org/${name}/ checksums rmd160 02c94f3009e9fe69b12087d5884186b07bf89790 \ sha256 faee4c7a62c38fc9791eff1ad06787c3c9b2b79f338806827f5152a7bc54951d depends_build-append \ port:pkgconfig depends_lib-append path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk \ path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \ port:dmenu depends_run-append port:xprop # uses X11 specific code in UI require_active_variants \ path:lib/pkgconfig/gtk+-3.0.pc:gtk3 x11 use_configure no patchfiles-append patch-config-mk.diff \ patch-surf-Style-namecollision.diff \ patch-downloader.diff post-patch { reinplace "s|@@MACPORTS_PREFIX@@|${prefix}|g" ${worksrcpath}/config.mk } configure.cc-append -DBUILDING_GTK__ build.args CC="${configure.cc}" destroot.args CC="${configure.cc}" livecheck.type regex livecheck.url ${master_sites} livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)