-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-sound/cadence: general overhaul
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
Showing
2 changed files
with
86 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |