# -*- 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-music version 3.22.1 license GPL-2 set branch [join [lrange [split ${version} .] 0 1] .] description Music is the GNOME music playing application. long_description ${description} maintainers devans openmaintainer categories gnome platforms darwin homepage https://wiki.gnome.org/Apps/Music master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 a4ad1d3f91277215bd0e7523ba918657ad012cff \ sha256 10eda266261a2f8e374906b49712f66c7e05528055d7a7be965ef8a83c005603 depends_build port:pkgconfig \ port:intltool \ port:yelp-tools \ port:itstool \ port:gnome-common \ port:autoconf \ port:automake \ port:libtool depends_lib port:desktop-file-utils \ port:gtk3 \ port:grilo-plugins \ port:tracker \ port:libnotify depends_run port:gnome-themes-standard \ port:yelp gobject_introspection yes patchfiles patch-configure.ac.diff post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} reinplace "s|^#!/.*|#!${configure.python}|" ${worksrcpath}/gnome-music.in } # reconfigure using upstream autogen.sh for intltool 0.51 compatibility configure.cmd ./autogen.sh configure.args --disable-schemas-compile \ --disable-silent-rules # requires python >= 3.3 # default to python 3.4 variant python34 conflicts python35 description {Use Python 3.4 at run time} { depends_lib-append port:py34-gobject3 \ port:py34-requests \ port:dbus-python34 configure.python ${prefix}/bin/python3.4 set python_prefix ${frameworks_dir}/Python.framework/Versions/3.4 configure.pkg_config_path ${python_prefix}/lib/pkgconfig } variant python35 conflicts python34 description {Use Python 3.5 at run time} { depends_lib-append port:py35-gobject3 \ port:py35-requests \ port:dbus-python35 configure.python ${prefix}/bin/python3.5 set python_prefix ${frameworks_dir}/Python.framework/Versions/3.5 configure.pkg_config_path ${python_prefix}/lib/pkgconfig } if {![variant_isset python35]} { default_variants +python34 } # port installs hicolor icons, desktop application file, and gschemas post-activate { system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor" system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" } livecheck.type gnome