From d3f60a6633ab595d29058b617b388d18916185d4 Mon Sep 17 00:00:00 2001 From: Miroslav Šulc Date: Thu, 7 Nov 2019 17:27:13 +0100 Subject: media-sound/cadence: fixed qa issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Miroslav Šulc --- media-sound/cadence/Manifest | 2 +- media-sound/cadence/cadence-0.9.0-r1.ebuild | 79 +++++++++++++++++++++++++++++ media-sound/cadence/cadence-0.9.0.ebuild | 77 ---------------------------- media-sound/cadence/cadence-9999.ebuild | 2 + media-sound/cadence/metadata.xml | 4 ++ 5 files changed, 86 insertions(+), 78 deletions(-) create mode 100644 media-sound/cadence/cadence-0.9.0-r1.ebuild delete mode 100644 media-sound/cadence/cadence-0.9.0.ebuild (limited to 'media-sound') diff --git a/media-sound/cadence/Manifest b/media-sound/cadence/Manifest index 20712e722840..33b251b97faf 100644 --- a/media-sound/cadence/Manifest +++ b/media-sound/cadence/Manifest @@ -1 +1 @@ -DIST cadence-0.9.0.zip 2405548 BLAKE2B 6c09f2b168f95e9e7c5fbad7cbc966e766eb1b34edf4916c05f8def6a90e7e7e5f65b118d1a918a0a4f7384b87d47522841dad5d4c479bd87df6d122b9e978e7 SHA512 72bab6644bc5cb19159a1403ea0a138f0978c869aa9dd7c325c719cee53a3cf6af407618122088a477b4a1d17d250dd4c8deb4b502a217f84a8efc9bbf189b45 +DIST cadence-0.9.0.tar.gz 2202265 BLAKE2B 03d38f611df05597d2b4016f263d36f2386be421383a38b51dee519514e6d1ed79bf92ea2a789ea868a25d4c805e9e94cd0971f479b772799bf6bf3170349b4a SHA512 381c9c57c1d96452a91969e134420d63ef06f5ec144050779d0a06a1098e8ed1693c70165b6640e04acc448d382e717e71ead1b29ba5043f0668675850cad7d1 diff --git a/media-sound/cadence/cadence-0.9.0-r1.ebuild b/media-sound/cadence/cadence-0.9.0-r1.ebuild new file mode 100644 index 000000000000..0bfc569c9cb8 --- /dev/null +++ b/media-sound/cadence/cadence-0.9.0-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{4,5,6} ) +inherit python-single-r1 xdg-utils 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="-pulseaudio opengl" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + media-sound/jack2[dbus] + dev-python/PyQt5[dbus,gui,opengl?,svg,widgets,${PYTHON_USEDEP}] + dev-python/dbus-python[${PYTHON_USEDEP}] + pulseaudio? ( media-sound/pulseaudio[jack] )" +DEPEND=${RDEPEND} + +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 + rm -rf "${D}"/usr/bin/{catarina,claudia*} + rm -rf "${D}"/usr/share/cadence/icons/claudia-hicolor/ + + 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" +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/media-sound/cadence/cadence-0.9.0.ebuild b/media-sound/cadence/cadence-0.9.0.ebuild deleted file mode 100644 index ce172496c832..000000000000 --- a/media-sound/cadence/cadence-0.9.0.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{4,5,6} ) -inherit python-single-r1 xdg-utils 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}.zip -> ${P}.zip" -KEYWORDS="~amd64" -LICENSE="GPL-2" -SLOT="0" - -IUSE="-pulseaudio opengl" - -RDEPEND="${PYTHON_DEPS} - media-sound/jack2[dbus] - dev-python/PyQt5[dbus,gui,opengl?,svg,widgets,${PYTHON_USEDEP}] - dev-python/dbus-python[${PYTHON_USEDEP}] - pulseaudio? ( media-sound/pulseaudio[jack] )" -DEPEND=${RDEPEND} - -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 - rm -rf "${D}"/usr/bin/{catarina,claudia*} - rm -rf "${D}"/usr/share/cadence/icons/claudia-hicolor/ - - 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" -} - -pkg_postinst() { - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_icon_cache_update -} diff --git a/media-sound/cadence/cadence-9999.ebuild b/media-sound/cadence/cadence-9999.ebuild index 677e87b30e1d..f005484a5a4e 100644 --- a/media-sound/cadence/cadence-9999.ebuild +++ b/media-sound/cadence/cadence-9999.ebuild @@ -15,6 +15,8 @@ SLOT="0" IUSE="-pulseaudio opengl" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + RDEPEND="${PYTHON_DEPS} media-sound/jack2[dbus] dev-python/PyQt5[dbus,gui,opengl?,svg,widgets,${PYTHON_USEDEP}] diff --git a/media-sound/cadence/metadata.xml b/media-sound/cadence/metadata.xml index dd30ce2e1999..fd782eeb253b 100644 --- a/media-sound/cadence/metadata.xml +++ b/media-sound/cadence/metadata.xml @@ -5,4 +5,8 @@ miroslav.sulc@fordfrog.com Miroslav Šulc + + proaudio@gentoo.org + Gentoo ProAudio Project + -- cgit v1.2.3-65-gdbad