From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 376A4158043 for ; Fri, 19 Apr 2024 10:08:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7D5B9E29FA; Fri, 19 Apr 2024 10:08:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C85FE29FA for ; Fri, 19 Apr 2024 10:08:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6E5D33434D5 for ; Fri, 19 Apr 2024 10:08:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 10B3E1710 for ; Fri, 19 Apr 2024 10:08:11 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1713520154.7fa19192157da7ddfcd9d61706308e8fd654e076.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: media-sound/TauonMusicBox/files/, media-sound/TauonMusicBox/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-sound/TauonMusicBox/TauonMusicBox-7.7.2-r2.ebuild media-sound/TauonMusicBox/files/TauonMusicBox-fix-desktop.patch X-VCS-Directories: media-sound/TauonMusicBox/ media-sound/TauonMusicBox/files/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 7fa19192157da7ddfcd9d61706308e8fd654e076 X-VCS-Branch: master Date: Fri, 19 Apr 2024 10:08:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b1df9239-f88a-4db9-8268-cecc73c16f81 X-Archives-Hash: 14cd76adc9c980f3b99afadacffcaa1a commit: 7fa19192157da7ddfcd9d61706308e8fd654e076 Author: David Roman gmail com> AuthorDate: Fri Apr 19 09:49:14 2024 +0000 Commit: David Roman gmail com> CommitDate: Fri Apr 19 09:49:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7fa19192 media-sound/TauonMusicBox: fix desktop file and icon cache Closes: https://bugs.gentoo.org/930236 Closes: https://bugs.gentoo.org/930237 Closes: https://bugs.gentoo.org/925576 Signed-off-by: David Roman gmail.com> .../TauonMusicBox/TauonMusicBox-7.7.2-r2.ebuild | 122 +++++++++++++++++++++ .../files/TauonMusicBox-fix-desktop.patch | 22 ++++ 2 files changed, 144 insertions(+) diff --git a/media-sound/TauonMusicBox/TauonMusicBox-7.7.2-r2.ebuild b/media-sound/TauonMusicBox/TauonMusicBox-7.7.2-r2.ebuild new file mode 100644 index 0000000000..ae30a05d6b --- /dev/null +++ b/media-sound/TauonMusicBox/TauonMusicBox-7.7.2-r2.ebuild @@ -0,0 +1,122 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PLOCALES="cs de es fr_FR hu id it ja_JP nb_NO pl pt pt_BR pt_PT ru sv tr zh_CN" + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit cmake desktop distutils-r1 optfeature plocale xdg + +DESCRIPTION="The desktop music player of today!" +HOMEPAGE="https://tauonmusicbox.rocks/" + +if [[ ${PV} == *9999 ]]; then + EGIT_SUBMODULES=() + inherit git-r3 + EGIT_REPO_URI="https://github.com/Taiko2k/${PN}" +else + SRC_URI="https://github.com/Taiko2k/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" + +PHAZOR_DEPS=" + dev-libs/miniaudio + media-libs/flac + media-libs/libopenmpt + media-libs/opus + media-libs/opusfile + media-libs/libsamplerate + media-libs/libvorbis + media-sound/mpg123 + media-sound/wavpack + sci-libs/kissfft[-cpu_flags_x86_sse] +" + +DEPEND=" + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/musicbrainzngs[${PYTHON_USEDEP}] + dev-python/natsort[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/PySDL2[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/setproctitle[${PYTHON_USEDEP}] + dev-python/send2trash[${PYTHON_USEDEP}] + media-video/ffmpeg + media-libs/mutagen[${PYTHON_USEDEP}] + media-libs/sdl2-image + + ${PHAZOR_DEPS} +" + +RDEPEND=" + ${DEPEND} + + dev-libs/libappindicator + x11-libs/libnotify +" + +BDEPEND="sys-devel/gettext" + +src_prepare() { + # Workaround. If PATCHES is used it would be applied to times and fail + eapply "${FILESDIR}/${PN}-fix-desktop.patch" + + distutils-r1_src_prepare + cmake_src_prepare +} + +src_configure() { + distutils-r1_src_configure + cmake_src_configure +} + +src_compile() { + distutils-r1_src_compile + cmake_src_compile + + build_locale() { + msgfmt -o "locale/${1}/LC_MESSAGES/tauon.mo" "locale/${1}/LC_MESSAGES/tauon.po" || die + } + + plocale_for_each_locale build_locale +} + +src_test() { + distutils-r1_src_test + cmake_src_test +} + +python_install() { + newbin tauon.py tauon + dolib.so "${WORKDIR}/${P}_build/libphazor.so" + dosym "/usr/$(get_libdir)/libphazor.so" "/usr/share/${PN}/lib/libphazor.so" + + install_locale() { + insinto "/usr/share/locale/${1}/LC_MESSAGES" + doins "locale/${1}/LC_MESSAGES/tauon.mo" + } + + plocale_for_each_locale install_locale + + insinto "/usr/share/${PN}" + doins -r assets theme templates + doins input.txt + + sed -i 's/\/opt\/tauon-music-box\/tauonmb.sh/tauon/g' extra/tauonmb.desktop || die + domenu extra/tauonmb.desktop + doicon -s scalable extra/tauonmb.svg + + distutils-r1_python_install +} + +pkg_postinst() { + optfeature "last fm support" dev-python/pylast + optfeature "PLEX support" dev-python/plexapi + + xdg_pkg_postinst +} diff --git a/media-sound/TauonMusicBox/files/TauonMusicBox-fix-desktop.patch b/media-sound/TauonMusicBox/files/TauonMusicBox-fix-desktop.patch new file mode 100644 index 0000000000..4de98dc146 --- /dev/null +++ b/media-sound/TauonMusicBox/files/TauonMusicBox-fix-desktop.patch @@ -0,0 +1,22 @@ +From 203ed16eef31cc199853ecef9d947eb147ab4f16 Mon Sep 17 00:00:00 2001 +From: David Roman +Date: Fri, 19 Apr 2024 02:02:08 +0200 +Subject: [PATCH] tauonmb.desktop: add mising stop action (#1132) + +--- + extra/tauonmb.desktop | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/extra/tauonmb.desktop b/extra/tauonmb.desktop +index 1a98fc4e2..5d049f084 100644 +--- a/extra/tauonmb.desktop ++++ b/extra/tauonmb.desktop +@@ -21,7 +21,7 @@ StartupWMClass=Tauon Music Box + Terminal=false + Type=Application + Categories=AudioVideo;Player;Audio; +-Actions=PlayPause;Previous;Next ++Actions=PlayPause;Previous;Next;Stop + + [Desktop Action PlayPause] + Exec=/opt/tauon-music-box/tauonmb.sh --no-start --play-pause From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 91EFC158043 for ; Fri, 19 Apr 2024 09:49:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB403E29EE; Fri, 19 Apr 2024 09:49:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9DA0AE29EE for ; Fri, 19 Apr 2024 09:49:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ACB3F3434AD for ; Fri, 19 Apr 2024 09:49:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1BA6116E2 for ; Fri, 19 Apr 2024 09:49:26 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1713520154.7fa19192157da7ddfcd9d61706308e8fd654e076.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-sound/TauonMusicBox/, media-sound/TauonMusicBox/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-sound/TauonMusicBox/TauonMusicBox-7.7.2-r2.ebuild media-sound/TauonMusicBox/files/TauonMusicBox-fix-desktop.patch X-VCS-Directories: media-sound/TauonMusicBox/ media-sound/TauonMusicBox/files/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 7fa19192157da7ddfcd9d61706308e8fd654e076 X-VCS-Branch: dev Date: Fri, 19 Apr 2024 09:49:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1b263b0a-0edb-4164-ad00-edb6323addb1 X-Archives-Hash: a628296430124f9fa7543945b13de6aa Message-ID: <20240419094926.qrcSx_kmH66tvy7BMNwhKMMPQNLeTTRskUKplb9EaY0@z> commit: 7fa19192157da7ddfcd9d61706308e8fd654e076 Author: David Roman gmail com> AuthorDate: Fri Apr 19 09:49:14 2024 +0000 Commit: David Roman gmail com> CommitDate: Fri Apr 19 09:49:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7fa19192 media-sound/TauonMusicBox: fix desktop file and icon cache Closes: https://bugs.gentoo.org/930236 Closes: https://bugs.gentoo.org/930237 Closes: https://bugs.gentoo.org/925576 Signed-off-by: David Roman gmail.com> .../TauonMusicBox/TauonMusicBox-7.7.2-r2.ebuild | 122 +++++++++++++++++++++ .../files/TauonMusicBox-fix-desktop.patch | 22 ++++ 2 files changed, 144 insertions(+) diff --git a/media-sound/TauonMusicBox/TauonMusicBox-7.7.2-r2.ebuild b/media-sound/TauonMusicBox/TauonMusicBox-7.7.2-r2.ebuild new file mode 100644 index 0000000000..ae30a05d6b --- /dev/null +++ b/media-sound/TauonMusicBox/TauonMusicBox-7.7.2-r2.ebuild @@ -0,0 +1,122 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PLOCALES="cs de es fr_FR hu id it ja_JP nb_NO pl pt pt_BR pt_PT ru sv tr zh_CN" + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_USE_PEP517=setuptools + +inherit cmake desktop distutils-r1 optfeature plocale xdg + +DESCRIPTION="The desktop music player of today!" +HOMEPAGE="https://tauonmusicbox.rocks/" + +if [[ ${PV} == *9999 ]]; then + EGIT_SUBMODULES=() + inherit git-r3 + EGIT_REPO_URI="https://github.com/Taiko2k/${PN}" +else + SRC_URI="https://github.com/Taiko2k/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" + +PHAZOR_DEPS=" + dev-libs/miniaudio + media-libs/flac + media-libs/libopenmpt + media-libs/opus + media-libs/opusfile + media-libs/libsamplerate + media-libs/libvorbis + media-sound/mpg123 + media-sound/wavpack + sci-libs/kissfft[-cpu_flags_x86_sse] +" + +DEPEND=" + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/musicbrainzngs[${PYTHON_USEDEP}] + dev-python/natsort[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/PySDL2[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/setproctitle[${PYTHON_USEDEP}] + dev-python/send2trash[${PYTHON_USEDEP}] + media-video/ffmpeg + media-libs/mutagen[${PYTHON_USEDEP}] + media-libs/sdl2-image + + ${PHAZOR_DEPS} +" + +RDEPEND=" + ${DEPEND} + + dev-libs/libappindicator + x11-libs/libnotify +" + +BDEPEND="sys-devel/gettext" + +src_prepare() { + # Workaround. If PATCHES is used it would be applied to times and fail + eapply "${FILESDIR}/${PN}-fix-desktop.patch" + + distutils-r1_src_prepare + cmake_src_prepare +} + +src_configure() { + distutils-r1_src_configure + cmake_src_configure +} + +src_compile() { + distutils-r1_src_compile + cmake_src_compile + + build_locale() { + msgfmt -o "locale/${1}/LC_MESSAGES/tauon.mo" "locale/${1}/LC_MESSAGES/tauon.po" || die + } + + plocale_for_each_locale build_locale +} + +src_test() { + distutils-r1_src_test + cmake_src_test +} + +python_install() { + newbin tauon.py tauon + dolib.so "${WORKDIR}/${P}_build/libphazor.so" + dosym "/usr/$(get_libdir)/libphazor.so" "/usr/share/${PN}/lib/libphazor.so" + + install_locale() { + insinto "/usr/share/locale/${1}/LC_MESSAGES" + doins "locale/${1}/LC_MESSAGES/tauon.mo" + } + + plocale_for_each_locale install_locale + + insinto "/usr/share/${PN}" + doins -r assets theme templates + doins input.txt + + sed -i 's/\/opt\/tauon-music-box\/tauonmb.sh/tauon/g' extra/tauonmb.desktop || die + domenu extra/tauonmb.desktop + doicon -s scalable extra/tauonmb.svg + + distutils-r1_python_install +} + +pkg_postinst() { + optfeature "last fm support" dev-python/pylast + optfeature "PLEX support" dev-python/plexapi + + xdg_pkg_postinst +} diff --git a/media-sound/TauonMusicBox/files/TauonMusicBox-fix-desktop.patch b/media-sound/TauonMusicBox/files/TauonMusicBox-fix-desktop.patch new file mode 100644 index 0000000000..4de98dc146 --- /dev/null +++ b/media-sound/TauonMusicBox/files/TauonMusicBox-fix-desktop.patch @@ -0,0 +1,22 @@ +From 203ed16eef31cc199853ecef9d947eb147ab4f16 Mon Sep 17 00:00:00 2001 +From: David Roman +Date: Fri, 19 Apr 2024 02:02:08 +0200 +Subject: [PATCH] tauonmb.desktop: add mising stop action (#1132) + +--- + extra/tauonmb.desktop | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/extra/tauonmb.desktop b/extra/tauonmb.desktop +index 1a98fc4e2..5d049f084 100644 +--- a/extra/tauonmb.desktop ++++ b/extra/tauonmb.desktop +@@ -21,7 +21,7 @@ StartupWMClass=Tauon Music Box + Terminal=false + Type=Application + Categories=AudioVideo;Player;Audio; +-Actions=PlayPause;Previous;Next ++Actions=PlayPause;Previous;Next;Stop + + [Desktop Action PlayPause] + Exec=/opt/tauon-music-box/tauonmb.sh --no-start --play-pause