diff options
Diffstat (limited to 'media-video/cheese')
-rw-r--r-- | media-video/cheese/Manifest | 3 | ||||
-rw-r--r-- | media-video/cheese/cheese-43.0.ebuild | 100 | ||||
-rw-r--r-- | media-video/cheese/files/cheese-43.0-buildfix.patch | 20 |
3 files changed, 123 insertions, 0 deletions
diff --git a/media-video/cheese/Manifest b/media-video/cheese/Manifest index 67353509063c..70c528433c85 100644 --- a/media-video/cheese/Manifest +++ b/media-video/cheese/Manifest @@ -1,5 +1,8 @@ AUX 41.1-thumb-view-update-for-new-gnome-desktop-API.patch 1635 BLAKE2B f29859e2113062bb4b6c95888e85bca9f8e3a25a33fdc1af9f84f82ade634ed75222abbf63efdbaf9a46a44ac649f601162585e637ebeb82a24779f64694d7a2 SHA512 1d93ab8b429352d5a53de5a844ba95b54e4b3019fa963d5afe50ac6fafbdc5380453a282610f64b83b13594aa98720d0ca1d5085656c52107dd70a3957fd3c83 AUX cheese-3.38.0-buildfix.patch 736 BLAKE2B 3118378b5b125ae6fe223d3b114e07805eb2b5d300bb78ec6b8ff3888f19a0b68af0091aa33918c885991a86293c5cc530d65a75d433cd7c5d343889e5740fbe SHA512 6633f5ebdb2662d199d3f44f49754c8e2c9cd2d864084bff079f4f4de9f20d15489f84ca3acba46df0c9af36920c57b1eca94748c097cb744f71669a69fada47 +AUX cheese-43.0-buildfix.patch 762 BLAKE2B be49440d95b627586523da823085c1048186177881ee29f3d378d9d3fa49dac3799bc143cd594e10ecde9539b1e8a4defa1c6559d28376f8af2e8de0c4c24fd8 SHA512 8abb9a01b5b101fc8d6550db9b935ecaabe9eeec75527c189c9f3bb90c928637b953996966164517e71d084bc25c3997a2487771be4713276730013eecfb43e3 DIST cheese-41.1.tar.xz 1092912 BLAKE2B 9bbfbc59868f39b344b1102f819ca647d82e9dee327f1d2a2e6b30fcfd2c59dd5f79236355d7148e01a4b07d80d630406708d2a152535b5732cfb52690f9f402 SHA512 2c0922dda97f4ce701add45977b405eff9ddbc24eb286e9e05a9f9bfbd7998e8e77ef2a8f1bbce9f8349ff522ee3cb6d6566fa5df80d782e6d844bff69a30074 +DIST cheese-43.0.tar.xz 1095328 BLAKE2B 728cf913336f09ae073508d6bf18f7bb0cf4bb0e16ad5d6acd5fb77b75577303b1a2d8820b280a31c15ebdcbf231205881440105c390a0f16681dc5274a74446 SHA512 07ed087490b4024ecbc097c1a62e24fdc0c5c8acac23ba3ed246104655a8b1786faee5caa5e59cfa7b725527b5aedc587b0f99a2b43100497f866966818e345e EBUILD cheese-41.1.ebuild 2342 BLAKE2B fb36ecd5c7583f2712d9d8112133f93fd6ff5f0d3d7c8ffa2b1fc41913d67f9dad465e07efa453ab5ed4a6dd40d09da13c26b248e19a94b37708f0b347b62a6e SHA512 d26a1c2a27b396d3000b25dd5cc2a7b6e2c7fe9ad24cb34429c5dad17f0fe338455d4348571ea12bf2cd2ba9c3c33b20f8744c5667c7577adefe6633fac65c41 +EBUILD cheese-43.0.ebuild 2281 BLAKE2B 7ab57536a5411ec429572713dd065cc3ee434a8567deda2c60c97b3bf550df824dcc6535ae5e7edca9e591d3212733ba8d984774914069c9920994a3d57416fb SHA512 18c80a8f12c7535ae988b29d37968386a5b018aa2deb91f50c051aa5aaaf5c3e1c211a69b994e0c45153b2ce5145d15a6f2d7e8fba9a264d9cf2c8c5d6a68ed5 MISC metadata.xml 528 BLAKE2B 8bb571eba870c101ab13171963f52397177155b00f7c251542267340c18193db8cfb62162fa3a2b3238c4d759f6252195907ebf6db4e2693cd44da7990f5a52d SHA512 6751fe57feca587302400f15019a00e735a952c9e11bdc8518f0d288b0a5655a9440a092677eecea5279804dab84ed0c1e4043435da901b5211356242452fee0 diff --git a/media-video/cheese/cheese-43.0.ebuild b/media-video/cheese/cheese-43.0.ebuild new file mode 100644 index 000000000000..354d62a26bd6 --- /dev/null +++ b/media-video/cheese/cheese-43.0.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome.org gnome2-utils meson vala virtualx xdg + +DESCRIPTION="A cheesy program to take pictures and videos from your webcam" +HOMEPAGE="https://wiki.gnome.org/Apps/Cheese" + +LICENSE="GPL-2+" +SLOT="0/8" # subslot = libcheese soname version +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="gtk-doc +introspection test" +RESTRICT="!test? ( test )" + +DEPEND=" + >=media-libs/clutter-1.13.2:1.0[introspection?] + media-libs/clutter-gst:3.0 + >=media-libs/clutter-gtk-0.91.8:1.0 + x11-libs/gdk-pixbuf:2[jpeg,introspection?] + >=dev-libs/glib-2.39.90:2 + >=gnome-base/gnome-desktop-2.91.6:3= + >=media-libs/gstreamer-1.4:1.0[introspection?] + >=media-libs/gst-plugins-base-1.4:1.0[ogg,pango,theora,vorbis] + >=media-libs/gst-plugins-bad-1.4:1.0 + >=x11-libs/gtk+-3.13.4:3 + >=media-libs/libcanberra-0.26[gtk3] + x11-libs/libX11 + sys-apps/dbus + media-video/gnome-video-effects + introspection? ( >=dev-libs/gobject-introspection-1.56:= ) + + media-libs/cogl:1.0=[introspection?] + +" +RDEPEND="${DEPEND} + >=media-libs/gst-plugins-good-1.4:1.0 + + >=media-plugins/gst-plugins-jpeg-1.4:1.0 + || ( + >=media-plugins/gst-plugins-v4l2-1.4:1.0 + media-video/pipewire[gstreamer,v4l] + ) + >=media-plugins/gst-plugins-vpx-1.4:1.0 +" + +BDEPEND=" + gtk-doc? ( dev-util/gtk-doc ) + dev-libs/libxslt + app-text/docbook-xml-dtd:4.3 + dev-util/itstool + dev-libs/appstream-glib + dev-libs/libxml2:2 + dev-util/glib-utils + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig + x11-base/xorg-proto + test? ( x11-libs/libXtst ) + $(vala_depend) +" + +PATCHES=( + "${FILESDIR}"/${PN}-43.0-buildfix.patch +) + +src_prepare() { + default + vala_setup + xdg_environment_reset +} + +src_configure() { + local emesonargs=( + $(meson_use gtk-doc gtk_doc) + $(meson_use introspection) + $(meson_use test tests) + -Dman=true + ) + + meson_src_configure + + # Hack: version.xml is not generated if gtk-doc is not enabled + echo ${PV} > docs/reference/version.xml +} + +src_test() { + gnome2_environment_reset # Avoid dconf that looks at XDG_DATA_DIRS, which can sandbox fail if flatpak is installed + virtx meson_src_test +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/media-video/cheese/files/cheese-43.0-buildfix.patch b/media-video/cheese/files/cheese-43.0-buildfix.patch new file mode 100644 index 000000000000..25cd98362eb8 --- /dev/null +++ b/media-video/cheese/files/cheese-43.0-buildfix.patch @@ -0,0 +1,20 @@ +diff --git a/meson.build b/meson.build +index 9174b428..c8d489cc 100644 +--- a/meson.build ++++ b/meson.build +@@ -149,11 +149,7 @@ gnome_video_effects_dep = dependency( + # Recommend some runtime GStreamer plugins. + gst_inspect = find_program('gst-inspect-1.0', required: false) + if gst_inspect.found() +- foreach plugin: ['camerabin', 'vp8enc', 'webmmux'] +- if run_command(gst_inspect, plugin, check: false).returncode() != 0 +- warning(plugin + ' was not found. It needs to be installed before Cheese is run') +- endif +- endforeach ++ warning('unable to check for runtime GStreamer plugin dependencies due to Gentoo\'s sandbox: camerabin, vp8enc, webmmux') + else + warning('unable to check for runtime GStreamer plugin dependencies') + endif +-- +2.37.4 + |