megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
comparison media-video/lightworks/lightworks-12.0.2.ebuild @ 132:af030a9d6541
adding old dev-vcs/kallithea ebuild (lay around since late 2014, do not use!)
author | Daniel Neugebauer <dneuge@energiequant.de> |
---|---|
date | Sat, 26 Mar 2016 17:53:07 +0100 |
parents | media-video/lightworks/lightworks-11.5.ebuild@84f7fb6fd4d0 |
children |
comparison
equal
deleted
inserted
replaced
120:56f8a6108f7d | 132:af030a9d6541 |
---|---|
1 # Copyright 1999-2014 Gentoo Foundation | |
2 # Distributed under the terms of the GNU General Public License v2 | |
3 # $Header: $ | |
4 | |
5 EAPI=5 | |
6 | |
7 # ToDo list: | |
8 # | |
9 # - figure out runtime dependencies | |
10 # - try to move Lightworks to /opt as it is only available as a pre-compiled binary | |
11 # (not sure if possible since it is intended to be installed to /usr) | |
12 # - try to silence QA notices | |
13 # - figure out if high load/memory usage (memleak?) of ntcardvt process are specific to Gentoo | |
14 | |
15 inherit font | |
16 | |
17 DESCRIPTION="feature-rich non-linear video editor (NLE)" | |
18 HOMEPAGE="http://www.lwks.com/" | |
19 SRC_URI="lwks-12.0.2-amd64.deb" | |
20 | |
21 LICENSE="Lightworks" | |
22 RESTRICT="fetch" | |
23 SLOT="0" | |
24 KEYWORDS="~amd64" | |
25 IUSE="" | |
26 | |
27 DEPEND="app-arch/dpkg sys-apps/sed" | |
28 RDEPEND="" | |
29 | |
30 S="${WORKDIR}" | |
31 | |
32 pkg_nofetch() { | |
33 einfo "Please visit ${HOMEPAGE} to download Lightworks ${PV} and place ${SRC_URI} in ${DISTDIR}." | |
34 } | |
35 | |
36 src_unpack() { | |
37 /usr/bin/dpkg-deb -x ${DISTDIR}/${SRC_URI} ${WORKDIR} | |
38 } | |
39 | |
40 src_prepare() { | |
41 # .desktop entry: "Version" attribute is invalid (must be specification version, not app version number) | |
42 # see: http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html | |
43 /bin/sed -i -e 's/^Version=/X-Version=/' usr/share/applications/lightworks.desktop || die 'failed to fix lightworks.desktop' | |
44 } | |
45 | |
46 src_install() { | |
47 insinto /lib/udev/rules.d | |
48 doins lib/udev/rules.d/20-lightworks.rules | |
49 | |
50 exeinto /usr/bin | |
51 doexe usr/bin/lightworks | |
52 | |
53 insinto /usr/lib64/lightworks | |
54 doins -r usr/lib/lightworks/* | |
55 | |
56 exeinto /usr/lib64/lightworks | |
57 doexe usr/lib/lightworks/spawn | |
58 doexe usr/lib/lightworks/ntcardvt | |
59 | |
60 insinto /usr/share/applications | |
61 doins usr/share/applications/lightworks.desktop | |
62 | |
63 insinto /usr/share/doc/lightworks | |
64 doins -r usr/share/doc/lightworks/* | |
65 | |
66 insinto /usr/share/fonts/truetype | |
67 doins usr/share/fonts/truetype/lw2.ttf | |
68 doins usr/share/fonts/truetype/lw3.ttf | |
69 | |
70 insinto /usr/share/lightworks | |
71 doins -r usr/share/lightworks/* | |
72 } | |
73 | |
74 pkg_postinst() { | |
75 # update font cache because we installed font files | |
76 font_pkg_postinst | |
77 | |
78 # 1 2 3 4 5 6 7 8 | |
79 # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
80 einfo "" | |
81 einfo "Please ignore all QA notices printed above." | |
82 einfo "" | |
83 einfo "You will need to register an account at ${HOMEPAGE} in order to use Lightworks." | |
84 einfo "Some features are restricted on free accounts but can be unlocked for a fee if" | |
85 einfo "needed." | |
86 einfo "" | |
87 einfo "If you are running PulseAudio, you may want to use pasuspender around Lightworks" | |
88 einfo "if you experience high audio latency." | |
89 einfo "" | |
90 ewarn "Please monitor memory usage and CPU load during your first sessions with" | |
91 ewarn "Lightworks as ntcardvt *may* run wild and cause your system to fall into swap." | |
92 ewarn "If you can spare a few moments of your time and want to help, please contact us" | |
93 ewarn "at gentoo-overlay@megacoffee.net for trying to identify the cause of that" | |
94 ewarn "behaviour (reports about everything running fine are welcome as well). :)" | |
95 } |