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