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: Fri, 30 Dec 2022 09:33:35
Message-Id: 1672392807.2b46bb3fb16dd9e67adc27c92bd013ae5c6b82dd.fordfrog@gentoo
1 commit: 2b46bb3fb16dd9e67adc27c92bd013ae5c6b82dd
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 09:33:27 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 30 09:33:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b46bb3f
7
8 media-sound/fluidsynth: bump to 2.3.1
9
10 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
11
12 media-sound/fluidsynth/Manifest | 1 +
13 media-sound/fluidsynth/fluidsynth-2.3.1.ebuild | 121 +++++++++++++++++++++++++
14 2 files changed, 122 insertions(+)
15
16 diff --git a/media-sound/fluidsynth/Manifest b/media-sound/fluidsynth/Manifest
17 index 028ba3750818..095c1d857a46 100644
18 --- a/media-sound/fluidsynth/Manifest
19 +++ b/media-sound/fluidsynth/Manifest
20 @@ -1 +1,2 @@
21 DIST fluidsynth-2.3.0.tar.gz 1757143 BLAKE2B 845f4b1d00b743edf7ef8a5660c239c2924ca51306fbd8f45c0c965198ed2d5267bacf8333a44720beb3f283e9a75bbb8b497dcb0b004153d5f8a9d9ed4f5224 SHA512 621a54f7d9845a9350381e9aa99f342b28050e1dd80983e69828acc685ace39ee5376f8e40d7a93ddb247718e4bcfb3f196cbd4027343251f8c0fbe3c0d219ed
22 +DIST fluidsynth-2.3.1.tar.gz 1758632 BLAKE2B a1501303e02b3ea64d87be5cff08d5f2f2be170b38faedc8e6bc4fd18c0dafe268fa6110708664ef0659df9f0e9680551ac483d30364977e768af60dfdff7e83 SHA512 1633294bf6c714361c381151b62d9dd2c8f388490153e7964bfa14fd647a681db9ebfe1de0a06279972d6c5b30377f67361feb4db186b1faa235600f0ae02b22
23
24 diff --git a/media-sound/fluidsynth/fluidsynth-2.3.1.ebuild b/media-sound/fluidsynth/fluidsynth-2.3.1.ebuild
25 new file mode 100644
26 index 000000000000..2fe564bc72d2
27 --- /dev/null
28 +++ b/media-sound/fluidsynth/fluidsynth-2.3.1.ebuild
29 @@ -0,0 +1,121 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit cmake-multilib systemd toolchain-funcs
36 +
37 +DESCRIPTION="Software real-time synthesizer based on the Soundfont 2 specifications"
38 +HOMEPAGE="https://www.fluidsynth.org"
39 +SRC_URI="https://github.com/FluidSynth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="LGPL-2.1+"
42 +SLOT="0/3"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
44 +IUSE="alsa dbus debug examples ipv6 jack ladspa lash network oss pipewire portaudio pulseaudio +readline sdl +sndfile systemd threads"
45 +
46 +BDEPEND="
47 + virtual/pkgconfig
48 +"
49 +DEPEND="
50 + dev-libs/glib:2[${MULTILIB_USEDEP}]
51 + alsa? (
52 + media-libs/alsa-lib[${MULTILIB_USEDEP}]
53 + lash? ( media-sound/lash[${MULTILIB_USEDEP}] )
54 + )
55 + dbus? ( sys-apps/dbus[${MULTILIB_USEDEP}] )
56 + jack? ( virtual/jack[${MULTILIB_USEDEP}] )
57 + ladspa? (
58 + media-libs/ladspa-sdk[${MULTILIB_USEDEP}]
59 + media-plugins/cmt-plugins[${MULTILIB_USEDEP}]
60 + )
61 + pipewire? (
62 + media-video/pipewire:0=[${MULTILIB_USEDEP}]
63 + )
64 + portaudio? ( media-libs/portaudio[${MULTILIB_USEDEP}] )
65 + pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )
66 + readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
67 + sdl? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
68 + sndfile? ( media-libs/libsndfile[${MULTILIB_USEDEP}] )
69 +"
70 +RDEPEND="${DEPEND}"
71 +
72 +DOCS=( AUTHORS ChangeLog README.md THANKS TODO doc/fluidsynth-v20-devdoc.txt )
73 +
74 +src_configure() {
75 + local mycmakeargs=(
76 + -DCMAKE_C_COMPILER="$(tc-getCC)"
77 + -Denable-alsa=$(usex alsa)
78 + -Denable-aufile=ON
79 + -Denable-dbus=$(usex dbus)
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-portaudio=$(usex portaudio)
94 + -Denable-profiling=$(usex debug)
95 + -Denable-pulseaudio=$(usex pulseaudio)
96 + -Denable-pipewire=$(usex pipewire)
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 +}