Postsync update gentoo
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10,11} )
|
||||
inherit python-single-r1 xdg-utils
|
||||
|
||||
DESCRIPTION="Fully-featured audio plugin host, supports many audio drivers and plugin formats"
|
||||
HOMEPAGE="http://kxstudio.linuxaudio.org/Applications:Carla"
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
# Disable submodules to prevent external plugins from being built and installed
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/falkTX/Carla.git"
|
||||
EGIT_SUBMODULES=()
|
||||
else
|
||||
SRC_URI="https://github.com/falkTX/Carla/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
RESTRICT="mirror"
|
||||
KEYWORDS="~amd64"
|
||||
S="${WORKDIR}/Carla-${PV}"
|
||||
fi
|
||||
LICENSE="GPL-2 LGPL-3"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="alsa gtk gtk2 opengl osc pulseaudio rdf sf2 sndfile X"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# $(python_gen_cond_dep 'dev-python/PyQt5[gui,opengl?,svg,widgets,${PYTHON_USEDEP}]')
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
virtual/jack
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
gtk? ( x11-libs/gtk+:3 )
|
||||
gtk2? ( x11-libs/gtk+:2 )
|
||||
osc? (
|
||||
media-libs/liblo
|
||||
media-libs/pyliblo
|
||||
)
|
||||
pulseaudio? ( media-libs/libpulse )
|
||||
rdf? ( dev-python/rdflib )
|
||||
sf2? ( media-sound/fluidsynth )
|
||||
sndfile? ( media-libs/libsndfile )
|
||||
X? ( x11-base/xorg-server )"
|
||||
DEPEND=${RDEPEND}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s|exec \$PYTHON|exec ${PYTHON}|" \
|
||||
data/carla \
|
||||
data/carla-control \
|
||||
data/carla-database \
|
||||
data/carla-jack-multi \
|
||||
data/carla-jack-single \
|
||||
data/carla-patchbay \
|
||||
data/carla-rack \
|
||||
data/carla-settings || die "sed failed"
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
myemakeargs=(
|
||||
LIBDIR="/usr/$(get_libdir)"
|
||||
SKIP_STRIPPING=true
|
||||
HAVE_FFMPEG=false
|
||||
HAVE_ZYN_DEPS=false
|
||||
HAVE_ZYN_UI_DEPS=false
|
||||
HAVE_QT4=false
|
||||
HAVE_QT5=true
|
||||
HAVE_PYQT5=false
|
||||
DEFAULT_QT=5
|
||||
HAVE_ALSA=$(usex alsa true false)
|
||||
HAVE_FLUIDSYNTH=$(usex sf2 true false)
|
||||
HAVE_GTK2=$(usex gtk2 true false)
|
||||
HAVE_GTK3=$(usex gtk true false)
|
||||
HAVE_LIBLO=$(usex osc true false)
|
||||
HAVE_PULSEAUDIO=$(usex pulseaudio true false)
|
||||
HAVE_SNDFILE=$(usex sndfile true false)
|
||||
HAVE_X11=$(usex X true false)
|
||||
)
|
||||
|
||||
# Print which options are enabled/disabled
|
||||
make features PREFIX="/usr" "${myemakeargs[@]}"
|
||||
|
||||
emake PREFIX="/usr" "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="/usr" "${myemakeargs[@]}" install
|
||||
if ! use osc; then
|
||||
find "${D}/usr" -iname "carla-control*" | xargs rm
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_mimeinfo_database_update
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_mimeinfo_database_update
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit git-r3 meson
|
||||
|
||||
DESCRIPTION="A highly automated and intuitive digital audio
|
||||
workstation"
|
||||
HOMEPAGE="https://www.zrythm.org/en/index.html"
|
||||
EGIT_REPO_URI="https://gitlab.zrythm.org/zrythm/zrythm.git"
|
||||
EGIT_BRANCH="v1"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
IUSE=""
|
||||
REQUIRED_USE=""
|
||||
|
||||
|
||||
RDEPEND="
|
||||
dev-scheme/guile:2.2
|
||||
media-libs/soxr
|
||||
gui-libs/libpanel
|
||||
gui-libs/libadwaita[vala]
|
||||
media-libs/lv2
|
||||
dev-libs/sord
|
||||
media-libs/sratom
|
||||
media-libs/lilv
|
||||
sci-libs/fftw[threads]
|
||||
gui-libs/gtksourceview
|
||||
media-sound/carla
|
||||
media-libs/vamp-plugin-sdk
|
||||
media-libs/rubberband
|
||||
sys-libs/libbacktrace
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
# S="${WORKDIR}/${P}"
|
||||
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Dx11=disabled
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
#
|
||||
# src_install() {
|
||||
# meson_src_install
|
||||
# rm -r ${D}/usr/share/doc/vala-panel-appmenu
|
||||
# }
|
||||
Reference in New Issue
Block a user