blob: b37b3baf6ef4120ef138300a0d29a467f3c0bde3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mate-base/mate-keyring/mate-keyring-1.6.1.ebuild,v 1.3 2014/05/04 14:53:55 ago Exp $
EAPI="5"
GCONF_DEBUG="yes"
GNOME2_LA_PUNT="yes"
inherit autotools gnome2 pam virtualx versionator
MATE_BRANCH="$(get_version_component_range 1-2)"
SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz"
DESCRIPTION="Password and keyring managing daemon for MATE"
HOMEPAGE="http://mate-desktop.org"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="amd64"
IUSE="debug +gpg-agent pam +ssh-agent test"
RDEPEND=">=dev-libs/glib-2.25:2
>=x11-libs/gtk+-2.20:2
>=sys-apps/dbus-1:0
>=dev-libs/libgcrypt-1.2.2:0=
>=dev-libs/libtasn1-0.3.4:0=
sys-libs/libcap:0
x11-libs/cairo:0
x11-libs/gdk-pixbuf:2
x11-libs/pango:0
virtual/libintl:0
pam? ( virtual/pam:0 )"
DEPEND="${RDEPEND}
>=dev-util/gtk-doc-am-1.9
>=dev-util/intltool-0.35:*
sys-devel/gettext:*
virtual/pkgconfig:*"
PDEPEND=">=mate-base/libmatekeyring-1.6:0"
# Fails in several ways, should work in next cycle (bug #340283), revisit then.
RESTRICT="test"
src_prepare() {
sed -e 's/DOC_MODULE=gck/DOC_MODULE=mate-gck/' \
-i docs/reference/gck/Makefile.am || die
eautoreconf
gnome2_src_prepare
# Remove error related CFLAGS.
sed 's:CFLAGS="$CFLAGS -Werror:CFLAGS="$CFLAGS:' \
-i configure.ac configure || die "sed CFLAGS failed"
# Remove DISABLE_DEPRECATED flags.
sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' \
-i configure.ac configure || die "sed DISABLE_DEPRECATED failed"
}
src_configure() {
gnome2_src_configure \
$(use_enable debug) \
$(use_enable test tests) \
$(use_enable gpg-agent) \
$(use_enable pam) \
$(use_enable ssh-agent) \
$(use_with pam pam-dir $(getpam_mod_dir)) \
--with-root-certs="${EPREFIX}"/usr/share/ca-certificates/ \
--with-gtk=2.0
}
src_compile() {
# Temporary parallel build fix.
emake -j1
}
DOCS="AUTHORS ChangeLog NEWS README"
src_test() {
unset DBUS_SESSION_BUS_ADDRESS
Xemake check || die "emake check failed!"
}
|