# -*- 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 # $Id$ PortSystem 1.0 PortGroup gobject_introspection 1.0 name gnome-online-accounts if {${os.platform} eq "darwin" && ${os.major} >= 13} { set mavericks_or_better yes # version 3.16.0+ requires webkit2gtk-4.0 version 3.15.90 } else { set mavericks_or_better no version 3.8.5 revision 2 } license LGPL-2 set branch [join [lrange [split ${version} .] 0 1] .] description Single sign-on framework for GNOME long_description ${description} maintainers devans openmaintainer categories gnome platforms darwin homepage https://wiki.gnome.org/Projects/GnomeOnlineAccounts master_sites gnome:sources/${name}/${branch}/ use_xz yes if {$mavericks_or_better} { checksums rmd160 c927580fb050ec011b729f69ca364a2d59493236 \ sha256 3aac92ce0aee089f7167a32bc1b25e86219dfde4dda0e21aa4caf5337b12f537 depends_build port:pkgconfig \ port:intltool \ port:gnome-common \ port:autoconf \ port:automake \ port:libtool \ port:gtk-doc depends_lib port:gtk3 \ path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3 \ port:libsoup \ port:json-glib \ port:rest \ port:libsecret \ port:libxml2 \ port:gcr \ port:telepathy-glib gobject_introspection yes # use upstream autogen.sh to update m4/intltool.m4 and telepathy-account-widgets/m4/intltool.m4 and reconfigure post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} } configure.cmd ./autogen.sh configure.args --enable-ubuntu-online-accounts=no \ --disable-exchange \ --enable-flickr \ --enable-google \ --enable-imap-smtp \ --enable-owncloud \ --enable-yahoo \ --enable-facebook \ --enable-windows-live \ --enable-telepathy \ --enable-pocket \ --disable-kerberos \ --disable-maintainer-mode \ --disable-silent-rules } else { checksums rmd160 21889d886fa262e536929ecb6905cfcd3f50a462 \ sha256 34d6fbc33bda4c7bba8aa52343ebe1eb8afe1033097c10a2d9979c0a99593e5d depends_build port:pkgconfig \ port:intltool \ port:gtk-doc \ port:gnome-common depends_lib port:gtk3 \ path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3 \ port:libsoup \ port:json-glib \ port:rest \ port:libsecret \ port:libxml2 \ port:gcr patchfiles patch-alarm.diff gobject_introspection yes # reconfigure using upstream autogen.sh for intltool 0.51 compatibility post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} } configure.cmd ./autogen.sh configure.cflags-append -Wno-format-nonliteral configure.args --disable-exchange \ --enable-flickr \ --enable-google \ --enable-imap-smtp \ --enable-owncloud \ --enable-facebook \ --enable-windows-live \ --disable-kerberos \ --disable-silent-rules } platform darwin { if {${configure.cxx_stdlib} eq "libstdc++"} { depends_lib-delete path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3 depends_lib-append path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3-2.0 } } if {$mavericks_or_better} { livecheck.type gnome-with-unstable } else { # Version 3.8.5 is the last version that will build on darwin < 13 livecheck.type none }