Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media-sound/cadence: update dependencies, HOMEPAGE and QA fixes #556

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 29 additions & 15 deletions media-sound/cadence/cadence-9999-r7.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

EAPI=8

PYTHON_COMPAT=( python3_10 )
inherit git-r3 python-single-r1 gnome2-utils
PYTHON_COMPAT=( python3_{10..11} )
inherit git-r3 python-single-r1 desktop xdg

DESCRIPTION="Collection of tools useful for audio production"
HOMEPAGE="http://kxstudio.linuxaudio.org/Applications:Cadence"
HOMEPAGE="https://kx.studio//Applications:Cadence"
EGIT_REPO_URI="https://github.com/falkTX/Cadence.git"
KEYWORDS=""
LICENSE="GPL-2"
Expand All @@ -16,13 +16,23 @@ SLOT="0"
IUSE="pulseaudio a2jmidid ladish opengl"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

# shellcheck disable=SC2016
RDEPEND="${PYTHON_DEPS}
media-sound/jack2[dbus]
$(python_gen_cond_dep 'dev-python/PyQt5[dbus,gui,opengl?,svg,widgets,${PYTHON_USEDEP}]')
$(python_gen_cond_dep 'dev-python/dbus-python[${PYTHON_USEDEP}]')
$(python_gen_cond_dep '
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/PyQt5[dbus,gui,opengl?,svg,widgets,${PYTHON_USEDEP}]
')

virtual/jack
a2jmidid? ( media-sound/a2jmidid[dbus] )
ladish? ( >=media-sound/ladish-9999 )
pulseaudio? ( media-sound/pulseaudio[jack] )"
pulseaudio? (
|| (
media-video/pipewire[jack-sdk]
media-sound/pulseaudio-daemon[jack]
)
)
"
DEPEND=${RDEPEND}

src_prepare() {
Expand Down Expand Up @@ -50,30 +60,34 @@ src_compile() {
src_install() {
emake PREFIX="/usr" DESTDIR="${D}" 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/catarina.desktop"
rm -rf "${D}/usr/share/applications/"*.desktop
rm -rf "${D}/usr/bin/catarina"

if use !pulseaudio; then
rm -rf "${D}/usr/bin/cadence-pulse2jack"
rm -rf "${D}/usr/bin/cadence-pulse2loopback"
rm -rf "${D}/usr/share/cadence/pulse2jack"
rm -rf "${D}/usr/share/cadence/pulse2loopback"
fi

if use !ladish; then
rm -rf "${D}/usr/bin/claudia-launcher"
rm -rf "${D}/usr/bin/claudia"
rm -rf "${D}/usr/share/cadence/icons/claudia-hicolor/"
rm -rf "${D}/usr/share/applications/claudia.desktop"
rm -rf "${D}/usr/share/applications/claudia-launcher.desktop"
fi
}

pkg_postinst() {
gnome2_icon_cache_update
}

pkg_postrm() {
gnome2_icon_cache_update
# 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"
if use ladish; then
make_desktop_entry claudia Claudia claudia "AudioVideo;AudioVideoEditing;Qt"
fi
}