# -*- 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 python 1.0
PortGroup github 1.0
PortGroup app 1.0
github.setup quodlibet quodlibet 4.5.0 release-
github.tarball_from releases
revision 0
categories-append audio gnome
maintainers nomaintainer
license GPL-2+
description audio library manager and player for GTK+
long_description Quod Libet is a GTK+-based audio player written in Python, \
using the Mutagen tagging library and GStreamer for playback.\
It provides several different ways to view your audio library, \
as well as support for Internet radio and audio feeds.\
It has extremely flexible metadata tag editing and searching capabilities.
checksums rmd160 6ea8c28e334d3271bc5594f063559b4205a0f249 \
sha256 301615829f652cbafedb35539237162a58bc1ee71a567d249f7789d9268245bc \
size 5294493
python.default_version 310
depends_build-append \
port:gettext \
port:py${python.version}-setuptools
depends_lib-append port:dbus-python${python.version} \
port:libsoup \
port:gstreamer1-gst-plugins-good \
path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
port:py${python.version}-cairo \
port:py${python.version}-feedparser \
port:py${python.version}-gobject3 \
port:py${python.version}-mutagen \
port:py${python.version}-pyobjc
depends_run-append port:adwaita-icon-theme
variant quartz {
depends_lib-append port:gtk-osx-application-gtk3
}
post-patch {
foreach file { quodlibet.py exfalso.py operon.py } {
reinplace "s|/usr/bin/env python3|${python.bin}|g" \
${worksrcpath}/${file}
}
}
post-destroot {
# icon keeps bouncing in the dock otherwise
if {![variant_isset quartz]} {
reinplace -E {s|(APPL)|\1 LSUIElement1|} \
"${destroot}${applications_dir}/Quodlibet.app/Contents/Info.plist"
}
}
app.icon quodlibet/images/hicolor/scalable/apps/io.github.quodlibet.QuodLibet.svg
app.executable "${frameworks_dir}/Python.framework/Versions/${python.branch}/bin/quodlibet"
notes "If you want to play mp3 files, don't forget to install gstreamer1-gst-plugins-ugly"