1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit meson xdg-utils
8 if [[ ${PV} = *9999* ]]; then
10 EGIT_REPO_URI="https://github.com/ximion/${PN}"
13 SRC_URI="https://www.freedesktop.org/software/appstream/releases/${MY_PN}-${PV}.tar.xz"
14 KEYWORDS="amd64 ~arm ~arm64 x86"
15 S="${WORKDIR}/${MY_PN}-${PV}"
18 DESCRIPTION="Cross-distro effort for providing metadata for software in the Linux ecosystem"
19 HOMEPAGE="https://www.freedesktop.org/wiki/Distributions/AppStream/"
21 LICENSE="LGPL-2.1+ GPL-2+"
24 IUSE="apt +introspection qt5 test"
27 app-text/docbook-xml-dtd:4.5
28 dev-libs/appstream-glib
30 >=dev-util/meson-0.42.0
31 >=sys-devel/gettext-0.19.8
33 dev-qt/linguist-tools:5
34 qt5? ( dev-qt/qttest:5 )
38 >=dev-libs/glib-2.54:2
41 dev-libs/snowball-stemmer
42 introspection? ( >=dev-libs/gobject-introspection-1.56:= )
43 qt5? ( dev-qt/qtcore:5 )
49 sed -e "/^as_doc_target_dir/s/appstream/${PF}/" -i docs/meson.build || die
51 sed -e "/^subdir.*tests/s/^/#DONT /" -i {,qt/}meson.build || die # bug 675944
64 -Dapt-support=$(usex apt true false)
65 -Dgir=$(usex introspection true false)
66 -Dqt=$(usex qt5 true false)