Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/fluidsynth/
Date: Tue, 26 Apr 2022 15:05:22
Message-Id: 1650985510.59420fbe2251c4c2f4fa8960e8a2e27b4087463f.fordfrog@gentoo
1 commit: 59420fbe2251c4c2f4fa8960e8a2e27b4087463f
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 26 15:05:10 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 26 15:05:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59420fbe
7
8 media-sound/fluidsynth: bump to 2.2.7
9
10 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
11
12 media-sound/fluidsynth/Manifest | 1 +
13 media-sound/fluidsynth/fluidsynth-2.2.7.ebuild | 120 +++++++++++++++++++++++++
14 2 files changed, 121 insertions(+)
15
16 diff --git a/media-sound/fluidsynth/Manifest b/media-sound/fluidsynth/Manifest
17 index 53bd8349ed92..6dcd7fcefef2 100644
18 --- a/media-sound/fluidsynth/Manifest
19 +++ b/media-sound/fluidsynth/Manifest
20 @@ -1,2 +1,3 @@
21 DIST fluidsynth-2.2.5.tar.gz 1747610 BLAKE2B a658e5fb66ebb091560d9e0b8bddd99ec7e7e84c58d9074057fd612a2eb0abf637778ea06c3481dd4d5179a917d47a08f25533d9002c1a915037a83279e2381a SHA512 9ba96da560d3e0a3e38febc6f10d2b3d8019b63ffa0a4c6fa9032efd019333df0367bdd3056faba22517f59f4ef27b18d52429606ed2b8306f69778fd755beb2
22 DIST fluidsynth-2.2.6.tar.gz 1749202 BLAKE2B 5296d48809a457770a968fb9ae20ae4091bbae11d6fbf8a11f75e44de1ca9fa1c121e925e61f25ab1016907ced73364ff632ffa3e7edfa9d15019bf3f3e0bb3c SHA512 e4958c409e057fe6e09a0aa86cc0d7c939aa883de479aa90c43f19faa4d0c3a0f6aca7242fad11ec7a7776cb7e2e602c953c6249fc94b9f04425101584ae3e6c
23 +DIST fluidsynth-2.2.7.tar.gz 1748897 BLAKE2B fd53603947ddf5a76676cfc3d77b1d904146ec7c30ab6e54a2c32cae0e76ec4b66397506072cac277febdd1b799801d5b13c7b37cc0ea4a545fae26077a1d881 SHA512 62709f96fa07bbafb9b907438da7376abdf1a4e679cd2b105c5bca257f1ff62c18bd4c646ef2ccba64ca5273604da996fb2caaf61eeee44686bf45fef1ed83a7
24
25 diff --git a/media-sound/fluidsynth/fluidsynth-2.2.7.ebuild b/media-sound/fluidsynth/fluidsynth-2.2.7.ebuild
26 new file mode 100644
27 index 000000000000..51908c546139
28 --- /dev/null
29 +++ b/media-sound/fluidsynth/fluidsynth-2.2.7.ebuild
30 @@ -0,0 +1,120 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +CMAKE_ECLASS=cmake
37 +inherit cmake-multilib systemd toolchain-funcs
38 +
39 +DESCRIPTION="Software real-time synthesizer based on the Soundfont 2 specifications"
40 +HOMEPAGE="https://www.fluidsynth.org"
41 +SRC_URI="https://github.com/FluidSynth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="LGPL-2.1+"
44 +SLOT="0/3"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
46 +IUSE="alsa dbus debug examples ipv6 jack ladspa lash network oss portaudio pulseaudio +readline sdl +sndfile systemd threads"
47 +
48 +BDEPEND="
49 + virtual/pkgconfig
50 +"
51 +DEPEND="
52 + dev-libs/glib:2[${MULTILIB_USEDEP}]
53 + alsa? (
54 + media-libs/alsa-lib[${MULTILIB_USEDEP}]
55 + lash? ( media-sound/lash[${MULTILIB_USEDEP}] )
56 + )
57 + dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
58 + jack? ( virtual/jack[${MULTILIB_USEDEP}] )
59 + ladspa? (
60 + media-libs/ladspa-sdk[${MULTILIB_USEDEP}]
61 + media-plugins/cmt-plugins[${MULTILIB_USEDEP}]
62 + )
63 + portaudio? ( media-libs/portaudio[${MULTILIB_USEDEP}] )
64 + pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
65 + readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
66 + sdl? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
67 + sndfile? ( media-libs/libsndfile[${MULTILIB_USEDEP}] )
68 +"
69 +RDEPEND="${DEPEND}"
70 +
71 +DOCS=( AUTHORS ChangeLog README.md THANKS TODO doc/fluidsynth-v20-devdoc.txt )
72 +
73 +src_configure() {
74 + local mycmakeargs=(
75 + -DCMAKE_C_COMPILER="$(tc-getCC)"
76 + -Denable-alsa=$(usex alsa)
77 + -Denable-aufile=ON
78 + -Denable-dbus=$(usex dbus)
79 + -Denable-debug=$(usex debug)
80 + -Denable-dsound=OFF # Windows
81 + -Denable-floats=OFF # loat instead of double for DSP samples
82 + -Denable-fpe-check=$(usex debug)
83 + -Denable-ipv6=$(usex ipv6)
84 + -Denable-jack=$(usex jack)
85 + -Denable-ladspa=$(usex ladspa)
86 + -Denable-libinstpatch=ON # https://github.com/swami/libinstpatch
87 + -Denable-midishare=OFF # http://midishare.sourceforge.net/
88 + -Denable-network=$(usex network)
89 + -Denable-opensles=OFF
90 + -Denable-oboe=OFF # requires OpenSLES and/or AAudio
91 + -Denable-oss=$(usex oss)
92 + -Denable-libsndfile=$(usex sndfile)
93 + -Denable-pkgconfig=ON
94 + -Denable-portaudio=$(usex portaudio)
95 + -Denable-profiling=$(usex debug)
96 + -Denable-pulseaudio=$(usex pulseaudio)
97 + -Denable-readline=$(usex readline)
98 + -Denable-sdl2=$(usex sdl)
99 + -Denable-systemd=$(usex systemd)
100 + -Denable-threads=$(usex threads)
101 + -Denable-trap-on-fpe=$(usex debug)
102 + -Denable-ubsan=OFF # compile and link against UBSan (for debugging fluidsynth internals)
103 + -Denable-waveout=OFF # Windows
104 + -Denable-winmidi=OFF # Windows
105 + )
106 +
107 + if use alsa; then
108 + mycmakeargs+=( -Denable-lash=$(usex lash) )
109 + else
110 + mycmakeargs+=( -Denable-lash=OFF )
111 + fi
112 +
113 + if use systemd; then
114 + mycmakeargs+=( -DFLUID_DAEMON_ENV_FILE="/etc/fluidsynth.conf" )
115 + fi
116 +
117 + cmake-multilib_src_configure
118 +}
119 +
120 +install_systemd_files() {
121 + if multilib_is_native_abi; then
122 + systemd_dounit "${BUILD_DIR}/fluidsynth.service"
123 + insinto /etc
124 + doins "${BUILD_DIR}/fluidsynth.conf"
125 + fi
126 +}
127 +
128 +multilib_src_test() {
129 + eninja check
130 +}
131 +
132 +src_install() {
133 + cmake-multilib_src_install
134 +
135 + docinto pdf
136 + dodoc doc/*.pdf
137 +
138 + if use examples; then
139 + docinto examples
140 + dodoc doc/examples/*.c
141 + fi
142 +
143 + if use systemd; then
144 + multilib_foreach_abi install_systemd_files
145 +
146 + elog "When using fluidsynth as a systemd service, make sure"
147 + elog "to configure your fluidsynth settings globally in "
148 + elog "/etc/fluidsynth.conf or per-user in ~/.config/fluidsynth"
149 + fi
150 +}