Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/gexiv2/files/, media-libs/gexiv2/
Date: Thu, 03 Jan 2019 14:40:43
Message-Id: 1546526395.92d9ec58b92616dce6df9e08400671281a9cf8c7.asturm@gentoo
1 commit: 92d9ec58b92616dce6df9e08400671281a9cf8c7
2 Author: Marty E. Plummer <hanetzer <AT> startmail <DOT> com>
3 AuthorDate: Tue Jan 1 16:33:26 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 3 14:39:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d9ec58
7
8 media-libs/gexiv2: version bump to 0.10.10
9
10 Package-Manager: Portage-2.3.53, Repoman-2.3.12
11 Signed-off-by: Marty E. Plummer <hanetzer <AT> startmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/10720
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 media-libs/gexiv2/Manifest | 1 +
16 .../gexiv2/files/gexiv2-0.10.10-meson-fixup.patch | 29 ++++++++
17 media-libs/gexiv2/gexiv2-0.10.10.ebuild | 79 ++++++++++++++++++++++
18 media-libs/gexiv2/gexiv2-9999.ebuild | 73 ++++++++++++++++++++
19 4 files changed, 182 insertions(+)
20
21 diff --git a/media-libs/gexiv2/Manifest b/media-libs/gexiv2/Manifest
22 index 01458e8b3ec..2fc80a510e8 100644
23 --- a/media-libs/gexiv2/Manifest
24 +++ b/media-libs/gexiv2/Manifest
25 @@ -1,2 +1,3 @@
26 +DIST gexiv2-0.10.10.tar.xz 638168 BLAKE2B ae75a06007dcaca4c22e463661073d796b77921a313a5bb450c488ee963f72c6095d7abc12dedc0d089a28905cf386062221073100ba3513d9fb13eb524365ee SHA512 41e5b4a9d81882ea4b1bc6f3b9ced95ca4d03f836de30ff90b7a43311e5319f7c0f46cbad767bf2b00926c8e5fd2c1e8ca2a2113c308e23b7a4c21205399abf7
27 DIST gexiv2-0.10.8.tar.xz 634696 BLAKE2B 182cda3bac5b3211e5ef8267628a86cc496c0242f25c5cd94ed9eab81c7460022373f3bb794c976fd0b9a10e49f9ca7109521ac6f99bbe7a4e0306a31db899da SHA512 4c25cf6884495151947a70e62a096f3279223673bece4d4ff02720b2820aaad9e80c8715e02bf46c3f5598f582fdf07b4b3ddabd017d53001245e3381a4cc286
28 DIST gexiv2-0.10.9.tar.xz 380348 BLAKE2B 6e1479f1a4ac74f622f71eb554c42a5170091d6b1b790962ef415eab4b2528dececa2f2f7147cc662fa00503ec66766294f7efd9401bae4771e72c56724398ec SHA512 40683ce341c5eb09ad67a4a25ad14a791247a5b5f459acba424815e98d5797b0a7fb338fb4d4f1c234147c9268abe34570698fd4259cb80f7f7af76af0f0fba3
29
30 diff --git a/media-libs/gexiv2/files/gexiv2-0.10.10-meson-fixup.patch b/media-libs/gexiv2/files/gexiv2-0.10.10-meson-fixup.patch
31 new file mode 100644
32 index 00000000000..03f0e4fd316
33 --- /dev/null
34 +++ b/media-libs/gexiv2/files/gexiv2-0.10.10-meson-fixup.patch
35 @@ -0,0 +1,29 @@
36 +--- a/meson.build
37 ++++ b/meson.build
38 +@@ -9,12 +9,12 @@ gir = find_program('g-ir-scanner', requi
39 + vapigen = find_program('vapigen', required: false)
40 + vala = find_program('valac', required: false)
41 +
42 +-introspection_available = gir.found() and not get_option('disable-introspection')
43 +-vapi_available = introspection_available and vapigen.found() and not get_option('disable-vala')
44 ++introspection_available = gir.found() and get_option('introspection')
45 ++vapi_available = introspection_available and vapigen.found() and get_option('vapi')
46 +
47 + subdir('gexiv2')
48 +
49 +-if get_option('enable-gtk-doc')
50 ++if get_option('gtk_doc')
51 + subdir('docs')
52 + endif
53 +
54 +--- a/meson_options.txt
55 ++++ b/meson_options.txt
56 +@@ -1,5 +1,5 @@
57 +-option('enable-gtk-doc', type: 'boolean', value: false, description: 'Enable generating the API reference (depends on GTK-Doc)')
58 +-option('disable-introspection', type: 'boolean', value : false, description: 'Disable GObject Introspection')
59 +-option('disable-vala', type: 'boolean', value: false, description: 'Disable generation of vala vapi file')
60 ++option('gtk_doc', type: 'boolean', value: false, description: 'Enable or disable generating the API reference (depends on GTK-Doc)')
61 ++option('introspection', type: 'boolean', value : true, description: 'Enable or disable GObject Introspection')
62 ++option('vapi', type: 'boolean', value: true, description: 'Enable or disable generation of vala vapi file')
63 + option('python2-girdir', type: 'string', value : 'auto', description : 'Installation dir for PyGObject2 overrides (default = auto, no disables python2)')
64 + option('python3-girdir', type: 'string', value : 'auto', description : 'Installation dir for PyGObject3 overrides (default = auto, no disables python3)')
65
66 diff --git a/media-libs/gexiv2/gexiv2-0.10.10.ebuild b/media-libs/gexiv2/gexiv2-0.10.10.ebuild
67 new file mode 100644
68 index 00000000000..ad4135f9b2a
69 --- /dev/null
70 +++ b/media-libs/gexiv2/gexiv2-0.10.10.ebuild
71 @@ -0,0 +1,79 @@
72 +# Copyright 1999-2019 Gentoo Authors
73 +# Distributed under the terms of the GNU General Public License v2
74 +
75 +EAPI=7
76 +
77 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
78 +
79 +inherit meson python-r1 vala xdg-utils
80 +
81 +DESCRIPTION="GObject-based wrapper around the Exiv2 library"
82 +HOMEPAGE="https://wiki.gnome.org/Projects/gexiv2"
83 +
84 +if [[ ${PV} == 9999 ]]; then
85 + EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gexiv2.git"
86 + inherit git-r3
87 +else
88 + SRC_URI="mirror://gnome/sources/${PN}/$(ver_cut 1-2)/${P}.tar.xz"
89 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
90 +fi
91 +
92 +LICENSE="LGPL-2.1"
93 +SLOT="0"
94 +IUSE="gtk-doc +introspection python static-libs test vala"
95 +
96 +REQUIRED_USE="
97 + python? ( introspection ${PYTHON_REQUIRED_USE} )
98 + test? ( python introspection )
99 + vala? ( introspection )
100 +"
101 +
102 +RDEPEND="${PYTHON_DEPS}
103 + >=dev-libs/glib-2.38.0:2
104 + >=media-gfx/exiv2-0.21:=
105 + introspection? ( >=dev-libs/gobject-introspection-1.54:= )
106 +"
107 +DEPEND="${RDEPEND}"
108 +BDEPEND="
109 + dev-util/glib-utils
110 + virtual/pkgconfig
111 + test? (
112 + dev-python/pygobject:3
113 + media-gfx/exiv2[xmp]
114 + )
115 + vala? ( $(vala_depend) )
116 +"
117 +
118 +PATCHES=(
119 + # renames meson options to current git HEAD's names, current naming scheme
120 + # is rather awkward
121 + "${FILESDIR}"/${PN}-0.10.10-meson-fixup.patch
122 +)
123 +
124 +src_prepare() {
125 + xdg_environment_reset
126 + use vala && vala_src_prepare
127 + default
128 +}
129 +
130 +src_configure() {
131 + local emesonargs=(
132 + $(meson_use introspection)
133 + $(meson_use vala vapi)
134 + $(meson_use gtk-doc gtk_doc)
135 + # prevents installation of python modules (uses install_data from meson
136 + # which does not optimize the modules
137 + -Dpython2-girdir=no
138 + -Dpython3-girdir=no
139 + )
140 + meson_src_configure
141 +}
142 +
143 +src_install() {
144 + meson_src_install
145 +
146 + if use python ; then
147 + python_moduleinto gi/overrides/
148 + python_foreach_impl python_domodule GExiv2.py
149 + fi
150 +}
151
152 diff --git a/media-libs/gexiv2/gexiv2-9999.ebuild b/media-libs/gexiv2/gexiv2-9999.ebuild
153 new file mode 100644
154 index 00000000000..2547c6a9ca9
155 --- /dev/null
156 +++ b/media-libs/gexiv2/gexiv2-9999.ebuild
157 @@ -0,0 +1,73 @@
158 +# Copyright 1999-2019 Gentoo Authors
159 +# Distributed under the terms of the GNU General Public License v2
160 +
161 +EAPI=7
162 +
163 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
164 +
165 +inherit meson python-r1 vala xdg-utils
166 +
167 +DESCRIPTION="GObject-based wrapper around the Exiv2 library"
168 +HOMEPAGE="https://wiki.gnome.org/Projects/gexiv2"
169 +
170 +if [[ ${PV} == 9999 ]]; then
171 + EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/gexiv2.git"
172 + inherit git-r3
173 +else
174 + SRC_URI="mirror://gnome/sources/${PN}/$(ver_cut 1-2)/${P}.tar.xz"
175 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
176 +fi
177 +
178 +LICENSE="LGPL-2.1"
179 +SLOT="0"
180 +IUSE="gtk-doc +introspection python static-libs test vala"
181 +
182 +REQUIRED_USE="
183 + python? ( introspection ${PYTHON_REQUIRED_USE} )
184 + test? ( python introspection )
185 + vala? ( introspection )
186 +"
187 +
188 +RDEPEND="${PYTHON_DEPS}
189 + >=dev-libs/glib-2.38.0:2
190 + >=media-gfx/exiv2-0.21:=
191 + introspection? ( >=dev-libs/gobject-introspection-1.54:= )
192 +"
193 +DEPEND="${RDEPEND}"
194 +BDEPEND="
195 + dev-util/glib-utils
196 + virtual/pkgconfig
197 + test? (
198 + dev-python/pygobject:3
199 + media-gfx/exiv2[xmp]
200 + )
201 + vala? ( $(vala_depend) )
202 +"
203 +
204 +src_prepare() {
205 + xdg_environment_reset
206 + use vala && vala_src_prepare
207 + default
208 +}
209 +
210 +src_configure() {
211 + local emesonargs=(
212 + $(meson_use introspection)
213 + $(meson_use vala vapi)
214 + $(meson_use gtk-doc gtk_doc)
215 + # prevents installation of python modules (uses install_data from meson
216 + # which does not optimize the modules
217 + -Dpython2-girdir=no
218 + -Dpython3-girdir=no
219 + )
220 + meson_src_configure
221 +}
222 +
223 +src_install() {
224 + meson_src_install
225 +
226 + if use python ; then
227 + python_moduleinto gi/overrides/
228 + python_foreach_impl python_domodule GExiv2.py
229 + fi
230 +}