Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/peek/, media-video/peek/files/
Date: Thu, 20 Feb 2020 22:56:56
Message-Id: 1582239395.08d51a2428e8e9f44760a02f40a576a87a21af2a.voyageur@gentoo
1 commit: 08d51a2428e8e9f44760a02f40a576a87a21af2a
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 20 22:56:35 2020 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 20 22:56:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08d51a24
7
8 media-video/peek: 1.5.1 bump
9
10 Closes: https://bugs.gentoo.org/710168
11 Package-Manager: Portage-2.3.89, Repoman-2.3.20
12 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
13
14 media-video/peek/Manifest | 1 +
15 media-video/peek/files/peek-1.5.1-meson.patch | 79 +++++++++++++++++++++++++++
16 media-video/peek/peek-1.5.1.ebuild | 54 ++++++++++++++++++
17 3 files changed, 134 insertions(+)
18
19 diff --git a/media-video/peek/Manifest b/media-video/peek/Manifest
20 index b9947a3df0c..992153c215a 100644
21 --- a/media-video/peek/Manifest
22 +++ b/media-video/peek/Manifest
23 @@ -1 +1,2 @@
24 DIST peek-1.4.0.tar.gz 2647446 BLAKE2B 688acb01e127c31fd9d8c6713757bf01e6b4ed1211a32787f5729b6a26308599a61c4ab057a2a008d3cc388f9492a41e70c34c92e90ded0058bbb325e9f828c8 SHA512 ef1723f72d1c575493b2e9192cee6038807d37d875a797781169e5f4640635deda947362dcf2e1a9149fcfe88de532b8ea05c665b14b1befaa9aa8c982d9aa31
25 +DIST peek-1.5.1.tar.gz 2659772 BLAKE2B f33686bb023c5589cc61693854337b8ffda35da26ae8b0ea32ebb38d0738fc438424bae67d7eb600889ceb7377e8cc53eb9eaeef9f6bcf9d1a0d285265b4580b SHA512 dc25f24b1f5954ff26f399f86bf0a2a9b90c4d63c9cd33fcd44f16e447d23070c04e760c57bdc8a946e699c3038b8ee7afc44ce6daa7030e2f9e6f071be6eae4
26
27 diff --git a/media-video/peek/files/peek-1.5.1-meson.patch b/media-video/peek/files/peek-1.5.1-meson.patch
28 new file mode 100644
29 index 00000000000..4812fb621dd
30 --- /dev/null
31 +++ b/media-video/peek/files/peek-1.5.1-meson.patch
32 @@ -0,0 +1,79 @@
33 +From 0851f6b41aec97e633743ffc2c552fc89597b532 Mon Sep 17 00:00:00 2001
34 +From: Bernard Cafarelli <bernard.cafarelli@×××××.com>
35 +Date: Tue, 24 Sep 2019 15:45:10 +0200
36 +Subject: [PATCH] Add meson build option for keybinder
37 +
38 +This uses the feature type from meson >=0.47 to force enable/disbable
39 +keybinder support (helpful for packaging)
40 +---
41 + BUILD_NOTES.md | 2 +-
42 + README.md | 2 +-
43 + meson.build | 2 +-
44 + meson_options.txt | 1 +
45 + src/meson.build | 2 +-
46 + 5 files changed, 5 insertions(+), 4 deletions(-)
47 +
48 +diff --git a/BUILD_NOTES.md b/BUILD_NOTES.md
49 +index c146cbc..2d8c8b2 100644
50 +--- a/BUILD_NOTES.md
51 ++++ b/BUILD_NOTES.md
52 +@@ -34,7 +34,7 @@ From inside the Peek source folder run:
53 + ### Debian package
54 +
55 + #### Build requirements
56 +- - meson (>= 0.37.0)
57 ++ - meson (>= 0.47.0)
58 + - valac (>= 0.22)
59 + - libgtk-3-dev (>= 3.20)
60 + - libkeybinder-3.0-dev
61 +diff --git a/README.md b/README.md
62 +index 8a45e02..10c7e45 100644
63 +--- a/README.md
64 ++++ b/README.md
65 +@@ -79,7 +79,7 @@ Support for more Wayland desktops might be added in the future (see FAQs below).
66 + ### Development
67 +
68 + - Vala compiler >= 0.22
69 +-- Meson >= 0.37.0
70 ++- Meson >= 0.47.0
71 + - Gettext (>= 0.19 for localized .desktop entry)
72 + - txt2man (optional for building man page)
73 +
74 +diff --git a/meson.build b/meson.build
75 +index 2a2a2eb..88adc0c 100644
76 +--- a/meson.build
77 ++++ b/meson.build
78 +@@ -1,6 +1,6 @@
79 + project('peek', ['c', 'vala'],
80 + version: '1.5.1',
81 +- meson_version: '>= 0.37.0',
82 ++ meson_version: '>= 0.47.0',
83 + )
84 +
85 + add_project_arguments([
86 +diff --git a/meson_options.txt b/meson_options.txt
87 +index f88ceaa..526ccc9 100644
88 +--- a/meson_options.txt
89 ++++ b/meson_options.txt
90 +@@ -1,4 +1,5 @@
91 + option('build-tests', type : 'boolean', value : true)
92 ++option('enable-keybinder', type : 'feature', value : 'auto')
93 + option('enable-filechoosernative', type : 'boolean', value : false)
94 + option('enable-gnome-shell', type : 'boolean', value : true)
95 + option('enable-open-file-manager', type : 'boolean', value : true)
96 +diff --git a/src/meson.build b/src/meson.build
97 +index 455f3ba..406af03 100644
98 +--- a/src/meson.build
99 ++++ b/src/meson.build
100 +@@ -49,7 +49,7 @@ enable_open_file_manager = get_option('enable-open-file-manager')
101 +
102 + # Dependencies
103 + gtk = dependency('gtk+-3.0', version: '>= 3.20')
104 +-keybinder = dependency('keybinder-3.0', required: false)
105 ++keybinder = dependency('keybinder-3.0', required: get_option('enable-keybinder'))
106 +
107 + peek_deps = [
108 + dependency('cairo'),
109 +--
110 +2.25.1
111 +
112
113 diff --git a/media-video/peek/peek-1.5.1.ebuild b/media-video/peek/peek-1.5.1.ebuild
114 new file mode 100644
115 index 00000000000..3fbafaeb7dc
116 --- /dev/null
117 +++ b/media-video/peek/peek-1.5.1.ebuild
118 @@ -0,0 +1,54 @@
119 +# Copyright 1999-2020 Gentoo Authors
120 +# Distributed under the terms of the GNU General Public License v2
121 +
122 +EAPI=7
123 +VALA_MIN_API_VERSION="0.22"
124 +
125 +inherit gnome2-utils meson vala xdg
126 +
127 +DESCRIPTION="Simple animated Gif screen recorder"
128 +HOMEPAGE="https://github.com/phw/peek"
129 +SRC_URI="https://github.com/phw/peek/archive/${PV}.tar.gz -> ${P}.tar.gz"
130 +
131 +LICENSE="GPL-3+"
132 +SLOT="0"
133 +KEYWORDS="~amd64 ~x86"
134 +IUSE="keybinder test"
135 +RESTRICT="!test? ( test )"
136 +
137 +RDEPEND=">=dev-libs/glib-2.38:2
138 + media-video/ffmpeg[X,encode,vpx,xcb(+)]
139 + virtual/imagemagick-tools
140 + >=x11-libs/gtk+-3.20:3
141 + keybinder? ( dev-libs/keybinder:3 )"
142 +DEPEND="${RDEPEND}
143 + $(vala_depend)
144 + app-text/txt2man
145 + >=sys-devel/gettext-0.19
146 + virtual/pkgconfig"
147 +
148 +PATCHES=( "${FILESDIR}"/${P}-meson.patch )
149 +
150 +src_prepare() {
151 + vala_src_prepare
152 + default
153 +}
154 +
155 +src_configure() {
156 + local emesonargs=(
157 + $(meson_feature keybinder enable-keybinder)
158 + $(meson_use test build-tests)
159 + )
160 +
161 + meson_src_configure
162 +}
163 +
164 +pkg_postinst() {
165 + xdg_pkg_postinst
166 + gnome2_schemas_update
167 +}
168 +
169 +pkg_postrm() {
170 + xdg_pkg_postrm
171 + gnome2_schemas_update
172 +}