From 8a667ad6f566b9bec1e7201f7f837115c180c2f1 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 7 Feb 2020 17:50:25 +0100 Subject: media-sound/cadence: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- media-sound/cadence/cadence-0.9.0-r3.ebuild | 78 ---------------------------- media-sound/cadence/cadence-0.9.0-r4.ebuild | 80 +++++++++++++++++++++++++++++ media-sound/cadence/cadence-9999.ebuild | 8 +-- 3 files changed, 85 insertions(+), 81 deletions(-) delete mode 100644 media-sound/cadence/cadence-0.9.0-r3.ebuild create mode 100644 media-sound/cadence/cadence-0.9.0-r4.ebuild (limited to 'media-sound/cadence') diff --git a/media-sound/cadence/cadence-0.9.0-r3.ebuild b/media-sound/cadence/cadence-0.9.0-r3.ebuild deleted file mode 100644 index 6eb22cdfc3f6..000000000000 --- a/media-sound/cadence/cadence-0.9.0-r3.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2019 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} - dev-python/dbus-python[${PYTHON_USEDEP}] - dev-python/PyQt5[dbus,gui,opengl?,svg,widgets,${PYTHON_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" -} 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" +} diff --git a/media-sound/cadence/cadence-9999.ebuild b/media-sound/cadence/cadence-9999.ebuild index 2350c0a718dc..1059f334e102 100644 --- a/media-sound/cadence/cadence-9999.ebuild +++ b/media-sound/cadence/cadence-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -20,8 +20,10 @@ 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} - dev-python/dbus-python[${PYTHON_USEDEP}] - dev-python/PyQt5[dbus,gui,opengl?,svg,widgets,${PYTHON_USEDEP}] + $(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] ) -- cgit v1.2.3-65-gdbad