annotate media-video/openshot/openshot-1.4.3.ebuild @ 484:d51a45f72eea

Remove outdated Maven version
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 06 Sep 2019 07:29:13 +0200
parents 627e480843ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
356
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2012 Gentoo Foundation
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header: $
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 EAPI=3
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 PYTHON_DEPEND=2:2.5
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 PYTHON_USE_WITH=xml
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 inherit versionator distutils fdo-mime
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 DESCRIPTION="OpenShot Video Editor is a non-linear video editor"
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 HOMEPAGE="http://www.openshotvideo.com"
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 SRC_URI="http://launchpad.net/openshot/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 LICENSE="GPL-3"
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 SLOT="0"
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 KEYWORDS="~amd64 ~x86"
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 IUSE=""
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 DEPEND=""
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 RDEPEND="
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 x11-libs/gtk+:2
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 dev-python/pygtk
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 dev-python/pygoocanvas
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 dev-python/pyxdg
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 dev-python/librsvg-python
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 dev-python/httplib2
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 media-libs/mlt[ffmpeg,frei0r,gtk,melt,python,sdl,xml]
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 media-sound/sox[encode,ffmpeg]
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 >=virtual/ffmpeg-0.6[encode,sdl]
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 virtual/python-imaging
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 "
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 #>=virtual/ffmpeg-0.6[encode,faac?,ieee1394?,mp3?,sdl,theora?,vorbis?,vpx,x264?,xvid?]
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 pkg_setup() {
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 python_set_active_version 2
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 python_pkg_setup
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 }
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 src_prepare() {
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 python_convert_shebangs -q -r 2 .
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 distutils_src_prepare
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 # Disable the installation of the mime.types file.
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 # The .desktop file would be used to update the mime database.
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 sed -ie '/launcher/,+1d' setup.py || die
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 # Avoid stuff covered by fdo-mime.eclass
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 # (update-mime-database update-desktop-database update-mime)
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 # export "FAKEROOTKEY=gentoo" does not work as this variable is filtered
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 # by portage
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 sed -ie '/FAILED = /,$d' setup.py || die
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 }
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 # TODO: check stuff installed to /usr/lib/python2.6/site-packages as there are
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 # some parts installed which shouldn't (locale, themes, profiles effects,
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 # etc...) Afaik only python stuff should go there and the rest probably to
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 # /usr/share/openshot
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 # The same goes for /usr/lib/mime/packages
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 pkg_postinst() {
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 fdo-mime_mime_database_update
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 fdo-mime_desktop_database_update
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 distutils_pkg_postinst
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65 }
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67 pkg_postrm() {
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 fdo-mime_mime_database_update
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69 fdo-mime_desktop_database_update
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70 distutils_pkg_postrm
627e480843ea add an openshot ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71 }