Gentoo Archives: gentoo-commits

From: "Justin Bronder (jsbronder)" <jsbronder@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-cpp/gtest: gtest-1.6.0-r1.ebuild ChangeLog
Date: Fri, 02 Nov 2012 05:09:41
Message-Id: 20121102050923.95CF921600@flycatcher.gentoo.org
1 jsbronder 12/11/02 05:09:23
2
3 Modified: ChangeLog
4 Added: gtest-1.6.0-r1.ebuild
5 Log:
6 Fix #371647, no response from maintainer since Oct 17.
7
8 (Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key 4D7043C9)
9
10 Revision Changes Path
11 1.15 dev-cpp/gtest/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gtest/ChangeLog?rev=1.15&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gtest/ChangeLog?rev=1.15&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gtest/ChangeLog?r1=1.14&r2=1.15
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-cpp/gtest/ChangeLog,v
20 retrieving revision 1.14
21 retrieving revision 1.15
22 diff -u -r1.14 -r1.15
23 --- ChangeLog 16 Jul 2012 12:17:56 -0000 1.14
24 +++ ChangeLog 2 Nov 2012 05:09:23 -0000 1.15
25 @@ -1,5 +1,11 @@
26 # ChangeLog for dev-cpp/gtest
27 -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtest/ChangeLog,v 1.14 2012/07/16 12:17:56 blueness Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtest/ChangeLog,v 1.15 2012/11/02 05:09:23 jsbronder Exp $
29 +
30 +*gtest-1.6.0-r1 (02 Nov 2012)
31 +
32 + 02 Nov 2012; Justin Bronder <jsbronder@g.o> +gtest-1.6.0-r1.ebuild,
33 + +files/configure-fix-pthread-linking.patch:
34 + Fix #371647, no response from maintainer since Oct 17.
35
36 16 Jul 2012; Anthony G. Basile <blueness@g.o> gtest-1.6.0.ebuild:
37 Stable ppc ppc64, bug #420853
38
39
40
41 1.1 dev-cpp/gtest/gtest-1.6.0-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gtest/gtest-1.6.0-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/gtest/gtest-1.6.0-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gtest-1.6.0-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtest/gtest-1.6.0-r1.ebuild,v 1.1 2012/11/02 05:09:23 jsbronder Exp $
51
52 EAPI="4"
53 PYTHON_DEPEND="2"
54
55 inherit eutils python autotools
56
57 DESCRIPTION="Google C++ Testing Framework"
58 HOMEPAGE="http://code.google.com/p/googletest/"
59 SRC_URI="http://googletest.googlecode.com/files/${P}.zip"
60
61 LICENSE="BSD"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos"
64 IUSE="examples threads static-libs"
65
66 DEPEND="app-arch/unzip"
67 RDEPEND=""
68
69 pkg_setup() {
70 python_pkg_setup
71 python_set_active_version 2
72 }
73
74 src_prepare() {
75 sed -i -e "s|/tmp|${T}|g" test/gtest-filepath_test.cc || die
76 sed -i -r \
77 -e '/^install-(data|exec)-local:/s|^.*$|&\ndisabled-&|' \
78 Makefile.am || die
79 epatch "${FILESDIR}"/configure-fix-pthread-linking.patch || die
80 eautoreconf
81
82 python_convert_shebangs -r 2 .
83 }
84
85 src_configure() {
86 econf \
87 $(use_enable static-libs static) \
88 $(use_with threads pthreads)
89 }
90
91 src_test() {
92 # explicitly use parallel make
93 emake check || die
94 }
95
96 src_install() {
97 default
98 dobin scripts/gtest-config
99
100 if ! use static-libs ; then
101 rm "${ED}"/usr/lib*/*.la || die
102 fi
103
104 if use examples ; then
105 insinto /usr/share/doc/${PF}/examples
106 doins samples/*.{cc,h}
107 fi
108 }