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-11.5.ebuild @ 49:84f7fb6fd4d0

adding Lightworks 11.5
author Daniel Neugebauer <dneuge@energiequant.de>
date Sat, 01 Feb 2014 22:36:22 +0100
parents
children
comparison
equal deleted inserted replaced
48:50801b1fe3ee 49:84f7fb6fd4d0
1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
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 # - 32 bit version, maybe?
14 # - figure out if high load/memory usage (memleak?) of ntcardvt process are specific to Gentoo
15
16 inherit font
17
18 DESCRIPTION="feature-rich non-linear video editor (NLE)"
19 HOMEPAGE="http://www.lwks.com/"
20 SRC_URI="lwks-11.5-amd64.deb"
21
22 LICENSE="Lightworks"
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
69 insinto /usr/share/lightworks
70 doins -r usr/share/lightworks/*
71 }
72
73 pkg_postinst() {
74 # update font cache because we installed a TTF file
75 font_pkg_postinst
76
77 # 1 2 3 4 5 6 7 8
78 # 12345678901234567890123456789012345678901234567890123456789012345678901234567890
79 einfo ""
80 einfo "Please ignore all QA notices printed above."
81 einfo ""
82 einfo "You will need to register an account at ${HOMEPAGE} in order to use Lightworks."
83 einfo "Some features are restricted on free accounts but can be unlocked for a fee if"
84 einfo "needed."
85 einfo ""
86 einfo "If you are running PulseAudio, you may want to use pasuspender around Lightworks"
87 einfo "if you experience high audio latency."
88 einfo ""
89 ewarn "Please monitor memory usage and CPU load during your first sessions with"
90 ewarn "Lightworks as ntcardvt *may* run wild and cause your system to fall into swap."
91 ewarn "If you can spare a few moments of your time and want to help, please contact us"
92 ewarn "at gentoo-overlay@megacoffee.net for trying to identify the cause of that"
93 ewarn "behaviour (reports about everything running fine are welcome as well). :)"
94 }