diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2022-07-27 06:57:30 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-07-27 06:57:30 +0200 |
commit | f9dd946e6da8afe1959f06075accf422da066a58 (patch) | |
tree | b972d133dc4f333f7d8233a9e55a50418bd1c1b1 /media-sound/cadence/cadence-0.9.2-r1.ebuild | |
parent | app-accessibility/speech-tools: dropped obsolete 2.5.0 (diff) | |
download | gentoo-f9dd946e6da8afe1959f06075accf422da066a58.tar.gz gentoo-f9dd946e6da8afe1959f06075accf422da066a58.tar.bz2 gentoo-f9dd946e6da8afe1959f06075accf422da066a58.zip |
media-sound/cadence: revbump due to previous commit deps changes
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound/cadence/cadence-0.9.2-r1.ebuild')
-rw-r--r-- | media-sound/cadence/cadence-0.9.2-r1.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/media-sound/cadence/cadence-0.9.2-r1.ebuild b/media-sound/cadence/cadence-0.9.2-r1.ebuild new file mode 100644 index 000000000000..f67d9bb389fa --- /dev/null +++ b/media-sound/cadence/cadence-0.9.2-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +inherit python-single-r1 xdg desktop + +DESCRIPTION="Collection of tools useful for audio production" +HOMEPAGE="https://kxstudio.linuxaudio.org/Applications:Cadence" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/falkTX/Cadence.git" +else + SRC_URI="https://github.com/falkTX/Cadence/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64" + S="${WORKDIR}/Cadence-${PV}" +fi + +LICENSE="GPL-2" +SLOT="0" + +IUSE="a2jmidid pulseaudio opengl" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +CDEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/PyQt5[dbus,gui,opengl?,svg,widgets,${PYTHON_USEDEP}] + ') + media-sound/jack_capture + virtual/jack + a2jmidid? ( media-sound/a2jmidid[dbus] ) + pulseaudio? ( + || ( + media-sound/pulseaudio-daemon[jack] + media-video/pipewire[jack-sdk] + <media-sound/pulseaudio-15.99.1[daemon(+),jack] + ) + )" +RDEPEND="${CDEPEND}" +DEPEND="${CDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.1-fix-clang.patch +) + +src_prepare() { + sed -i -e "s/python3/${EPYTHON}/" \ + data/cadence \ + data/cadence-aloop-daemon \ + data/cadence-jacksettings \ + data/cadence-logs \ + data/cadence-render \ + data/cadence-session-start \ + data/catarina \ + data/catia \ + data/claudia \ + data/claudia-launcher || die "sed failed" + + default +} + +src_compile() { + myemakeargs=(PREFIX="${EPREFIX}/usr" + SKIP_STRIPPING=true + ) + + emake "${myemakeargs[@]}" +} + +src_install() { + emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install + + python_fix_shebang "${ED}" + + # Clean up stuff that shouldn't be installed + rm -rf "${ED}"/etc/X11/xinit/xinitrc.d/61cadence-session-inject + rm -rf "${ED}"/etc/xdg/autostart/cadence-session-start.desktop + rm -rf "${ED}"/usr/share/applications/*.desktop + + if use !pulseaudio; then + rm -rf "${ED}"/usr/bin/cadence-pulse2{jack,loopback} + rm -rf "${ED}"/usr/share/cadence/pulse2{jack, loopback} + fi + # Depend on ladish which is not in the tree + rm -rf "${ED}"/usr/bin/claudia{,-launcher} + rm -rf "${ED}"/usr/share/cadence/icons/claudia-hicolor/ + + # Replace desktop entries with QA issues with these + make_desktop_entry cadence Cadence cadence "AudioVideo;AudioVideoEditing;Qt" + make_desktop_entry catia Catia catia "AudioVideo;AudioVideoEditing;Qt" + make_desktop_entry catarina Catarina catarina "AudioVideo;AudioVideoEditing;Qt" +} |