Skip to content

Commit

Permalink
media-sound/cadence: general overhaul
Browse files Browse the repository at this point in the history
Detailed Changes:
- reduce the diff to upstream ebuild
  - add jack_capture
  - add python3_7
  - update to EAPI 7
  - undo catarina removal
  - drop gnome icon fix
- add python3_8
- add shebang fix
- add better desktop entries for claudia
- enable installation on Gentoo prefix (not tested)
- drop revision for live ebuild

Signed-off-by: Gerion Entrup <[email protected]>
  • Loading branch information
gerion0 committed Jun 18, 2020
1 parent bb196b3 commit 645e89c
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 79 deletions.
79 changes: 0 additions & 79 deletions media-sound/cadence/cadence-9999-r7.ebuild

This file was deleted.

86 changes: 86 additions & 0 deletions media-sound/cadence/cadence-9999.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{6,7,8} )
inherit git-r3 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=""
LICENSE="GPL-2"
SLOT="0"

IUSE="a2jmidid ladish -pulseaudio opengl"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

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] )
ladish? ( >=media-sound/ladish-9999 )
pulseaudio? ( media-sound/pulseaudio[jack] )
"
RDEPEND="${CDEPEND}"
DEPEND="${RDEPEND}"

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
if use !ladish; then
rm -rf "${ED}"/usr/bin/claudia{,-launcher}
rm -rf "${ED}"/usr/share/cadence/icons/claudia-hicolor/
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"
if use ladish; then
make_desktop_entry claudia Claudia claudia "AudioVideo;AudioVideoEditing;Qt"
make_desktop_entry claudia-launcher "Claudia Launcher" claudia-launcher "AudioVideo;AudioVideoEditing;Qt"
fi
make_desktop_entry catarina Catarina catarina "AudioVideo;AudioVideoEditing;Qt"
}

0 comments on commit 645e89c

Please sign in to comment.