Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/photofilmstrip/
Date: Mon, 05 Jun 2017 09:45:11
Message-Id: 1496655890.bd810aeb57793691753989f65d53fbe701354436.pacho@gentoo
1 commit: bd810aeb57793691753989f65d53fbe701354436
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 5 09:43:18 2017 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 5 09:44:50 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd810aeb
7
8 media-video/photofilmstrip: Fix wxpython depend (#584124)
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 .../photofilmstrip/photofilmstrip-2.1.0-r2.ebuild | 63 ++++++++++++++++++++++
13 1 file changed, 63 insertions(+)
14
15 diff --git a/media-video/photofilmstrip/photofilmstrip-2.1.0-r2.ebuild b/media-video/photofilmstrip/photofilmstrip-2.1.0-r2.ebuild
16 new file mode 100644
17 index 00000000000..d20fa98d706
18 --- /dev/null
19 +++ b/media-video/photofilmstrip/photofilmstrip-2.1.0-r2.ebuild
20 @@ -0,0 +1,63 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI="6"
25 +PYTHON_COMPAT=( python2_7 )
26 +PYTHON_REQ_USE="sqlite"
27 +DISTUTILS_SINGLE_IMPL=1
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Movie slideshow creator using Ken Burns effect"
32 +HOMEPAGE="http://www.photofilmstrip.org"
33 +SRC_URI="mirror://sourceforge/photostoryx/${PN}/${PV}/${P}.tar.gz"
34 +LICENSE="GPL-2+"
35 +SLOT="0"
36 +
37 +KEYWORDS="~amd64 ~x86"
38 +IUSE="cairo sdl"
39 +
40 +RDEPEND="
41 + dev-python/wxpython:3.0[cairo?,${PYTHON_USEDEP}]
42 + dev-python/pillow[${PYTHON_USEDEP}]
43 + media-video/mplayer[encode]
44 + sdl? ( dev-python/pygame[${PYTHON_USEDEP}] )
45 +"
46 +DEPEND="${RDEPEND}"
47 +
48 +# Fix bug #472774 (https://bugs.gentoo.org/show_bug.cgi?id=472774)
49 +PATCHES=(
50 + "${FILESDIR}/${P}-PIL_modules_imports_fix.patch"
51 + "${FILESDIR}/${P}-PIL_tostring_fix.patch"
52 +)
53 +
54 +DOCS=( CHANGES COPYING README )
55 +
56 +src_prepare() {
57 + # Remove unneeded icon resources update needing running X
58 + # Fix app doc/help files paths
59 + sed -i \
60 + -e '/self\._make_resources\(\)/d' \
61 + -e "s:\(os\.path\.join(\"share\", \"doc\", \"\)photofilmstrip:\1${PF}:" \
62 + setup.py || die
63 +
64 + sed -i \
65 + -e "s:\"photofilmstrip\":\"${PF}\":" \
66 + photofilmstrip/gui/HelpViewer.py || die
67 +
68 + # Fix desktop file entry
69 + sed -i \
70 + -e '/^Version.*/d' \
71 + data/photofilmstrip.desktop || die
72 +
73 + distutils-r1_src_prepare
74 +}
75 +
76 +src_install() {
77 + doman docs/manpage/*
78 +
79 + # Do not compress the apps help files
80 + docompress -x /usr/share/doc/${PF}/${PN}.hh{c,k,p}
81 +
82 + distutils-r1_src_install
83 +}