Totem building

This commit is contained in:
Gerardo J. Puerta
2022-10-24 18:40:01 +02:00
parent ac268a82ec
commit 2a9e3df414
57 changed files with 1608 additions and 1278 deletions

View File

@ -0,0 +1,4 @@
AUX meson-version-fix.patch 336 BLAKE2B eac21e3c6ec97917c986e6c899ad8fa6c200fad1a111a33cf8c01632c33c65de038a8af9a18027984e08dbcbfdd7357ef44e4edc112a502c69fc06f17f02bf72 SHA512 d9b1416288f2a6165e67823919188d71cf7a388f7d2d61e4a4359ea994fed1582ce6a5d19f195fe045d810304985ee36ef0c9dba69106caf57addcd5c5b6c463
DIST totem-3.34.1.tar.xz 2157160 BLAKE2B 9ae9c8f6485c7377af07803c328e8ea3cc6fa80d8e30a7045bd2b50f7bc3d5a12582e5b60d901d22683f89e994c619c26ddb8b0890e343c873d4457fa177786d SHA512 9a3556f5cf522fca29926db185c2e5d25bdb80a25e14d0ba3062a7f15fc3ec40ae9f25752763bc444d4fd82ec2098efd732da662a1b1c5923ec19fde432606db
EBUILD totem-3.34.1.ebuild 3215 BLAKE2B 0d4f4ac70dca2dadce7e35defc65e1044cee9eed559336d566ecc71e24ebb265df87f40948bcf2512998b7c664119680f15816a42d94345c363cdb8e847f68df SHA512 07a44b1433a07fdd7e58075df39b00aa298d1e6eeff6683dcae0aa8a8d3602e359d3302173b10d442fc54c2234afcd87c6b04b4bdd3d629c400e3c63169f33c9
MISC metadata.xml 1203 BLAKE2B 17dbe39772d0e1e06ddc792e26344fa17d957c7fbc483030be4c48a3ebe262c23670f77f5ed811161f0419f020a435af791147f94276285b5c9e72b9fcf1e03f SHA512 d361035197d6ecbd6f2ad3cabc641cae06144148f468b5311c778950806fb0fffc9f2f4685ea557b64c7da67e08830b3ae4d11535849a01b9c06bb1c813b3b08

View File

