Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/appstream/
Date: Wed, 14 Sep 2022 07:31:22
Message-Id: 1663140654.6c31fe08afb65b5f2d41323869d341ad508fa96c.asturm@gentoo
1 commit: 6c31fe08afb65b5f2d41323869d341ad508fa96c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 14 07:19:09 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 14 07:30:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c31fe08
7
8 dev-libs/appstream: add 0.15.5
9
10 ~ppc dropped for dev-libs/libxmlb dependency
11
12 Closes: https://bugs.gentoo.org/868276
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 dev-libs/appstream/Manifest | 1 +
16 dev-libs/appstream/appstream-0.15.5.ebuild | 79 ++++++++++++++++++++++++++++++
17 2 files changed, 80 insertions(+)
18
19 diff --git a/dev-libs/appstream/Manifest b/dev-libs/appstream/Manifest
20 index e5ea92357c51..f7b1e10350a4 100644
21 --- a/dev-libs/appstream/Manifest
22 +++ b/dev-libs/appstream/Manifest
23 @@ -1 +1,2 @@
24 DIST AppStream-0.14.6.tar.xz 2403088 BLAKE2B 1eb85601c1782fc47ff21983517f301dc9493fb60347cfe8072c277cc4415e80bf6c11a93db80b6d7fe1eeda7ff1fa414fd10ce7ef0d7379b415326407d805b8 SHA512 810aa7427df50793f4bed27cc3cb5b72c156f0c582f241e06131aa8eabe82d59c8ac0bcc37a22877f7a19ac4640a9a831f8b567ce3e2d26a41ce999515affdb0
25 +DIST AppStream-0.15.5.tar.xz 2499336 BLAKE2B a0710d1ef2756480fa814c8b740d066e1b06dffe6a3396a44697876372dc9d0f39088ff141817af549d0cf0ad99221e68305344dfdeb82e246f7cda18c3b63a7 SHA512 83202a8db9a31e4328b2a831b02e65389aad1ba95a4c2b2709084fb843cb3675af6fac73f932a31bb3a6d3ff5db85a863c01528be67d9bbd3b9614a978239771
26
27 diff --git a/dev-libs/appstream/appstream-0.15.5.ebuild b/dev-libs/appstream/appstream-0.15.5.ebuild
28 new file mode 100644
29 index 000000000000..cd741e46c568
30 --- /dev/null
31 +++ b/dev-libs/appstream/appstream-0.15.5.ebuild
32 @@ -0,0 +1,79 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +inherit meson xdg-utils
39 +
40 +if [[ ${PV} == *9999* ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/ximion/${PN}"
43 +else
44 + MY_PN="AppStream"
45 + SRC_URI="https://www.freedesktop.org/software/appstream/releases/${MY_PN}-${PV}.tar.xz"
46 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
47 + S="${WORKDIR}/${MY_PN}-${PV}"
48 +fi
49 +
50 +DESCRIPTION="Cross-distro effort for providing metadata for software in the Linux ecosystem"
51 +HOMEPAGE="https://www.freedesktop.org/wiki/Distributions/AppStream/"
52 +
53 +LICENSE="LGPL-2.1+ GPL-2+"
54 +# check as_api_level
55 +SLOT="0/4"
56 +IUSE="apt doc +introspection qt5 test"
57 +RESTRICT="test" # bug 691962
58 +
59 +RDEPEND="
60 + >=dev-libs/glib-2.62:2
61 + dev-libs/libxml2:2
62 + >=dev-libs/libxmlb-0.3.6:=
63 + dev-libs/libyaml
64 + dev-libs/snowball-stemmer:=
65 + >=net-misc/curl-7.62
66 + introspection? ( >=dev-libs/gobject-introspection-1.56:= )
67 + qt5? ( dev-qt/qtcore:5 )
68 +"
69 +DEPEND="${RDEPEND}
70 + test? ( qt5? ( dev-qt/qttest:5 ) )
71 +"
72 +BDEPEND="
73 + dev-libs/appstream-glib
74 + dev-libs/libxslt
75 + dev-util/itstool
76 + >=sys-devel/gettext-0.19.8
77 + doc? ( app-text/docbook-xml-dtd:4.5 )
78 + test? ( dev-qt/linguist-tools:5 )
79 +"
80 +
81 +PATCHES=(
82 + "${FILESDIR}"/${PN}-0.14.3-disable-Werror-flags.patch # bug 733774
83 +)
84 +
85 +src_prepare() {
86 + default
87 + sed -e "/^as_doc_target_dir/s/appstream/${PF}/" -i docs/meson.build || die
88 + if ! use test; then
89 + sed -e "/^subdir.*tests/s/^/#DONT /" -i {,qt/}meson.build || die # bug 675944
90 + fi
91 +}
92 +
93 +src_configure() {
94 + xdg_environment_reset
95 +
96 + local emesonargs=(
97 + -Dapidocs=false
98 + -Ddocs=false
99 + -Dcompose=false
100 + -Dmaintainer=false
101 + -Dstatic-analysis=false
102 + -Dstemming=true
103 + -Dvapi=false
104 + -Dapt-support=$(usex apt true false)
105 + -Dinstall-docs=$(usex doc true false)
106 + -Dgir=$(usex introspection true false)
107 + -Dqt=$(usex qt5 true false)
108 + )
109 +
110 + meson_src_configure
111 +}