| # Copyright 1999-2010 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-2.26.3.ebuild,v 1.11 2010/01/17 23:27:16 jer Exp $ |
| |
| EAPI="2" |
| |
| inherit gnome2 pam virtualx eutils autotools |
| |
| DESCRIPTION="Password and keyring managing daemon" |
| HOMEPAGE="http://www.gnome.org/" |
| |
| LICENSE="GPL-2 LGPL-2" |
| SLOT="0" |
| KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd" |
| IUSE="debug doc hal pam test" |
| # USE=valgrind is probably not a good idea for the tree |
| |
| RDEPEND=">=dev-libs/glib-2.16 |
| >=x11-libs/gtk+-2.6 |
| gnome-base/gconf |
| >=sys-apps/dbus-1.0 |
| hal? ( >=sys-apps/hal-0.5.7 ) |
| pam? ( virtual/pam ) |
| >=dev-libs/libgcrypt-1.2.2 |
| >=dev-libs/libtasn1-1" |
| # valgrind? ( dev-util/valgrind )" |
| DEPEND="${RDEPEND} |
| sys-devel/gettext |
| >=dev-util/intltool-0.35 |
| >=dev-util/pkgconfig-0.9 |
| dev-util/gtk-doc-am |
| doc? ( >=dev-util/gtk-doc-1.9 )" |
| |
| DOCS="AUTHORS ChangeLog NEWS README TODO keyring-intro.txt" |
| |
| pkg_setup() { |
| G2CONF="${G2CONF} |
| $(use_enable debug) |
| $(use_enable hal) |
| $(use_enable test tests) |
| $(use_enable pam) |
| $(use_with pam pam-dir $(getpam_mod_dir)) |
| --with-root-certs=/usr/share/ca-certificates/ |
| --enable-acl-prompts |
| --enable-ssh-agent" |
| # $(use_enable valgrind) |
| } |
| |
| src_prepare() { |
| gnome2_src_prepare |
| |
| # remove extra assert to let doc build and tests pass, bug #267957 |
| # taken from upstream bug #553164. |
| epatch "${FILESDIR}/${P}-assert.patch" |
| |
| # Remove silly CFLAGS |
| sed 's:CFLAGS="$CFLAGS -Werror:CFLAGS="$CFLAGS:' \ |
| -i configure.in || die "sed failed" |
| |
| # Fix parallel make test failure, bug #272450 |
| epatch "${FILESDIR}"/${P}-parallel-tests.patch |
| |
| intltoolize --force --copy --automake || die "intltoolize failed" |
| eautoreconf |
| } |
| |
| src_test() { |
| unset DBUS_SESSION_BUS_ADDRESS |
| Xemake check || die "emake check failed!" |
| |
| # Remove broken tests, bug #272450, upstream bug #553164 |
| rm "${S}"/gcr/tests/run-* || die "rm failing tests failed" |
| Xemake -C tests run || die "running tests failed!" |
| } |