@ -0,0 +1,11 @@
--- a/meson.build 2022-10-24 18:30:04.460643241 +0200
+++ b/meson.build 2022-10-24 18:30:12.632616397 +0200
@@ -3,7 +3,7 @@
version: '3.34.1',
license: 'GPL2+ with exception',
default_options: 'buildtype=debugoptimized',
- meson_version: '>= 0.49.0'
+ meson_version: '>= 0.50.0'
)
totem_version = meson.project_version()

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>gnome@gentoo.org</email>
<name>Gentoo GNOME Desktop</name>
</maintainer>
<maintainer type="project">
<email>media-video@gentoo.org</email>
<name>Gentoo Video project</name>
</maintainer>
<maintainer type="project">
<email>gstreamer@gentoo.org</email>
<name>GStreamer package maintainers</name>
</maintainer>
<longdescription>
Totem is movie player for the GNOME desktop. It features a playlist, fullscreen mode, seek and volume controls, as well as a pretty complete keyboard navigation. It comes with added functionality such as a video thumbnailer for Nautilus, Nautilus properties tab and a webcam utility.
</longdescription>
<use>
<flag name="lirc">Enable support for controlling Totem with a remote control
using <pkg>app-misc/lirc</pkg></flag>
<flag name="nautilus">Enable the nautilus extension</flag>
<flag name="python">Build support for <pkg>dev-lang/python</pkg> plugins</flag>
<flag name="zeitgeist">Build the plugin to inject events to <pkg>gnome-extra/zeitgeist</pkg></flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,133 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3+ )
PYTHON_REQ_USE="threads(+)"
inherit gnome2 python-single-r1 meson vala
DESCRIPTION="Media player for GNOME"
HOMEPAGE="https://wiki.gnome.org/Apps/Videos"
LICENSE="GPL-2+ LGPL-2+"
SLOT="0"
IUSE="cdr +introspection lirc nautilus +python +vala"
# see bug #359379
REQUIRED_USE="
python? ( introspection ${PYTHON_REQUIRED_USE} )
"
KEYWORDS="*"
# FIXME:
# Runtime dependency on gnome-session-2.91
COMMON_DEPEND="
>=dev-libs/glib-2.62.2:2[dbus]
>=dev-libs/libpeas-1.1[gtk]
>=dev-libs/totem-pl-parser-3.26.0:0=[introspection?]
>=media-libs/clutter-1.17.3:1.0[gtk]
>=media-libs/clutter-gst-2.99.2:3.0
>=media-libs/clutter-gtk-1.8.1:1.0
>=x11-libs/cairo-1.16.0
>=x11-libs/gdk-pixbuf-2.39.2:2
>=x11-libs/gtk+-3.24.12:3[introspection?]
>=media-libs/grilo-0.3.0:0.3[playlist]
>=media-libs/gstreamer-1.6.0:1.0
>=media-libs/gst-plugins-base-1.6.0:1.0[X,introspection?,pango]
media-libs/gst-plugins-good:1.0
x11-libs/libX11
gnome-base/gnome-desktop:3=
gnome-base/gsettings-desktop-schemas
cdr? (
>=dev-libs/libxml2-2.6:2
>=x11-libs/gtk+-3.24.12:3[X]
)
introspection? ( >=dev-libs/gobject-introspection-1.62.0:= )
lirc? ( app-misc/lirc )
nautilus? ( >=gnome-base/nautilus-2.91.3 )
python? (
${PYTHON_DEPS}
$(python_gen_cond_dep '>=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}]') )
"
RDEPEND="${COMMON_DEPEND}
media-plugins/grilo-plugins:0.3
media-plugins/gst-plugins-meta:1.0
media-plugins/gst-plugins-taglib:1.0
x11-themes/adwaita-icon-theme
python? (
$(python_gen_cond_dep '
>=dev-libs/libpeas-1.1.0[python,${PYTHON_USEDEP}]
dev-python/pyxdg[${PYTHON_USEDEP}]
dev-python/dbus-python[${PYTHON_USEDEP}]
')
>=x11-libs/gtk+-3.24.12:3[introspection] )
"
# libxml2+gdk-pixbuf required for glib-compile-resources
DEPEND="${COMMON_DEPEND}
app-text/docbook-xml-dtd:4.5
app-text/yelp-tools
>=dev-libs/libxml2-2.6:2
>=dev-util/meson-0.50
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
x11-base/xorg-proto
vala? ( $(vala_depend) )
"
# docbook-xml-dtd is needed for user doc
# Prevent dev-python/pylint dep, bug #482538
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
eapply \
"${FILESDIR}/meson-version-fix.patch"
vala_src_prepare
gnome2_src_prepare
}
src_configure() {
# FL-5969. workaround sandbox violations:
for card in /dev/dri/card* ; do
addpredict "${card}"
done
for render in /dev/dri/render* ; do
addpredict "${render}"
done
for vid in /dev/video* ; do
addpredict "${vid}"
done
# pylint is checked unconditionally, but is only used for make check
# appstream-util overriding necessary until upstream fixes their macro
# to respect configure switch
local emesonargs=(
-Denable-easy-codec-installation=yes
-Denable-gtk-doc=false
-Denable-python=$(usex python yes no)
-Dwith-plugins=auto
)
meson_src_configure
}
src_compile() {
# needed parallel build fix
eninja -C "${BUILD_DIR}" -j1
}
src_install() {
meson_src_install
if use python ; then
local plugin
for plugin in dbusservice pythonconsole opensubtitles ; do
python_optimize "${ED}"usr/$(get_libdir)/totem/plugins/${plugin}
done
fi
}