summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2023-08-16 16:16:33 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2023-08-16 18:03:23 +0200
commit88c2b2e76a3f194f0733dd643387cc656ab50a35 (patch)
tree7921c82af55bfc9c9b03321d04ad6dcd0e46dc8a /kde-plasma/plasma-pa
parentkde-plasma/plasma-nm: drop 5.27.6 (diff)
downloadgentoo-88c2b2e76a3f194f0733dd643387cc656ab50a35.tar.gz
gentoo-88c2b2e76a3f194f0733dd643387cc656ab50a35.tar.bz2
gentoo-88c2b2e76a3f194f0733dd643387cc656ab50a35.zip
kde-plasma/plasma-pa: drop 5.27.6-r1
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-plasma/plasma-pa')
-rw-r--r--kde-plasma/plasma-pa/Manifest1
-rw-r--r--kde-plasma/plasma-pa/files/plasma-pa-5.27.6-make-setGenericVolume-keep-balance.patch42
-rw-r--r--kde-plasma/plasma-pa/files/plasma-pa-5.27.6-move-volume-logic-to-VolumeSlider.patch93
-rw-r--r--kde-plasma/plasma-pa/plasma-pa-5.27.6-r1.ebuild41
4 files changed, 0 insertions, 177 deletions
diff --git a/kde-plasma/plasma-pa/Manifest b/kde-plasma/plasma-pa/Manifest
index 302b4693dea2..307302f2bab8 100644
--- a/kde-plasma/plasma-pa/Manifest
+++ b/kde-plasma/plasma-pa/Manifest
@@ -1,2 +1 @@
-DIST plasma-pa-5.27.6.tar.xz 163288 BLAKE2B 22ffddaf60d617af18c75e77130dd353b783021c7efa766147985009235bd09a43dd9a79902cd3dde06167ef3ee917bb0530abc694a767cd40aa1c181334c39e SHA512 2d1633e96b105e7aecfd05dfe17b0dabd28e6d1f4103575fa7a006868e7d6083954ed3176bd9c5c2c0d7f0e102f91bb5296eaf8a7de5ab8baad63d8f6a23e84b
DIST plasma-pa-5.27.7.tar.xz 163440 BLAKE2B 7ef0533da14f097b664d0b67b824c195101b954afb650fd9ac316c4ec23f9417310448aca8a99fb5b01f73ec0343208ccd037f39969947b9f487ba836c259ec3 SHA512 59e9fb804d9397bf6cbbf7ae02e2cef048faf4e193e10c73fbc38ee95d1ca198b4b5d0e6c901a43182992f39949671d29d49f0006f0a0dd207163fbcc3885776
diff --git a/kde-plasma/plasma-pa/files/plasma-pa-5.27.6-make-setGenericVolume-keep-balance.patch b/kde-plasma/plasma-pa/files/plasma-pa-5.27.6-make-setGenericVolume-keep-balance.patch
deleted file mode 100644
index 2067a4fd9742..000000000000
--- a/kde-plasma/plasma-pa/files/plasma-pa-5.27.6-make-setGenericVolume-keep-balance.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From ffe6a4f4b6f56296165cea8651f35563d168ac89 Mon Sep 17 00:00:00 2001
-From: Quinten Kock <quintenkock@gmail.com>
-Date: Wed, 21 Jun 2023 20:51:11 +0200
-Subject: [PATCH] Make setGenericVolume keep balance between channels
-
-Previously setGenericVolume would apply the same amount of difference
-on all channels, making e.g. 100%/50% -> 80%/30%.
-
-This commit changes it to keep the ratios equal instead, so that the
-resulting volume would be 80%/40%, keeping the balance the same.
-
-BUG: 435840
-FIXED-IN: 5.27.7
-
-
-(cherry picked from commit cfe4a360f2640d7bd4e2d936804b100a299b268a)
----
- src/context.h | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/src/context.h b/src/context.h
-index 3d1f7525..969fa13b 100644
---- a/src/context.h
-+++ b/src/context.h
-@@ -123,9 +123,12 @@ public:
- newVolume = qBound<qint64>(0, newVolume, PA_VOLUME_MAX);
- pa_cvolume newCVolume = cVolume;
- if (channel == -1) { // -1 all channels
-- const qint64 diff = newVolume - pa_cvolume_max(&cVolume);
-+ const qint64 orig = pa_cvolume_max(&cVolume);
-+ const qint64 diff = newVolume - orig;
- for (int i = 0; i < newCVolume.channels; ++i) {
-- newCVolume.values[i] = qBound<qint64>(0, newCVolume.values[i] + diff, PA_VOLUME_MAX);
-+ const qint64 channel = newCVolume.values[i];
-+ const qint64 channelDiff = orig == 0 ? diff : diff * channel / orig;
-+ newCVolume.values[i] = qBound<qint64>(0, newCVolume.values[i] + channelDiff, PA_VOLUME_MAX);
- }
- } else {
- Q_ASSERT(newCVolume.channels > channel);
---
-GitLab
-
diff --git a/kde-plasma/plasma-pa/files/plasma-pa-5.27.6-move-volume-logic-to-VolumeSlider.patch b/kde-plasma/plasma-pa/files/plasma-pa-5.27.6-move-volume-logic-to-VolumeSlider.patch
deleted file mode 100644
index 2a01651f8814..000000000000
--- a/kde-plasma/plasma-pa/files/plasma-pa-5.27.6-move-volume-logic-to-VolumeSlider.patch
+++ /dev/null
@@ -1,93 +0,0 @@
-From 91dcf51a0cda029519c917c93f330a6ced531784 Mon Sep 17 00:00:00 2001
-From: Quinten Kock <quintenkock@gmail.com>
-Date: Wed, 21 Jun 2023 21:03:15 +0200
-Subject: [PATCH] Put volume change logic centrally in VolumeSlider
-
-This commit puts the volume change logic in one place, to prevent
-issues related to changing the volume twice.
-
-Without this commit there are issues such as dragging from 100%/100% to
-100%/50% and then the mixer changing the volume to 50%/25%.
-
-I'm not sure I'm entirely happy with this, but it seems to work.
-
-
-(cherry picked from commit fec28d12c086a13038f6c40f10d3c25bb7517660)
----
- src/kcm/package/contents/ui/DeviceListItem.qml | 18 ++----------------
- src/kcm/package/contents/ui/VolumeSlider.qml | 16 +++++++++++++++-
- 2 files changed, 17 insertions(+), 17 deletions(-)
-
-diff --git a/src/kcm/package/contents/ui/DeviceListItem.qml b/src/kcm/package/contents/ui/DeviceListItem.qml
-index 09feea71..ab0ce6f0 100644
---- a/src/kcm/package/contents/ui/DeviceListItem.qml
-+++ b/src/kcm/package/contents/ui/DeviceListItem.qml
-@@ -178,12 +178,6 @@ ColumnLayout {
- Layout.columnSpan: 2
- Layout.alignment: Qt.AlignVCenter
- visible: !balanceButton.checked
--
-- value: Volume
-- onMoved: {
-- Volume = value;
-- Muted = (value === 0);
-- }
- }
-
- Repeater {
-@@ -203,16 +197,8 @@ ColumnLayout {
- Layout.fillWidth: true
-
- value: ChannelVolumes[index]
-- onMoved: {
-- delegate.pulseObject.setChannelVolume(index, value);
--
-- // volumes are updated async, so we'll just assume it worked here
-- let newChannelVolumes = ChannelVolumes;
-- newChannelVolumes[index] = value;
-- Muted = newChannelVolumes.every((volume) => {
-- return volume === 0;
-- });
-- }
-+
-+ channel: index
- }
- }
- }
-diff --git a/src/kcm/package/contents/ui/VolumeSlider.qml b/src/kcm/package/contents/ui/VolumeSlider.qml
-index c2cf0a31..fc0c4a6c 100644
---- a/src/kcm/package/contents/ui/VolumeSlider.qml
-+++ b/src/kcm/package/contents/ui/VolumeSlider.qml
-@@ -19,6 +19,8 @@ RowLayout {
-
- property alias value: slider.value
-
-+ property int channel: -1
-+
- QQC2.Slider {
- id: slider
-
-@@ -35,7 +37,19 @@ RowLayout {
- onMoved: {
- // Since it is not possible to use stepSize without tickmarks being displayed, force 1% steps
- // Unfortunately without stepSize, it cannot snap visually whilst scrolling by changing value instead of Volume as it breaks the binding
-- Volume = Math.round(value * 100 / PulseAudio.NormalVolume) * PulseAudio.NormalVolume / 100
-+ let volume = Math.round(value * 100 / PulseAudio.NormalVolume) * PulseAudio.NormalVolume / 100
-+ if (channel == -1) {
-+ Volume = volume
-+ Muted = volume === 0;
-+ } else {
-+ delegate.pulseObject.setChannelVolume(channel, volume);
-+
-+ // volumes are updated async, so we'll just assume it worked here
-+ let newChannelVolumes = ChannelVolumes;
-+ newChannelVolumes[index] = value;
-+ Muted = newChannelVolumes.every(volume => volume === 0);
-+ }
-+
- sliderRow.moved()
- }
-
---
-GitLab
-
diff --git a/kde-plasma/plasma-pa/plasma-pa-5.27.6-r1.ebuild b/kde-plasma/plasma-pa/plasma-pa-5.27.6-r1.ebuild
deleted file mode 100644
index fefc34e26180..000000000000
--- a/kde-plasma/plasma-pa/plasma-pa-5.27.6-r1.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ECM_HANDBOOK="forceoptional"
-KFMIN=5.106.0
-QTMIN=5.15.9
-inherit ecm plasma.kde.org
-
-DESCRIPTION="Plasma applet for audio volume management using PulseAudio"
-
-LICENSE="GPL-2" # TODO: CHECK
-SLOT="5"
-KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
-IUSE=""
-
-DEPEND="
- dev-libs/glib:2
- >=dev-qt/qtdbus-${QTMIN}:5
- >=dev-qt/qtdeclarative-${QTMIN}:5
- >=dev-qt/qtgui-${QTMIN}:5
- >=kde-frameworks/kcoreaddons-${KFMIN}:5
- >=kde-frameworks/kdeclarative-${KFMIN}:5
- >=kde-frameworks/kglobalaccel-${KFMIN}:5
- >=kde-frameworks/ki18n-${KFMIN}:5
- >=kde-frameworks/plasma-${KFMIN}:5
- media-libs/libcanberra
- media-libs/libpulse
-"
-RDEPEND="${DEPEND}
- >=dev-qt/qtquickcontrols2-${QTMIN}:5
- >=kde-frameworks/kirigami-${KFMIN}:5
- x11-themes/sound-theme-freedesktop
-"
-BDEPEND=">=kde-frameworks/kcmutils-${KFMIN}:5"
-
-PATCHES=( # in 5.27.7:
- "${FILESDIR}/${P}-make-setGenericVolume-keep-balance.patch" # KDE-bug 435840
- "${FILESDIR}/${P}-move-volume-logic-to-VolumeSlider.patch"
-)