# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake git-r3

DESCRIPTION="Elegant audio converter based on ffmpeg"
HOMEPAGE="https://github.com/aka-mccloud/amulet"
EGIT_REPO_URI="https://github.com/aka-mccloud/${PN}.git"

LICENSE="GPL-2"
SLOT="0"
IUSE="+flac +mp3"

# Plugins are built unconditionally and execute flac/lame via QProcess; USE
# flags select the runtime tools, not plugin builds. Default both on so
# conversions work. verified 2026-07-27
RDEPEND="
	dev-qt/qtbase:6[gui,widgets]
	media-libs/taglib
	flac? ( media-libs/flac )
	mp3? ( media-sound/lame )
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}"/amulet-9999-qt6.patch
)