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: Sun, 31 Mar 2019 05:32:10
Message-Id: 1554010251.b1563776fba8c3bae82a3a17e03c82fe147107dc.leio@gentoo
1 commit: b1563776fba8c3bae82a3a17e03c82fe147107dc
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 31 05:30:51 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 31 05:30:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1563776
7
8 media-libs/graphene: bump to 1.8.6
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 media-libs/graphene/Manifest | 1 +
14 media-libs/graphene/graphene-1.8.6.ebuild | 62 +++++++++++++++++++++++++++++++
15 2 files changed, 63 insertions(+)
16
17 diff --git a/media-libs/graphene/Manifest b/media-libs/graphene/Manifest
18 index 5a5e4e55169..73776228315 100644
19 --- a/media-libs/graphene/Manifest
20 +++ b/media-libs/graphene/Manifest
21 @@ -1 +1,2 @@
22 DIST graphene-1.8.2.tar.xz 127436 BLAKE2B a22251db7cf4719c8a6cde49e6feb0a998d1ec7296fee549a4797d72fa575d4266e48fb5a6d9ebd204b93954a6278b4fa88dc56e5f86d7cf8625a5edc685a09b SHA512 8d250dccac345251081419f4ad7079c8035cb6225e10b23d25799386b067288831c23be667d608228ef44a2f6107ac47fc86bb495eda7881b1336598d6c43234
23 +DIST graphene-1.8.6.tar.xz 127984 BLAKE2B 7f67b99796cca1a47324674b1871ddfbcce1193ded5f0a37c8c2894d52b6b5823b0fb1909018ea6adb90f7ed53ad6b09eeda9b1606a22a8b85cd0d661d500195 SHA512 ef6e9b5587bd540099216a7e3f7c86eb62368d49876dcd380c9767c6740c8267c9d510c5025dbe56402f3cd15084ef8fc634d3abe486b516f4f5328b87df277c
24
25 diff --git a/media-libs/graphene/graphene-1.8.6.ebuild b/media-libs/graphene/graphene-1.8.6.ebuild
26 new file mode 100644
27 index 00000000000..ee623381f0f
28 --- /dev/null
29 +++ b/media-libs/graphene/graphene-1.8.6.ebuild
30 @@ -0,0 +1,62 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python3_{4,5,6,7} )
36 +inherit xdg-utils meson multilib-minimal python-any-r1
37 +
38 +DESCRIPTION="A thin layer of types for graphic libraries"
39 +HOMEPAGE="https://ebassi.github.io/graphene/"
40 +SRC_URI="https://github.com/ebassi/graphene/releases/download/${PV}/${P}.tar.xz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd"
45 +IUSE="cpu_flags_arm_neon cpu_flags_x86_sse2 doc +introspection test"
46 +
47 +RDEPEND="
48 + >=dev-libs/glib-2.30.0:2[${MULTILIB_USEDEP}]
49 + introspection? ( dev-libs/gobject-introspection:= )
50 +"
51 +DEPEND="${RDEPEND}"
52 +# Python is only needed with USE=introspection or FEATURES=test, but not bothering with conditional python_setup, as meson uses it too anyway
53 +BDEPEND="
54 + ${PYTHON_DEPS}
55 + doc? ( dev-util/gtk-doc
56 + app-text/docbook-xml-dtd:4.3 )
57 + virtual/pkgconfig
58 +"
59 +
60 +src_prepare() {
61 + xdg_environment_reset
62 + default
63 + # Disable installed-tests
64 + sed -e 's/install: true/install: false/g' -i src/tests/meson.build || die
65 +}
66 +
67 +multilib_src_configure() {
68 + # TODO: Do we want G_DISABLE_ASSERT as buildtype=release would do upstream?
69 + local emesonargs=(
70 + -Dgtk_doc=$(multilib_native_usex doc true false)
71 + -Dgobject_types=true
72 + -Dintrospection=$(multilib_native_usex introspection true false)
73 + -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
74 + $(meson_use cpu_flags_x86_sse2 sse2)
75 + $(meson_use cpu_flags_arm_neon arm_neon)
76 + $(meson_use test tests)
77 + -Dbenchmarks=false
78 + )
79 + meson_src_configure
80 +}
81 +
82 +multilib_src_compile() {
83 + meson_src_compile
84 +}
85 +
86 +multilib_src_test() {
87 + meson_src_test
88 +}
89 +
90 +multilib_src_install() {
91 + meson_src_install
92 +}