1
0
flewkey-overlay/media-plugins/dragonfly-reverb/dragonfly-reverb-9999.ebuild

76 lines
2.6 KiB
Bash
Raw Normal View History

# Copyright 1999-2023 Gentoo Authors
2020-08-15 22:55:58 -04:00
# Distributed under the terms of the GNU General Public License v2
EAPI=8
2020-08-15 22:55:58 -04:00
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/michaelwillis/dragonfly-reverb.git"
EGIT_SUBMODULES=( dpf dpf/dgl/src/pugl-upstream )
else
DPF_REF="dc6557a3c935ae4bb68f89d8bc698a805fff788e"
PUGL_REF="844528e197c51603f6cef3238b4a48d23bf60eb7"
SRC_URI="
https://github.com/michaelwillis/dragonfly-reverb/archive/${PV}.tar.gz -> ${P}.tar.gz
https://github.com/DISTRHO/DPF/archive/${DPF_REF}.tar.gz -> dpf-${DPF_REF}.tar.gz
https://github.com/DISTRHO/pugl/archive/${PUGL_REF}.tar.gz -> pugl-${PUGL_REF}.tar.gz
"
2020-08-15 22:55:58 -04:00
KEYWORDS="~amd64"
fi
DESCRIPTION="A set of free reverb effects"
HOMEPAGE="https://michaelwillis.github.io/dragonfly-reverb/"
LICENSE="GPL-3"
SLOT="0"
DEPEND=""
2020-08-15 22:55:58 -04:00
RDEPEND="${DEPEND}"
BDEPEND="
virtual/jack
x11-libs/libX11
"
src_unpack() {
if [[ ${PV} == 9999 ]]; then
git-r3_src_unpack
else
default
rm -rf "${S}/dpf" || die
ln -s "${WORKDIR}/DPF-${DPF_REF}" "${S}/dpf" || die
rm -rf "${S}/dpf/dgl/src/pugl-upstream" || die
ln -s "${WORKDIR}/pugl-${PUGL_REF}" "${S}/dpf/dgl/src/pugl-upstream" || die
fi
}
2020-08-15 22:55:58 -04:00
src_compile() {
export SKIP_STRIPPING=true
default_src_compile
}
src_install() {
dobin bin/DragonflyEarlyReflections
dobin bin/DragonflyPlateReverb
dobin bin/DragonflyHallReverb
dobin bin/DragonflyRoomReverb
dodir /usr/$(get_libdir)/vst
cp "${S}/bin/DragonflyEarlyReflections-vst.so" "${D}/usr/$(get_libdir)/vst"
cp "${S}/bin/DragonflyPlateReverb-vst.so" "${D}/usr/$(get_libdir)/vst"
cp "${S}/bin/DragonflyHallReverb-vst.so" "${D}/usr/$(get_libdir)/vst"
cp "${S}/bin/DragonflyRoomReverb-vst.so" "${D}/usr/$(get_libdir)/vst"
dodir /usr/$(get_libdir)/vst3
cp -r "${S}/bin/DragonflyEarlyReflections.vst3" "${D}/usr/$(get_libdir)/vst3"
cp -r "${S}/bin/DragonflyPlateReverb.vst3" "${D}/usr/$(get_libdir)/vst3"
cp -r "${S}/bin/DragonflyHallReverb.vst3" "${D}/usr/$(get_libdir)/vst3"
cp -r "${S}/bin/DragonflyRoomReverb.vst3" "${D}/usr/$(get_libdir)/vst3"
2020-08-15 22:55:58 -04:00
dodir /usr/$(get_libdir)/lv2
cp -r "${S}/bin/DragonflyEarlyReflections.lv2" "${D}/usr/$(get_libdir)/lv2"
cp -r "${S}/bin/DragonflyPlateReverb.lv2" "${D}/usr/$(get_libdir)/lv2"
cp -r "${S}/bin/DragonflyHallReverb.lv2" "${D}/usr/$(get_libdir)/lv2"
cp -r "${S}/bin/DragonflyRoomReverb.lv2" "${D}/usr/$(get_libdir)/lv2"
dodir /usr/$(get_libdir)/clap
cp -r "${S}/bin/DragonflyEarlyReflections.clap" "${D}/usr/$(get_libdir)/clap"
cp -r "${S}/bin/DragonflyPlateReverb.clap" "${D}/usr/$(get_libdir)/clap"
cp -r "${S}/bin/DragonflyHallReverb.clap" "${D}/usr/$(get_libdir)/clap"
cp -r "${S}/bin/DragonflyRoomReverb.clap" "${D}/usr/$(get_libdir)/clap"
2020-08-15 22:55:58 -04:00
}