You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.2 KiB
87 lines
2.2 KiB
9 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
9 years ago
|
inherit gnome2 virtualx
|
||
10 years ago
|
|
||
|
DESCRIPTION="PackageKit client for the GNOME desktop"
|
||
8 years ago
|
HOMEPAGE="https://www.freedesktop.org/software/PackageKit/"
|
||
10 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
8 years ago
|
IUSE="systemd udev" # test
|
||
10 years ago
|
|
||
8 years ago
|
# XXX: test, upstream managed to break gpk-self-test beyond repair
|
||
10 years ago
|
# gdk-pixbuf used in gpk-animated-icon
|
||
|
# pango used on gpk-common
|
||
|
RDEPEND="
|
||
|
>=dev-libs/glib-2.32:2
|
||
|
x11-libs/gdk-pixbuf:2
|
||
9 years ago
|
>=x11-libs/gtk+-3.15.3:3
|
||
10 years ago
|
>=x11-libs/libnotify-0.7.0:=
|
||
|
x11-libs/pango
|
||
|
|
||
8 years ago
|
>=app-admin/packagekit-base-0.9.1
|
||
10 years ago
|
>=media-libs/libcanberra-0.10[gtk3]
|
||
|
>=sys-apps/dbus-1.1.2
|
||
|
|
||
|
media-libs/fontconfig
|
||
|
x11-libs/libX11
|
||
|
|
||
|
systemd? ( >=sys-apps/systemd-42 )
|
||
|
!systemd? ( sys-auth/consolekit )
|
||
10 years ago
|
udev? ( virtual/libgudev:= )
|
||
10 years ago
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
|
app-text/docbook-sgml-utils
|
||
9 years ago
|
dev-libs/appstream-glib
|
||
10 years ago
|
>=dev-util/gtk-doc-am-1.9
|
||
|
>=dev-util/intltool-0.35
|
||
|
dev-libs/libxslt
|
||
|
sys-devel/gettext
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
|
|
||
|
# NOTES:
|
||
|
# app-text/docbook-sgml-utils required for man pages
|
||
|
|
||
|
# UPSTREAM:
|
||
|
# see if tests can forget about display (use eclass for that ?)
|
||
|
|
||
|
src_prepare() {
|
||
|
# * disable tests with graphical dialogs and that require packagekitd
|
||
|
# to be run with the dummy backend and installed .ui files
|
||
|
# * disable tests that fails every time packagekit developers make a
|
||
|
# tiny change to headers
|
||
8 years ago
|
# * gpk_test_markdown_func: no definition for that one
|
||
10 years ago
|
sed -e '/g_test_add_func.*gpk_test_enum_func/d' \
|
||
|
-e '/g_test_add_func.*gpk_test_dbus_task_func/d' \
|
||
|
-e '/g_test_add_func.*gpk_test_error_func/d' \
|
||
|
-e '/g_test_add_func.*gpk_test_modal_dialog/d' \
|
||
|
-e '/g_test_add_func.*gpk_test_task_func/d' \
|
||
8 years ago
|
-e '/g_test_add_func.*gpk_test_markdown_func/d' \
|
||
10 years ago
|
-i src/gpk-self-test.c || die
|
||
|
|
||
8 years ago
|
# XXX: g_autoptr requires explicit type support
|
||
|
sed -e 's/g_autoptr(GpkTask)/GpkTask */' \
|
||
|
-i src/gpk-self-test.c || die
|
||
10 years ago
|
|
||
|
gnome2_src_prepare
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
gnome2_src_configure \
|
||
|
--localstatedir=/var \
|
||
|
--enable-iso-c \
|
||
8 years ago
|
--disable-tests \
|
||
10 years ago
|
$(use_enable systemd) \
|
||
9 years ago
|
$(use_enable udev gudev)
|
||
8 years ago
|
# $(use_enable test tests)
|
||
10 years ago
|
}
|
||
|
|
||
|
src_test() {
|
||
|
"${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/data" || die
|
||
8 years ago
|
GSETTINGS_SCHEMA_DIR="${S}/data" virtx emake check
|
||
10 years ago
|
}
|