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: Mon, 30 Jul 2018 09:15:47
Message-Id: 1532942099.ba8ab2aec22e006d4d2d76a9d13105744ea934be.leio@gentoo
1 commit: ba8ab2aec22e006d4d2d76a9d13105744ea934be
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 30 09:12:46 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 30 09:14:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba8ab2ae
7
8 media-libs/graphene: initial import
9
10 Package-Manager: Portage-2.3.43, Repoman-2.3.10
11
12 media-libs/graphene/Manifest | 1 +
13 media-libs/graphene/graphene-1.8.2.ebuild | 59 +++++++++++++++++++++++++++++++
14 media-libs/graphene/metadata.xml | 11 ++++++
15 3 files changed, 71 insertions(+)
16
17 diff --git a/media-libs/graphene/Manifest b/media-libs/graphene/Manifest
18 new file mode 100644
19 index 00000000000..5a5e4e55169
20 --- /dev/null
21 +++ b/media-libs/graphene/Manifest
22 @@ -0,0 +1 @@
23 +DIST graphene-1.8.2.tar.xz 127436 BLAKE2B a22251db7cf4719c8a6cde49e6feb0a998d1ec7296fee549a4797d72fa575d4266e48fb5a6d9ebd204b93954a6278b4fa88dc56e5f86d7cf8625a5edc685a09b SHA512 8d250dccac345251081419f4ad7079c8035cb6225e10b23d25799386b067288831c23be667d608228ef44a2f6107ac47fc86bb495eda7881b1336598d6c43234
24
25 diff --git a/media-libs/graphene/graphene-1.8.2.ebuild b/media-libs/graphene/graphene-1.8.2.ebuild
26 new file mode 100644
27 index 00000000000..1c5ae38fb9b
28 --- /dev/null
29 +++ b/media-libs/graphene/graphene-1.8.2.ebuild
30 @@ -0,0 +1,59 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python3_{4,5,6,7} )
36 +inherit 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"
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 +# Python is only needed with USE=introspection or FEATURES=test, but not bothering with conditional python_setup
52 +DEPEND="${RDEPEND}
53 + ${PYTHON_DEPS}
54 + doc? ( dev-util/gtk-doc )
55 + virtual/pkgconfig
56 +"
57 +
58 +src_prepare() {
59 + default
60 + # Disable installed-tests
61 + sed -e 's/install: true/install: false/g' -i src/tests/meson.build || die
62 +}
63 +
64 +multilib_src_configure() {
65 + # TODO: Do we want G_DISABLE_ASSERT as buildtype=release would do upstream?
66 + local emesonargs=(
67 + -Dgtk_doc=$(multilib_native_usex doc true false)
68 + -Dgobject_types=true
69 + -Dintrospection=$(multilib_native_usex introspection true false)
70 + -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
71 + $(meson_use cpu_flags_x86_sse2 sse2)
72 + $(meson_use cpu_flags_arm_neon arm_neon)
73 + $(meson_use test tests)
74 + -Dbenchmarks=false
75 + )
76 + meson_src_configure
77 +}
78 +
79 +multilib_src_compile() {
80 + meson_src_compile
81 +}
82 +
83 +multilib_src_test() {
84 + meson_src_test
85 +}
86 +
87 +multilib_src_install() {
88 + meson_src_install
89 +}
90
91 diff --git a/media-libs/graphene/metadata.xml b/media-libs/graphene/metadata.xml
92 new file mode 100644
93 index 00000000000..46e32a119ea
94 --- /dev/null
95 +++ b/media-libs/graphene/metadata.xml
96 @@ -0,0 +1,11 @@
97 +<?xml version="1.0" encoding="UTF-8"?>
98 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
99 +<pkgmetadata>
100 + <maintainer type="project">
101 + <email>gnome@g.o</email>
102 + <name>Gentoo GNOME Desktop</name>
103 + </maintainer>
104 + <upstream>
105 + <remote-id type="github">ebassi/graphene</remote-id>
106 + </upstream>
107 +</pkgmetadata>