diff options
Diffstat (limited to 'kde-apps/kmix')
-rw-r--r-- | kde-apps/kmix/Manifest | 1 | ||||
-rw-r--r-- | kde-apps/kmix/kmix-22.04.1.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/kde-apps/kmix/Manifest b/kde-apps/kmix/Manifest index f6b9a6eaaba6..1e9f870573d3 100644 --- a/kde-apps/kmix/Manifest +++ b/kde-apps/kmix/Manifest @@ -1,2 +1,3 @@ DIST kmix-21.12.3.tar.xz 1163936 BLAKE2B fa318120c8285a126c29b8ba1f76c6b093b77a32b5bf85a30b476562093e9048b70f9abf2bf8e75403cb095f6c8c27e74f4ed6eb7f9dbdff05b6660b9d422123 SHA512 6f8976d234defbccfc509e7d6d275bfa0f0da7b13757ed2ba951ac9fda0dcd9cad412517c41b8d3d803032898f668047de069581a4c386a3fa3e7db9bb96c0eb DIST kmix-22.04.0.tar.xz 1163708 BLAKE2B 3640a5e39f9ad0bdd99c43912c94416d5e69f47e91d0d1a008503e82e1a4e4e946ec0db4124155c2e188f95ae7784457067a7cfbde6a6f6cb322a3a1736969e3 SHA512 465f47fe085442c46d9fb59ab116cb7bde20c7fff0a62f05c1a4bf8398143d15f1d62be2337b8ab14406dce3ca759cbcad3d55f8cc0b0f13b1e7f842997522ce +DIST kmix-22.04.1.tar.xz 1163664 BLAKE2B acf46df2f36297538d86169dbe3498a8abb92fea50c41fe7b7ace65675b5d326835bb4bdc99fffd492b847504f6f074ed00b8d82ea7208fd58cdb8f34878af64 SHA512 c4a789bfb8d62f63cdcdb7a83ece5646bd22e05b5e2cc655017d28b71c8afa83890eb83011530006452ce4355e11f42d033b4b76712ea9d42ad963c1eab477b8 diff --git a/kde-apps/kmix/kmix-22.04.1.ebuild b/kde-apps/kmix/kmix-22.04.1.ebuild new file mode 100644 index 000000000000..9eb4e3156b49 --- /dev/null +++ b/kde-apps/kmix/kmix-22.04.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_HANDBOOK="forceoptional" +ECM_TEST="false" +KFMIN=5.92.0 +QTMIN=5.15.3 +inherit ecm kde.org + +DESCRIPTION="Volume control gui based on KDE Frameworks" +HOMEPAGE="https://apps.kde.org/kmix/" + +LICENSE="GPL-2" # TODO: CHECK +SLOT="5" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="alsa plasma pulseaudio" + +DEPEND=" + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=dev-qt/qtxml-${QTMIN}:5 + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/kdbusaddons-${KFMIN}:5 + >=kde-frameworks/kglobalaccel-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/knotifications-${KFMIN}:5 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 + >=kde-frameworks/kwindowsystem-${KFMIN}:5 + >=kde-frameworks/kxmlgui-${KFMIN}:5 + >=kde-frameworks/solid-${KFMIN}:5 + alsa? ( >=media-libs/alsa-lib-1.0.14a ) + plasma? ( >=kde-frameworks/plasma-${KFMIN}:5 ) + pulseaudio? ( + media-libs/libcanberra + >=media-sound/pulseaudio-0.9.12 + ) +" +RDEPEND="${DEPEND} + kde-plasma/kde-cli-tools:5 + pulseaudio? ( || ( + media-video/pipewire + media-sound/pulseaudio-daemon + media-sound/pulseaudio[daemon(+)] + ) ) +" + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package alsa ALSA) + -DBUILD_DATAENGINE=$(usex plasma) + $(cmake_use_find_package pulseaudio Canberra) + $(cmake_use_find_package pulseaudio PulseAudio) + ) + + ecm_src_configure +} + +pkg_postinst() { + if use pulseaudio && has_version kde-plasma/plasma-pa; then + elog "In KDE Plasma, kde-plasma/plasma-pa is the default audio volume handler." + elog "Should you prefer this to be kde-apps/kmix instead, do the following:" + elog " - In system tray, right click on [Show hidden items]" + elog " - Select [Configure System Tray]" + elog " - In [Entries], search for [Audio Volume] and set it to [Disabled]" + elog "KMix will be shown as [Volume Control]." + fi + ecm_pkg_postinst +} |