diff options
-rw-r--r-- | kde-apps/kmix/Manifest | 1 | ||||
-rw-r--r-- | kde-apps/kmix/kmix-23.08.1.ebuild | 75 |
2 files changed, 76 insertions, 0 deletions
diff --git a/kde-apps/kmix/Manifest b/kde-apps/kmix/Manifest index 0522ad9ef4f6..ae057cfccd44 100644 --- a/kde-apps/kmix/Manifest +++ b/kde-apps/kmix/Manifest @@ -1,2 +1,3 @@ DIST kmix-23.04.3.tar.xz 1196996 BLAKE2B bfdf5e2435592b02a5b9e1d425e574770f08a8555f4af6fb2d4e787348489fc8717d3ce435753d5626872b5ab9001ec002f1f0e29fe21d33806d1750b4609476 SHA512 f583eedc86c1f705316c4aacaa16255e2052a5d4eaea4e742e5febff17f6f3702e87d4bfe47507c89808ec14481b205921786dafb736cf9535e849a87c487f37 DIST kmix-23.08.0.tar.xz 1208440 BLAKE2B 4be2d019c77f119159e09a2fa4d60683ebf1991d6e6817cb9fe7f62c379d7a04d7f96dc41989c81afb5231ff2e33b9c32212c604be1077ff12ec3affb79a2eb2 SHA512 54aa72fe4a966976b61c0ad5332bdcd5376a83d4f5c8d317fba6c27720c7a057cff650ef58734e6840a4f0ee99eb1b91fbe44e4ac0198e70b7bec600594cdda0 +DIST kmix-23.08.1.tar.xz 1208508 BLAKE2B f62d911104fa8e743dd009709c74c0f109a773e97a1b06af94f249934b40b7cd26aac3b3c35c718f659d87caa70420da2b21dcefb55848f36b1c5cfc50cdbe72 SHA512 efd66b0709b26f74ad702e249d1a43da80262d3d1a80d58346eaaa3d5c7e2f988d70858aa6d030956cf3bb424a8f8a9f9fdf8a16bcf83a44b9aafc6dcdfd49ed diff --git a/kde-apps/kmix/kmix-23.08.1.ebuild b/kde-apps/kmix/kmix-23.08.1.ebuild new file mode 100644 index 000000000000..4e14269624ab --- /dev/null +++ b/kde-apps/kmix/kmix-23.08.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_HANDBOOK="forceoptional" +ECM_TEST="false" +KFMIN=5.106.0 +QTMIN=5.15.9 +inherit ecm gear.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" + +# kde-frameworks/kwindowsystem[X]: Unconditional use of KX11Extras +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[X] + >=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-libs/libpulse + ) +" +RDEPEND="${DEPEND} + kde-plasma/kde-cli-tools:5 +" + +PATCHES=( "${FILESDIR}/${PN}-23.04.2-autostart_disable.patch" ) # TODO: upstream + +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 "therefore, autostart by default was disabled for KMix." + elog + elog "Should you prefer to still use 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 + fi + elog "KMix will be shown as [Volume Control] after manually starting it once" + elog "and will be autostarted after configuring such in KMix startup settings." + ecm_pkg_postinst +} |