Files
guru/media-sound/kew/kew-4.1.2.ebuild
2026-06-30 09:38:15 +02:00

49 lines
1.2 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Kew 4.1.2 doesn't work with dbus on some configurations, please use "media-sound/kew -dbus" if dbus is not detected
# If you have a loop at launch, use "kew path xxxx" before starting "kew"
EAPI=8
inherit toolchain-funcs
DESCRIPTION="kew (/kjuː/) is a command-line music player for Linux."
HOMEPAGE="https://github.com/ravachol/kew"
SRC_URI="https://github.com/ravachol/kew/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
# Bundled programs
LICENSE+=" MIT || ( Unlicense MIT-0 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+dbus"
DEPEND="dev-libs/glib:2
media-gfx/chafa
media-libs/freeimage
media-libs/libvorbis
media-libs/opus media-libs/opusfile
media-video/ffmpeg:=
sci-libs/fftw:3.0="
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
sed -e "/^CFLAGS += -Wall/s/$/ ${CFLAGS}/" \
-e "/^LDFLAGS/s/$/ ${LDFLAGS}/" \
-e "/^LIBS/s/$/ ${LDFLAGS}/" \
-i Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)" PKG_CONFIG="$(tc-getPKG_CONFIG)" \
PREFIX="${EPREFIX}"/usr \
USE_DBUS="$(usex dbus 1 0)"
}
src_install()
{
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
}