# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortGroup compiler_blacklist_versions 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
description A GNOME Web browser.
long_description A web browser is more than an application, it is a \
way of thinking, it is a way of seeing the world. \
Epiphany's principles are simplicity and standards \
maintainers {devans @dbevans} openmaintainer
homepage https://wiki.gnome.org/Apps/Web
master_sites gnome:sources/${name}/${branch}/
checksums rmd160 82cf228a8c45699cf0cfdded63de3e5a51cd968d \
sha256 690546a701f046c5c2b3a092659589ea6e17cb0f9a81ec3fdb3046b00cede6f7 \
# 3.29.0 - requires libdazzle and newest webkit2-gtk (-devel)
#checksums rmd160 2d453899321ae23e26604d6ffa7992861b109c81 \
# sha256 d360d9301da8a834f4fee56e246a1bfc7641a3c8d5ed78090e550deea5ad3ee8 \
depends_lib-append port:desktop-file-utils \
port:gsettings-desktop-schemas \
port:libhttpseverywhere \
path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk \
depends_run port:adwaita-icon-theme \
# error: invalid value 'gnu11' in '-std=gnu11'
compiler.blacklist-append *gcc-3.* *gcc-4.* {clang < 212}
# fix the way the JSC_API_AVAILABLE macro works in WebKitAvailablity.h
# fixes JSValueRef.h:54:18: error: missing ',' between enumerators
# kJSTypeSymbol JSC_API_AVAILABLE(macosx(JSC_MAC_TBA), ios(JSC_IOS_TBA))
configure.cppflags-append -DBUILDING_GTK__
# specify a python3 version
patchfiles patch-post-install-python.diff
reinplace "s|@@PYTHON3@@|${prefix}/bin/python3.6|g" post_install.py
system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications"
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"