1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils xdg-utils
8 if [[ ${PV} = 9999 ]]; then
10 EGIT_REPO_URI="https://github.com/ximion/${PN}"
13 MY_PV="$(replace_all_version_separators '_')"
14 MY_P="APPSTREAM_${MY_PV}"
15 SRC_URI="https://github.com/ximion/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~amd64 ~arm ~x86"
17 S="${WORKDIR}/${PN}-${MY_P}"
20 DESCRIPTION="Cross-distro effort for providing metadata for software in the Linux ecosystem"
21 HOMEPAGE="https://www.freedesktop.org/wiki/Distributions/AppStream/"
23 LICENSE="LGPL-2.1+ GPL-2+"
24 # check APPSTREAM_LIB_API_LEVEL
26 IUSE="apt doc qt5 test"
30 dev-libs/gobject-introspection
33 dev-libs/snowball-stemmer
34 qt5? ( dev-qt/qtcore:5 )
37 app-text/docbook-xml-dtd:4.5
41 qt5? ( dev-qt/qttest:5 )
46 cmake-utils_src_prepare
49 pushd qt > /dev/null || die
50 cmake_comment_add_subdirectory tests
51 popd > /dev/null || die
65 -DAPT_SUPPORT=$(usex apt)
66 -DINSTALL_PREBUILT_DOCS=$(usex doc)
70 cmake-utils_src_configure