Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: app-crypt/gcr/, app-crypt/gcr/files/
Date: Mon, 27 Feb 2012 02:25:09
Message-Id: 1330306291.99573b4a5f8267fd11b612f2ecab8a9861cd30f0.tetromino@gentoo
1 commit: 99573b4a5f8267fd11b612f2ecab8a9861cd30f0
2 Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 27 01:17:58 2012 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Mon Feb 27 01:31:31 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=99573b4a
7
8 app-crypt/gcr: new package (formerly part of gnome-keyring)
9
10 ---
11 app-crypt/gcr/files/gcr-3.3.5-failing-tests.patch | 13 ++++
12 app-crypt/gcr/gcr-3.3.5.ebuild | 64 +++++++++++++++++++++
13 2 files changed, 77 insertions(+), 0 deletions(-)
14
15 diff --git a/app-crypt/gcr/files/gcr-3.3.5-failing-tests.patch b/app-crypt/gcr/files/gcr-3.3.5-failing-tests.patch
16 new file mode 100644
17 index 0000000..76247d9
18 --- /dev/null
19 +++ b/app-crypt/gcr/files/gcr-3.3.5-failing-tests.patch
20 @@ -0,0 +1,13 @@
21 +diff --git a/gcr/tests/test-subject-public-key.c b/gcr/tests/test-subject-public-key.c
22 +index 0f2e301..8e7e347 100644
23 +--- a/gcr/tests/test-subject-public-key.c
24 ++++ b/gcr/tests/test-subject-public-key.c
25 +@@ -689,8 +689,6 @@ main (int argc, char **argv)
26 + for (i = 0; i < G_N_ELEMENTS (FIXTURES); i++) {
27 + fixture = &FIXTURES[i];
28 +
29 +- g_test_add (test_name ("/gcr/subject-public-key/%s/cert-attributes", fixture->name), TestAttributes, fixture,
30 +- setup_attributes, test_for_cert_attributes, teardown_attributes);
31 + g_test_add (test_name ("/gcr/subject-public-key/%s/public-key-attributes", fixture->name), TestAttributes, fixture,
32 + setup_attributes, test_for_public_key_attributes, teardown_attributes);
33 + g_test_add (test_name ("/gcr/subject-public-key/%s/private-key-attributes", fixture->name), TestAttributes, fixture,
34
35 diff --git a/app-crypt/gcr/gcr-3.3.5.ebuild b/app-crypt/gcr/gcr-3.3.5.ebuild
36 new file mode 100644
37 index 0000000..2b3d63c
38 --- /dev/null
39 +++ b/app-crypt/gcr/gcr-3.3.5.ebuild
40 @@ -0,0 +1,64 @@
41 +# Copyright 1999-2011 Gentoo Foundation
42 +# Distributed under the terms of the GNU General Public License v2
43 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.2.2.ebuild,v 1.4 2011/11/18 04:41:30 tetromino Exp $
44 +
45 +EAPI="4"
46 +GCONF_DEBUG="no"
47 +GNOME2_LA_PUNT="yes"
48 +
49 +inherit autotools gnome2 virtualx
50 +
51 +DESCRIPTION="Libraries for cryptographic UIs and accessing PKCS#11 modules"
52 +HOMEPAGE="http://www.gnome.org/"
53 +SRC_URI="${SRC_URI} mirror://gentoo/introspection.m4.bz2" # for eautoreconf
54 +
55 +LICENSE="GPL-2 LGPL-2"
56 +SLOT="0"
57 +IUSE="debug doc +introspection"
58 +KEYWORDS="~amd64 ~mips ~sh ~x86 ~x86-fbsd ~amd64-linux ~sparc-solaris ~x86-linux ~x86-solaris"
59 +
60 +COMMON_DEPEND=">=app-crypt/gnupg-2
61 + >=app-crypt/p11-kit-0.6
62 + >=dev-libs/glib-2.30:2
63 + >=dev-libs/libgcrypt-1.2.2
64 + >=dev-libs/libtasn1-1
65 + >=sys-apps/dbus-1.0
66 + >=x11-libs/gtk+-3.0:3
67 + introspection? ( >=dev-libs/gobject-introspection-1.29 )
68 +"
69 +RDEPEND="${COMMON_DEPEND}
70 + !<gnome-base/gnome-keyring-3.3"
71 +# gcr was part of gnome-keyring until 3.3
72 +DEPEND="${COMMON_DEPEND}
73 + sys-devel/gettext
74 + >=dev-util/gtk-doc-am-1.9
75 + >=dev-util/intltool-0.35
76 + >=dev-util/pkgconfig-0.9
77 + doc? ( >=dev-util/gtk-doc-1.9 )"
78 +# eautoreconf needs:
79 +# >=dev-util/gtk-doc-am-1.9
80 +
81 +pkg_setup() {
82 + DOCS="AUTHORS ChangeLog HACKING NEWS README"
83 + G2CONF="${G2CONF}
84 + $(use_enable debug)
85 + --disable-update-mime"
86 +}
87 +
88 +src_prepare() {
89 + # FIXME: failing tests
90 + if use test; then
91 + sed -e 's:test-subject-public-key::' \
92 + -e 's:test-system-prompt:$(NULL):' \
93 + -i gcr/tests/Makefile.am || die "sed failed"
94 + mv "${WORKDIR}/introspection.m4" build/m4/
95 + eautoreconf
96 + fi
97 +
98 + gnome2_src_prepare
99 +}
100 +
101 +src_test() {
102 + unset DBUS_SESSION_BUS_ADDRESS
103 + Xemake check
104 +}