Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libplacebo/
Date: Thu, 09 May 2019 19:16:15
Message-Id: 1557429360.67355c92c9b000e6983ed1e4501a4b421d3a1904.gyakovlev@gentoo
1 commit: 67355c92c9b000e6983ed1e4501a4b421d3a1904
2 Author: Mihai Moldovan <ionic <AT> ionic <DOT> de>
3 AuthorDate: Thu May 9 06:30:01 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu May 9 19:16:00 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67355c92
7
8 media-libs/libplacebo: update to 1.18.0.
9
10 Additionally, bump up to EAPI 7. No actual packaging changes needed.
11
12 Also, modernize ebuild a bit. The meson eclass now has features like
13 meson_{feature,use}, which we can use to shorten out a lot of feature
14 tests.
15
16 Add support for the optional testing framework.
17
18 Do not call ninja directly, but rather use the
19 meson_src_{build,test,install} functions.
20
21 Package-Manager: Portage-2.3.66, Repoman-2.3.12
22
23 Signed-off-by: Mihai Moldovan <ionic <AT> ionic.de>
24 Closes: https://github.com/gentoo/gentoo/pull/11938
25 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
26
27 media-libs/libplacebo/Manifest | 1 +
28 media-libs/libplacebo/libplacebo-1.18.0.ebuild | 53 ++++++++++++++++++++++++++
29 2 files changed, 54 insertions(+)
30
31 diff --git a/media-libs/libplacebo/Manifest b/media-libs/libplacebo/Manifest
32 index d69d907033f..d1476f66915 100644
33 --- a/media-libs/libplacebo/Manifest
34 +++ b/media-libs/libplacebo/Manifest
35 @@ -1 +1,2 @@
36 +DIST libplacebo-v1.18.0.tar.gz 322963 BLAKE2B 640accaa64b1a5abdcc60f89c1b80ccc880ed060799a48cb9d41c7b891648913b05d06c62fa6dd21ccce07ac61b7c89e1702ac26013c596dc4a4d71c7b10721f SHA512 a2ca4a8b2bf9e5242c39c704e579575ccbfd0a7dadc4f73fe1994abb6e3f132d19f6d95415704a62e285e3f94e7b0ab8aeed14b4fce466df1ba34952f7127686
37 DIST libplacebo-v1.7.0.tar.gz 312154 BLAKE2B 46a807e323cce5da6362828d931daeca3eaff8475a7318dfc756c097e2edc98f064a90b36e0f6d882f95f6bb077e72127fb6f8d7643dd992c7432a13b6fdbe64 SHA512 337662e538b1d6b3d063ec18db2627619e1bd72cff6017ac19027527b07a74b0f196a428b572c9f4e3c3856c32a123b70049d7938458fb4301fdd319d756ab27
38
39 diff --git a/media-libs/libplacebo/libplacebo-1.18.0.ebuild b/media-libs/libplacebo/libplacebo-1.18.0.ebuild
40 new file mode 100644
41 index 00000000000..5ab0605bac8
42 --- /dev/null
43 +++ b/media-libs/libplacebo/libplacebo-1.18.0.ebuild
44 @@ -0,0 +1,53 @@
45 +# Copyright 1999-2019 Gentoo Authors
46 +# Distributed under the terms of the GNU General Public License v2
47 +
48 +EAPI=7
49 +
50 +if [[ "${PV}" == "9999" ]]; then
51 + EGIT_REPO_URI="https://code.videolan.org/videolan/libplacebo.git"
52 + inherit git-r3
53 +else
54 + KEYWORDS="~amd64"
55 + SRC_URI="https://code.videolan.org/videolan/libplacebo/-/archive/v${PV}/libplacebo-v${PV}.tar.gz"
56 + S="${WORKDIR}/${PN}-v${PV}"
57 +fi
58 +
59 +inherit meson multilib-minimal
60 +
61 +DESCRIPTION="Reusable library for GPU-accelerated image processing primitives"
62 +HOMEPAGE="https://github.com/haasn/libplacebo"
63 +
64 +LICENSE="LGPL-2.1+"
65 +SLOT="0"
66 +IUSE="glslang lcms +shaderc test +vulkan"
67 +REQUIRED_USE="vulkan? ( || ( glslang shaderc ) )"
68 +
69 +RDEPEND="glslang? ( <dev-util/glslang-7.10[${MULTILIB_USEDEP}] )
70 + lcms? ( media-libs/lcms:2[${MULTILIB_USEDEP}] )
71 + shaderc? ( >=media-libs/shaderc-2017.2[${MULTILIB_USEDEP}] )
72 + vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )"
73 +DEPEND="${RDEPEND}"
74 +BDEPEND="virtual/pkgconfig"
75 +
76 +multilib_src_configure() {
77 + local emesonargs=(
78 + $(meson_feature glslang)
79 + $(meson_feature lcms)
80 + $(meson_feature shaderc)
81 + $(meson_use test tests)
82 + $(meson_feature vulkan)
83 + )
84 + meson_src_configure
85 +}
86 +
87 +multilib_src_compile() {
88 + meson_src_compile
89 +}
90 +
91 +multilib_src_test() {
92 + meson_src_test
93 +}
94 +
95 +multilib_src_install() {
96 + meson_src_install
97 +}