Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/graphene/
Date: Sat, 27 Jun 2020 20:53:12
Message-Id: 1593291163.b0b8a70d3a37aaa99eb518c3ce19cbbcde8d2093.leio@gentoo
1 commit: b0b8a70d3a37aaa99eb518c3ce19cbbcde8d2093
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 27 20:52:29 2020 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 27 20:52:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0b8a70d
7
8 media-libs/graphene: bump to 1.10.2
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 media-libs/graphene/Manifest | 1 +
14 media-libs/graphene/graphene-1.10.2.ebuild | 57 ++++++++++++++++++++++++++++++
15 2 files changed, 58 insertions(+)
16
17 diff --git a/media-libs/graphene/Manifest b/media-libs/graphene/Manifest
18 index 822338fa4ca..f817526f08b 100644
19 --- a/media-libs/graphene/Manifest
20 +++ b/media-libs/graphene/Manifest
21 @@ -1,2 +1,3 @@
22 DIST graphene-1.10.0.tar.xz 289452 BLAKE2B 41af96ffcdb2d8ad2fce7a242cef74cead09ce444514f85a97ac609c6518c60cbd5fb44b58b24973fe9a372f898ca99b79cfd776c968d53b72fc20c5d076a230 SHA512 842ac2c9c2046f07f8421b99292cac348276bb1e025250c7e0dc3ec7f90cb33094b765034862f325dd78f93aa5484ad75a4ad6139fe13330d9e41e3a7cb830d0
23 +DIST graphene-1.10.2.tar.xz 292372 BLAKE2B 94553a32dc57216402a9676e11525552c010d970caeb1256dde50ca842b4d673ad78d004d57e7c7a017b8c6e64ad75fc3b03603cba746027ab10befa76d32955 SHA512 a8a8ef1e4ccffee2313a18b9b8dda06c7ede6d49fdde8578694500634e3c90278fd30af7d88938d5ecb08c519cc3e09d21fe69d0f21cb766e056ceedbb3eafb0
24 DIST graphene-1.8.6.tar.xz 127984 BLAKE2B 7f67b99796cca1a47324674b1871ddfbcce1193ded5f0a37c8c2894d52b6b5823b0fb1909018ea6adb90f7ed53ad6b09eeda9b1606a22a8b85cd0d661d500195 SHA512 ef6e9b5587bd540099216a7e3f7c86eb62368d49876dcd380c9767c6740c8267c9d510c5025dbe56402f3cd15084ef8fc634d3abe486b516f4f5328b87df277c
25
26 diff --git a/media-libs/graphene/graphene-1.10.2.ebuild b/media-libs/graphene/graphene-1.10.2.ebuild
27 new file mode 100644
28 index 00000000000..67203093616
29 --- /dev/null
30 +++ b/media-libs/graphene/graphene-1.10.2.ebuild
31 @@ -0,0 +1,57 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +inherit xdg-utils meson multilib-minimal python-any-r1
39 +
40 +DESCRIPTION="A thin layer of types for graphic libraries"
41 +HOMEPAGE="https://ebassi.github.io/graphene/"
42 +SRC_URI="https://github.com/ebassi/graphene/releases/download/${PV}/${P}.tar.xz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
47 +IUSE="cpu_flags_arm_neon cpu_flags_x86_sse2 doc +introspection test"
48 +RESTRICT="!test? ( test )"
49 +
50 +RDEPEND="
51 + >=dev-libs/glib-2.30.0:2[${MULTILIB_USEDEP}]
52 + introspection? ( dev-libs/gobject-introspection:= )
53 +"
54 +DEPEND="${RDEPEND}"
55 +# Python is only needed with USE=introspection or FEATURES=test, but not bothering with conditional python_setup, as meson uses it too anyway
56 +BDEPEND="
57 + ${PYTHON_DEPS}
58 + doc? ( dev-util/gtk-doc
59 + app-text/docbook-xml-dtd:4.3 )
60 + virtual/pkgconfig
61 +"
62 +
63 +multilib_src_configure() {
64 + # TODO: Do we want G_DISABLE_ASSERT as buildtype=release would do upstream?
65 + local emesonargs=(
66 + -Dgtk_doc=$(multilib_native_usex doc true false)
67 + -Dgobject_types=true
68 + -Dintrospection=$(multilib_native_usex introspection true false)
69 + -Dgcc_vector=true # if built-in support tests fail, it'll just not enable vector intrinsics; unfortunately this probably means disabled on clang too, due to it claiming to be <gcc-4.9
70 + $(meson_use cpu_flags_x86_sse2 sse2)
71 + $(meson_use cpu_flags_arm_neon arm_neon)
72 + $(meson_use test tests)
73 + -Dinstalled_tests=false
74 + )
75 + meson_src_configure
76 +}
77 +
78 +multilib_src_compile() {
79 + meson_src_compile
80 +}
81 +
82 +multilib_src_test() {
83 + meson_src_test
84 +}
85 +
86 +multilib_src_install() {
87 + meson_src_install
88 +}