diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /media-sound/cadence/cadence-9999.ebuild | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'media-sound/cadence/cadence-9999.ebuild')
-rw-r--r-- | media-sound/cadence/cadence-9999.ebuild | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/media-sound/cadence/cadence-9999.ebuild b/media-sound/cadence/cadence-9999.ebuild index 1059f334e102..b0f1b5c66689 100644 --- a/media-sound/cadence/cadence-9999.ebuild +++ b/media-sound/cadence/cadence-9999.ebuild @@ -3,13 +3,22 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7} ) -inherit git-r3 python-single-r1 xdg desktop +PYTHON_COMPAT=( python3_{6,7,8,9} ) +inherit python-single-r1 xdg desktop DESCRIPTION="Collection of tools useful for audio production" -HOMEPAGE="http://kxstudio.linuxaudio.org/Applications:Cadence" -EGIT_REPO_URI="https://github.com/falkTX/Cadence.git" -KEYWORDS="" +HOMEPAGE="https://kxstudio.linuxaudio.org/Applications:Cadence" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/falkTX/Cadence.git" + KEYWORDS="" +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" @@ -17,7 +26,6 @@ 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 ' @@ -30,7 +38,7 @@ CDEPEND=" pulseaudio? ( media-sound/pulseaudio[jack] ) " RDEPEND="${CDEPEND}" -DEPEND="${RDEPEND}" +DEPEND="${CDEPEND}" src_prepare() { sed -i -e "s/python3/${EPYTHON}/" \ @@ -49,7 +57,7 @@ src_prepare() { } src_compile() { - myemakeargs=(PREFIX="/usr" + myemakeargs=(PREFIX="${EPREFIX}/usr" SKIP_STRIPPING=true ) @@ -57,17 +65,22 @@ src_compile() { } src_install() { - emake PREFIX="/usr" DESTDIR="${D}" install + emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install + + python_fix_shebang "${ED}" # 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 "${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 "${D}"/usr/bin/cadence-pulse2{jack,loopback} - rm -rf "${D}"/usr/share/cadence/pulse2{jack,loopback} + 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" |