commit: 15287e56093d5cfb85487a8b65113a07f1d7fea4 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Sat Feb 18 03:59:30 2017 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Sat Feb 18 03:59:38 2017 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=15287e56
dev-libs/appstream: fix two issues revision bump fixing two issues * Fixes a build failure LINGUAS="" * Adds a missing dependency Gentoo-bug: 606624 Gentoo-bug: 609358 Package-Manager: Portage-2.3.3, Repoman-2.3.1 dev-libs/appstream/appstream-9999.ebuild | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/dev-libs/appstream/appstream-9999.ebuild b/dev-libs/appstream/appstream-9999.ebuild index c2cf4a6505..5e83584ee6 100644 --- a/dev-libs/appstream/appstream-9999.ebuild +++ b/dev-libs/appstream/appstream-9999.ebuild @@ -4,11 +4,10 @@ EAPI=6 -KDE_AUTODEPS="false" -KDE_TEST="forceoptional-recursive" -inherit kde5 xdg-utils +inherit cmake-utils xdg-utils -if [[ ${KDE_BUILD_TYPE} = live ]]; then +if [[ ${PV} = 9999 ]]; then + inherit git-r3 EGIT_REPO_URI="https://github.com/ximion/${PN}" else inherit versionator @@ -25,10 +24,11 @@ HOMEPAGE="https://www.freedesktop.org/wiki/Distributions/AppStream/" LICENSE="LGPL-2.1+ GPL-2+" # check APPSTREAM_LIB_API_LEVEL SLOT="0/4" -IUSE="apt doc qt5" +IUSE="apt doc qt5 test" RDEPEND=" dev-libs/glib:2 + dev-libs/gobject-introspection dev-libs/libxml2:2 dev-libs/libyaml dev-libs/snowball-stemmer @@ -43,6 +43,16 @@ DEPEND="${RDEPEND} ) " +src_prepare() { + cmake-utils_src_prepare + + if ! use test; then + pushd qt > /dev/null || die + cmake_comment_add_subdirectory tests + popd > /dev/null || die + fi +} + src_configure() { xdg_environment_reset @@ -58,5 +68,5 @@ src_configure() { -DQT=$(usex qt5) ) - kde5_src_configure + cmake-utils_src_configure }