From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- media-sound/qsynth/Manifest | 2 + media-sound/qsynth/qsynth-0.9.2.ebuild | 71 ++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 media-sound/qsynth/qsynth-0.9.2.ebuild (limited to 'media-sound/qsynth') diff --git a/media-sound/qsynth/Manifest b/media-sound/qsynth/Manifest index 7df24f3cc8bc..1ddb7aea1081 100644 --- a/media-sound/qsynth/Manifest +++ b/media-sound/qsynth/Manifest @@ -1,5 +1,7 @@ AUX qsynth-0.9.1-cmake-no-git-version.patch 579 BLAKE2B 561d4fab7495335a9853968820f71508fe0ce340d829a36b74845b76a06c35abb815d40756d080efe9fecf8e8bcd9dfa347dc524aa4af2ccbb892ebc678fc861 SHA512 843467c9c6d13970ae7494a700830860783e48f4e9cc0bd74522921dfc2358e76d2e1b35436e2d04381e9e00c00692357526f3a0fa25c4d9205cd85ce73e97fd DIST qsynth-0.9.1.tar.gz 393897 BLAKE2B f63766614d821409cd12e418e36b8dbd739da8e2cd7deae91c2b00dd4f5ba2f447a3ca19c3829de3282e368baa37567333be051641221300d13dd7948d762008 SHA512 70bba332b90963d1c1da18fb3de8f05544fed3406c2144b6ed78cf93720cbcb684ff367d7ef4bc80be94ebea060b38753ae0cb183e85f96f127014c08de701b0 +DIST qsynth-0.9.2.tar.gz 394009 BLAKE2B 9560efe95992fc6e992871c8057898e1acac46718534c7e79060dde4d1519f9fd4798385812f384c97a764676e3e1005ebe24708545db3dfb9f8e08973f07441 SHA512 ab9a2268e3926439e4784c8dc2511d7c39aa2bfb97ffb7bb34f6761f1e859d1ea53f9f6da4d5c31395c6c03dc250b74c8c250b5d71321f2a151b75ec636be3d6 EBUILD qsynth-0.9.1.ebuild 1404 BLAKE2B de7309360b92eb8003cd2f875acdf499a9d03e0f89f6761443fc23ad0a0ce9f04d05d70f4813c46be61703e795a8c1c3b7ee435e8d644d6f2e0a72ac9fb9aaef SHA512 b86b7c6e5411ed28ce4795a37df8111d289c27ad2cf0fbcce2de54f6fd6fbd709b1a4e47eaed4be1ed9e466649c72fe730df1ee437f7b75ad6b0a76389666329 +EBUILD qsynth-0.9.2.ebuild 1415 BLAKE2B e06b98fe3d4580b90d17488772c0e389df21de7c79a563df10fce3ca7685d6f0f1896cca5ad463f4ba2385417d9088c3ef21f83dc9e15debc5adefa0c3f7503b SHA512 70f46a7a6b807aac1e56c2f3f864b27e4eddb6330c24f73e3a975268790d27b66048cc983075748514b6bbb7c8878aa207a09370b4755cc6e8a38f57c9e1ce5c EBUILD qsynth-9999.ebuild 1349 BLAKE2B 618267f9db7c94ad2defb4f0f3893cd4844270c3e9e9448c22738fb203f0e41cd83c47ed88354abf4fa215029953f2500c00b01193454ee2d29ced2ae8ff97bc SHA512 ba6afe5ac54f37fd1d4531b8971dc6272b8fb053209380953e0dfb494a91ed3c3783d3d681959a96d31d4f2aecf1b96c42c500707b48b45b3f8e765577354156 MISC metadata.xml 755 BLAKE2B 34241e79896f3b24f562853d89374480f2c1f5c7a35bf8aaba623d6ee49a93074a1600c7290ffa7bf9147060482cf261962689c46f3f8b7eb38e17ede402c4ea SHA512 25f7c0ace8cd3b9ebe09ff93e9c39169f5345cb583646bcc146ff3b33c2cd4d689b665ae4e19f6ac588f47d5c691bfe3c16f0e67756847c7b45c090e586ab933 diff --git a/media-sound/qsynth/qsynth-0.9.2.ebuild b/media-sound/qsynth/qsynth-0.9.2.ebuild new file mode 100644 index 000000000000..59c6e5666ca2 --- /dev/null +++ b/media-sound/qsynth/qsynth-0.9.2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake desktop qmake-utils 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/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 +} -- cgit v1.2.3