diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-02-10 21:05:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-02-10 21:05:55 +0000 |
commit | 71deace00d1a2b091313fe137ab7092418c6f87c (patch) | |
tree | 9f1f0dee23e13658e52f49437befe78427148c51 /media-sound/cadence/cadence-0.9.0-r4.ebuild | |
parent | 29aabba0ea759c6a2864ff5631735b67ee38e5e0 (diff) |
gentoo resync : 10.02.2020
Diffstat (limited to 'media-sound/cadence/cadence-0.9.0-r4.ebuild')
-rw-r--r-- | media-sound/cadence/cadence-0.9.0-r4.ebuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/media-sound/cadence/cadence-0.9.0-r4.ebuild b/media-sound/cadence/cadence-0.9.0-r4.ebuild new file mode 100644 index 000000000000..08953c0b0c7f --- /dev/null +++ b/media-sound/cadence/cadence-0.9.0-r4.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) +inherit python-single-r1 xdg desktop + +DESCRIPTION="Collection of tools useful for audio production" +HOMEPAGE="http://kxstudio.linuxaudio.org/Applications:Cadence" +SRC_URI="https://github.com/falkTX/Cadence/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="amd64" +LICENSE="GPL-2" +SLOT="0" + +IUSE="a2jmidid -pulseaudio opengl" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# for jack project rendering also needs media-sound/jack_capture which is not in the tree yet +CDEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/dbus-python[${PYTHON_MULTI_USEDEP}] + dev-python/PyQt5[dbus,gui,opengl?,svg,widgets,${PYTHON_MULTI_USEDEP}] + ') + media-sound/jack2[dbus] + media-sound/jack_capture + a2jmidid? ( media-sound/a2jmidid[dbus] ) + pulseaudio? ( media-sound/pulseaudio[jack] ) +" +RDEPEND="${CDEPEND}" +DEPEND="${CDEPEND}" + +S="${WORKDIR}/Cadence-${PV}" + +PATCHES=( "${FILESDIR}"/${PN}-add-skip-stripping.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="/usr" + SKIP_STRIPPING=true + ) + + emake "${myemakeargs[@]}" +} + +src_install() { + emake PREFIX="/usr" DESTDIR="${D}" install + + # Clean up stuff that shouldn't be installed + rm -rf "${D}"/etc/X11/xinit/xinitrc.d/61cadence-session-inject + rm -rf "${D}"/etc/xdg/autostart/cadence-session-start.desktop + rm -rf "${D}"/usr/share/applications/*.desktop + + if use !pulseaudio; then + rm -rf "${D}"/usr/bin/cadence-pulse2{jack,loopback} + rm -rf "${D}"/usr/share/cadence/pulse2{jack,loopback} + fi + + # 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" +} |