# -*- 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 # $Id: Portfile 147834 2016-04-17 10:33:16Z devans@macports.org $ PortSystem 1.0 name gnome-applets version 3.20.0 set branch [join [lrange [split ${version} .] 0 1] .] description GNOME panel applets. long_description This package contains applets for use with the \ GNOME panel. maintainers devans openmaintainer categories gnome license GPL-2+ platforms darwin homepage https://wiki.gnome.org/Projects/GnomeApplets master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 9bff2d37e15630db5f78607e653bc5f6fb7b523e \ sha256 cf3782447512a0cad144475783e7d9c3aee3bb210ad0b33bba858f102e6cdd94 depends_build port:pkgconfig \ port:intltool \ port:itstool \ port:yelp-tools \ port:autoconf \ port:automake \ port:libtool depends_lib port:adwaita-icon-theme \ port:gtk3 \ port:gnome-panel \ port:libgtop \ port:libwnck3 \ port:libnotify \ port:dbus \ port:dbus-glib \ port:policykit \ port:upower \ port:gucharmap \ port:libxml2 \ port:libgweather patchfiles patch-m4-ax_compiler_flags_ldflags.m4.diff \ patch-configure.ac.diff post-patch { reinplace "s|/usr/bin/python3|${configure.python}|" \ ${worksrcpath}/invest-applet/invest/invest-applet.py \ ${worksrcpath}/invest-applet/invest/invest-chart \ ${worksrcpath}/invest-applet/invest/test.py } # reconfigure using upstream autogen.sh for intltool 0.51 compatibility post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} } configure.cmd ./autogen.sh # invest applet requires python3 # use python34 configure.python ${prefix}/bin/python3.4 set python_framework ${frameworks_dir}/Python.framework/Versions/3.4 configure.pkg_config_path ${python_framework}/lib/pkgconfig configure.args --enable-compile-warnings=no \ --disable-battstat \ --disable-cpufreq \ --disable-frequency-selector \ --x-includes=${prefix}/include \ --x-libraries=${prefix}/lib \ --disable-schemas-compile \ --disable-silent-rules post-activate { system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor" system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" } livecheck.type gnome