blob: 054b35ba772896000625af465028b735d7da0a62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson xdg-utils
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/ximion/${PN}"
else
MY_PN="AppStream"
SRC_URI="https://www.freedesktop.org/software/appstream/releases/${MY_PN}-${PV}.tar.xz"
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
S="${WORKDIR}/${MY_PN}-${PV}"
fi
DESCRIPTION="Cross-distro effort for providing metadata for software in the Linux ecosystem"
HOMEPAGE="https://www.freedesktop.org/wiki/Distributions/AppStream/"
LICENSE="LGPL-2.1+ GPL-2+"
# check as_api_level
SLOT="0/5"
IUSE="apt doc +introspection qt6 systemd test"
RESTRICT="test" # bug 691962
RDEPEND="
app-arch/zstd:=
>=dev-libs/glib-2.62:2
dev-libs/libxml2:2
>=dev-libs/libxmlb-0.3.14:=
dev-libs/libyaml
dev-libs/snowball-stemmer:=
>=net-misc/curl-7.62
introspection? ( >=dev-libs/gobject-introspection-1.56:= )
qt6? ( dev-qt/qtbase:6 )
systemd? ( sys-apps/systemd:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-libs/appstream-glib
dev-libs/libxslt
dev-util/itstool
>=sys-devel/gettext-0.19.8
doc? ( app-text/docbook-xml-dtd:4.5 )
test? ( dev-qt/qttools:6[linguist] )
"
PATCHES=( "${FILESDIR}"/${PN}-1.0.0-disable-Werror-flags.patch ) # bug 733774
src_prepare() {
default
sed -e "/^as_doc_target_dir/s/appstream/${PF}/" -i docs/meson.build || die
if ! use test; then
sed -e "/^subdir.*tests/s/^/#DONT /" -i {,qt/}meson.build || die # bug 675944
fi
}
src_configure() {
xdg_environment_reset
local emesonargs=(
-Dapidocs=false
-Ddocs=false
-Dcompose=false
-Dmaintainer=false
-Dstatic-analysis=false
-Dstemming=true
-Dvapi=false
-Dapt-support=$(usex apt true false)
-Dinstall-docs=$(usex doc true false)
-Dgir=$(usex introspection true false)
-Dqt=$(usex qt6 true false)
-Dsystemd=$(usex systemd true false)
)
meson_src_configure
}
|