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 6AA4F158003 for ; Fri, 2 Jun 2023 06:59:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ABF9AE08DA; Fri, 2 Jun 2023 06:59:26 +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 8F947E08DA for ; Fri, 2 Jun 2023 06:59:26 +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 8F7C0335DB4 for ; Fri, 2 Jun 2023 06:59:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29357A53 for ; Fri, 2 Jun 2023 06:59:24 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1685689155.aa59e1de6dcb942ac262cb9a0d61e3b11379e489.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/qsynth/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/qsynth/Manifest media-sound/qsynth/qsynth-0.9.11.ebuild X-VCS-Directories: media-sound/qsynth/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: aa59e1de6dcb942ac262cb9a0d61e3b11379e489 X-VCS-Branch: master Date: Fri, 2 Jun 2023 06:59:24 +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: c273c6ab-df04-4a9e-af89-1909d0051109 X-Archives-Hash: 8b4bac40679bc80a5835a2321367acfd commit: aa59e1de6dcb942ac262cb9a0d61e3b11379e489 Author: Miroslav Šulc gentoo org> AuthorDate: Fri Jun 2 06:59:15 2023 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Fri Jun 2 06:59:15 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa59e1de media-sound/qsynth: bump to 0.9.11 Signed-off-by: Miroslav Šulc gentoo.org> media-sound/qsynth/Manifest | 1 + media-sound/qsynth/qsynth-0.9.11.ebuild | 71 +++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest index 9037b3b07fd9..a2aeced3f50c 100644 --- a/media-sound/qsynth/Manifest +++ b/media-sound/qsynth/Manifest @@ -1 +1,2 @@ DIST qsynth-0.9.10.tar.gz 333389 BLAKE2B 87ca02e1f15a7b28f5af462d1ef52e9609fc0abc3d15d545493f448da61d85d8d264f5ab908816607de3291424b979348f330205fc6e727edb7287fd28e9067d SHA512 82e04ccfe3193d570e28c4e5da3e9ea8afbc2b1f2e43f54459449b31ee5448a6232a5fe13631eed80a5cf75f4176e5a419ec6467bf3d7d5e30d34083d4d8f7aa +DIST qsynth-0.9.11.tar.gz 333402 BLAKE2B 72a57a978bad1c4b2abcb287ea27c1c1365c06efdeedcd9bb69ca01a20304f48b19065c5e5181e8d30a3d4137eee56ec69cfba32dd8d2fa29f3ea1140019e089 SHA512 3d6c40066db235fc39ca804de1a352ade9e03e162b5901d0e1170f1f0cb4ec3e1631d2fe2b1e50a9cbab9528bca54ebb0afb8e5d615fb8f0b06b9761ae472f2d diff --git a/media-sound/qsynth/qsynth-0.9.11.ebuild b/media-sound/qsynth/qsynth-0.9.11.ebuild new file mode 100644 index 000000000000..9304e1e44040 --- /dev/null +++ b/media-sound/qsynth/qsynth-0.9.11.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake desktop xdg + +DESCRIPTION="Qt application to control FluidSynth" +HOMEPAGE="https://qsynth.sourceforge.io/" + +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://git.code.sf.net/p/qsynth/code" + inherit git-r3 +else + SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz" + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="+alsa debug jack pulseaudio" + +REQUIRED_USE="|| ( alsa jack pulseaudio )" + +BDEPEND=" + dev-qt/linguist-tools:5 +" +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + media-sound/fluidsynth:=[jack?,alsa?,pulseaudio?] +" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${PN}-0.9.1-cmake-no-git-version.patch" ) + +src_prepare() { + cmake_src_prepare + + sed -e "/^find_package.*QT/s/Qt6 //" -i CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DCONFIG_DEBUG=$(usex debug 1 0) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + # The desktop file is invalid, and we also change the command + # depending on useflags + rm "${D}/usr/share/applications/org.rncbc.qsynth.desktop" || die + + local cmd + if use jack; then + cmd="qsynth" + elif use pulseaudio; then + cmd="qsynth -a pulseaudio" + elif use alsa; then + cmd="qsynth -a alsa" + else + cmd="qsynth -a oss" + fi + + make_desktop_entry "${cmd}" Qsynth qsynth +}