# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 DESCRIPTION="Cross-platform film & video editor" HOMEPAGE="https://lwks.com" SRC_URI="https://cdn.lwks.com/releases/2020.1.1/lightworks_2020.1.1_r124942.deb" LICENSE="freemium" SLOT="0" KEYWORDS="-* ~amd64" IUSE="" RESTRICT="mirror strip" RDEPEND="net-misc/curl:0 media-libs/glu media-libs/portaudio:0 media-gfx/nvidia-cg-toolkit x11-libs/gtk+:3" S=${WORKDIR} src_install() { tar -Jpxf "${WORKDIR}/data.tar.xz" -C "${D}" || die rmdir "${D}"/{lib/udev/rules.d,lib/udev,lib} || die # use system-wide libraries rm -f "${D}"/usr/lib/lightworks/libportaudio* || die rm -f "${D}"/usr/lib/lightworks/libcurl.so* || die rm -f "${D}"/usr/lib/lightworks/libsw* || die rm -f "${D}"/usr/lib/lightworks/libav* || die # libraw* requires non-existent media-libs/jpeg:8; # deleting libraw* will not help: dng.lwd requires non-existent media-libs/libraw:0/19 #rm -f "${D}"/usr/lib/lightworks/libraw* || die # lightworks may want this # fperms a+rw /usr/share/lightworks/{Preferences,"Audio Mixes"} } pkg_postinst() { einfo "In case of problems, refer to ~/Lightworks/Logs/" einfo "Lightworks detects many known issues, but does not report them via the UI." einfo einfo "Import of raw images will probably not work due to missing media-libs/libraw:0/19." }