Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/gxine/files/, media-video/gxine/
Date: Thu, 07 Jan 2021 10:08:37
Message-Id: 1610014101.df7f71485a7a8c730799e7cdedf490d432a76f2b.soap@gentoo
1 commit: df7f71485a7a8c730799e7cdedf490d432a76f2b
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Thu Jan 7 10:08:21 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 10:08:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df7f7148
7
8 media-video/gxine: Port to EAPI 7
9
10 Closes: https://bugs.gentoo.org/709306
11 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 .../gxine/files/gxine-0.5.909-fno-common.patch | 22 +++++++
15 media-video/gxine/gxine-0.5.909-r1.ebuild | 71 ++++++++++++++++++++++
16 2 files changed, 93 insertions(+)
17
18 diff --git a/media-video/gxine/files/gxine-0.5.909-fno-common.patch b/media-video/gxine/files/gxine-0.5.909-fno-common.patch
19 new file mode 100644
20 index 00000000000..32ad6c3770b
21 --- /dev/null
22 +++ b/media-video/gxine/files/gxine-0.5.909-fno-common.patch
23 @@ -0,0 +1,22 @@
24 +https://bugs.gentoo.org/709306
25 +--- a/src/main.c
26 ++++ b/src/main.c
27 +@@ -75,6 +75,7 @@
28 + * globals
29 + */
30 +
31 ++extern int gxine_init_count;
32 + int verbosity;
33 + GtkWidget *app = NULL;
34 + const char *plugindir, *bindir, *logodir, *pixmapdir, *icondir, *miscdir, *confdir;
35 +--- a/src/utils.h
36 ++++ b/src/utils.h
37 +@@ -108,7 +108,7 @@ void do_pending_events (void);
38 +
39 + const char *get_copyright_notice (void);
40 +
41 +-int gxine_init_count;
42 ++extern int gxine_init_count;
43 + static inline void gxine_init_add (GSourceFunc func, gpointer data)
44 + {
45 + ++gxine_init_count;
46
47 diff --git a/media-video/gxine/gxine-0.5.909-r1.ebuild b/media-video/gxine/gxine-0.5.909-r1.ebuild
48 new file mode 100644
49 index 00000000000..5c596580769
50 --- /dev/null
51 +++ b/media-video/gxine/gxine-0.5.909-r1.ebuild
52 @@ -0,0 +1,71 @@
53 +# Copyright 1999-2021 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=7
57 +
58 +inherit autotools xdg
59 +
60 +DESCRIPTION="GTK+ Front-End for libxine"
61 +HOMEPAGE="http://xine.sourceforge.net/"
62 +SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
63 +
64 +LICENSE="GPL-2"
65 +SLOT="0"
66 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
67 +IUSE="l10n_cs l10n_de lirc nls udev xinerama"
68 +
69 +DEPEND="
70 + media-libs/xine-lib[gtk]
71 + x11-libs/gtk+:2
72 + dev-lang/spidermonkey:0
73 + dev-libs/glib
74 + x11-libs/libX11
75 + x11-libs/libXext
76 + x11-libs/libXrender
77 + x11-libs/libxcb
78 + lirc? ( app-misc/lirc )
79 + nls? ( virtual/libintl )
80 + udev? ( dev-libs/libgudev:= )
81 + xinerama? ( x11-libs/libXinerama )"
82 +RDEPEND="${DEPEND}"
83 +BDEPEND="
84 + virtual/pkgconfig
85 + nls? ( sys-devel/gettext )"
86 +
87 +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
88 +
89 +src_prepare() {
90 + default
91 + # need to disable calling of xine-list when running without
92 + # userpriv, otherwise we get sandbox violations (bug #233847)
93 + if [[ ${EUID} == 0 ]]; then
94 + sed -i -e 's:^XINE_LIST=.*$:XINE_LIST=:' configure.ac || die
95 + fi
96 +
97 + eautoreconf
98 +}
99 +
100 +src_configure() {
101 + econf \
102 + --enable-watchdog \
103 + --with-xcb \
104 + --without-browser-plugin \
105 + --without-dbus \
106 + --without-hal \
107 + $(use_enable nls) \
108 + $(use_enable lirc) \
109 + $(use_with udev gudev) \
110 + $(use_with xinerama)
111 +}
112 +
113 +src_install() {
114 + emake DESTDIR="${D}" \
115 + docdir="${EPREFIX}"/usr/share/doc/${PF} \
116 + docsdir="${EPREFIX}"/usr/share/doc/${PF} \
117 + install
118 +
119 + dodoc AUTHORS BUGS ChangeLog README{,_l10n} TODO
120 +
121 + use l10n_cs && dodoc README.cs
122 + use l10n_de && dodoc README.de
123 +}