diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-11 20:09:57 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-11-11 20:09:57 +0000 |
commit | 179b989a9bb8344a6d5516c0179e2d243a7d0165 (patch) | |
tree | 3e08c922a0a20ce31a35146ec062b1dab0158701 /dev-cpp | |
parent | Revbump - adding support for 5.4 (diff) | |
download | gentoo-2-179b989a9bb8344a6d5516c0179e2d243a7d0165.tar.gz gentoo-2-179b989a9bb8344a6d5516c0179e2d243a7d0165.tar.bz2 gentoo-2-179b989a9bb8344a6d5516c0179e2d243a7d0165.zip |
Migrate categories from dev-util as this is a C++ testing framework #387155.
(Portage version: 2.2.0_alpha72/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'dev-cpp')
-rw-r--r-- | dev-cpp/gtest/ChangeLog | 63 | ||||
-rw-r--r-- | dev-cpp/gtest/files/gtest-1.4.0-asneeded.patch | 12 | ||||
-rw-r--r-- | dev-cpp/gtest/files/gtest-1.5.0-asneeded.patch | 12 | ||||
-rw-r--r-- | dev-cpp/gtest/gtest-1.4.0.ebuild | 43 | ||||
-rw-r--r-- | dev-cpp/gtest/gtest-1.5.0.ebuild | 55 | ||||
-rw-r--r-- | dev-cpp/gtest/metadata.xml | 11 |
6 files changed, 196 insertions, 0 deletions
diff --git a/dev-cpp/gtest/ChangeLog b/dev-cpp/gtest/ChangeLog new file mode 100644 index 000000000000..45c3d10574a2 --- /dev/null +++ b/dev-cpp/gtest/ChangeLog @@ -0,0 +1,63 @@ +# ChangeLog for dev-cpp/gtest +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtest/ChangeLog,v 1.1 2011/11/11 20:09:57 vapier Exp $ + + 11 Nov 2011; Mike Frysinger <vapier@gentoo.org>: + Migrate categories from dev-util as this is a C++ testing framework #387155. + + 18 Sep 2011; Raúl Porcel <armin76@gentoo.org> gtest-1.5.0.ebuild: + alpha/ia64/s390/sh/sparc stable wrt #355085 + + 12 Aug 2011; Kacper Kowalik <xarthisius@gentoo.org> gtest-1.5.0.ebuild: + ppc/ppc64 stable wrt #355085 + + 13 Jun 2011; Matt Turner <mattst88@gentoo.org> gtest-1.5.0.ebuild: + Added ~mips, bug 342513 + + 10 Apr 2011; Diego E. Pettenò <flameeyes@gentoo.org> gtest-1.5.0.ebuild: + Allow parallel build of checks. + + 27 Feb 2011; Raúl Porcel <armin76@gentoo.org> gtest-1.5.0.ebuild: + Add ~alpha/~ia64/~s390/~sh/~sparc wrt #342513 + + 20 Feb 2011; Kacper Kowalik <xarthisius@gentoo.org> gtest-1.5.0.ebuild: + Marked ~ppc/~ppc64 wrt #342513 + + 21 Jan 2011; Jeroen Roovers <jer@gentoo.org> gtest-1.5.0.ebuild: + Stable for HPPA (bug #350290). + + 08 Jan 2011; Markus Meier <maekke@gentoo.org> gtest-1.5.0.ebuild: + arm stable, bug #350290 + + 04 Jan 2011; Markos Chandras <hwoarang@gentoo.org> gtest-1.5.0.ebuild: + Stable on amd64 wrt bug #350290 + + 03 Jan 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> gtest-1.5.0.ebuild: + x86 stable wrt bug #350290 + + 01 Dec 2010; Fabian Groffen <grobian@gentoo.org> gtest-1.5.0.ebuild: + Bump EAPI to 3, fix for Prefix, marked ~ppc-macos + + 01 Nov 2010; Markus Meier <maekke@gentoo.org> gtest-1.5.0.ebuild: + add ~arm, bug #342513 + + 25 Oct 2010; Jeroen Roovers <jer@gentoo.org> gtest-1.5.0.ebuild: + Marked ~hppa (bug #342513). + +*gtest-1.5.0 (18 May 2010) + + 18 May 2010; MATSUU Takuto <matsuu@gentoo.org> +gtest-1.5.0.ebuild, + +files/gtest-1.5.0-asneeded.patch: + Version bumped. + + 02 Mar 2010; Tiziano Müller <dev-zero@gentoo.org> gtest-1.4.0.ebuild, + metadata.xml: + Fixed sandbox violation in src_test, install examples on demand, added + static-libs use flag, added upstream doc link to metadata. + +*gtest-1.4.0 (01 Mar 2010) + + 01 Mar 2010; MATSUU Takuto <matsuu@gentoo.org> +gtest-1.4.0.ebuild, + +files/gtest-1.4.0-asneeded.patch, +metadata.xml: + Initial import. + diff --git a/dev-cpp/gtest/files/gtest-1.4.0-asneeded.patch b/dev-cpp/gtest/files/gtest-1.4.0-asneeded.patch new file mode 100644 index 000000000000..f8e7d004d735 --- /dev/null +++ b/dev-cpp/gtest/files/gtest-1.4.0-asneeded.patch @@ -0,0 +1,12 @@ +diff -Naur gtest-1.4.0.orig/Makefile.am gtest-1.4.0/Makefile.am +--- gtest-1.4.0.orig/Makefile.am 2009-10-02 16:04:30.000000000 +0900 ++++ gtest-1.4.0/Makefile.am 2010-01-20 16:52:34.000000000 +0900 +@@ -305,7 +305,7 @@ + TESTS += test/gtest-unittest-api_test + check_PROGRAMS += test/gtest-unittest-api_test + test_gtest_unittest_api_test_SOURCES = test/gtest-unittest-api_test.cc +-test_gtest_unittest_api_test_LDADD = lib/libgtest_main.la ++test_gtest_unittest_api_test_LDADD = lib/libgtest.la + + TESTS += test/gtest-listener_test + check_PROGRAMS += test/gtest-listener_test diff --git a/dev-cpp/gtest/files/gtest-1.5.0-asneeded.patch b/dev-cpp/gtest/files/gtest-1.5.0-asneeded.patch new file mode 100644 index 000000000000..d831bc4f02c0 --- /dev/null +++ b/dev-cpp/gtest/files/gtest-1.5.0-asneeded.patch @@ -0,0 +1,12 @@ +diff -Naur gtest-1.5.0.orig//Makefile.am gtest-1.5.0//Makefile.am +--- gtest-1.5.0.orig//Makefile.am 2010-04-16 07:02:08.000000000 +0900 ++++ gtest-1.5.0//Makefile.am 2010-05-18 17:27:48.000000000 +0900 +@@ -247,7 +247,7 @@ + TESTS += test/gtest_all_test + check_PROGRAMS += test/gtest_all_test + test_gtest_all_test_SOURCES = test/gtest_all_test.cc +-test_gtest_all_test_LDADD = lib/libgtest_main.la ++test_gtest_all_test_LDADD = lib/libgtest.la + + # Tests that fused gtest files compile and work. + FUSED_GTEST_SRC = \ diff --git a/dev-cpp/gtest/gtest-1.4.0.ebuild b/dev-cpp/gtest/gtest-1.4.0.ebuild new file mode 100644 index 000000000000..1160e2fdf97a --- /dev/null +++ b/dev-cpp/gtest/gtest-1.4.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtest/gtest-1.4.0.ebuild,v 1.1 2011/11/11 20:09:57 vapier Exp $ + +EAPI="2" +inherit autotools eutils + +DESCRIPTION="Google C++ Testing Framework" +HOMEPAGE="http://code.google.com/p/googletest/" +SRC_URI="http://googletest.googlecode.com/files/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples static-libs" + +DEPEND="dev-lang/python" +RDEPEND="" + +src_prepare() { + sed -i -e "s|/tmp|${T}|g" test/gtest-filepath_test.cc || die "sed failed" + + epatch "${FILESDIR}/${P}-asneeded.patch" + eautoreconf +} + +src_configure() { + econf \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc CHANGES CONTRIBUTORS README + + use static-libs || rm "${D}"/usr/lib*/*.la + + if use examples ; then + insinto /usr/share/doc/${PF}/examples + doins samples/*.{cc,h} + fi +} diff --git a/dev-cpp/gtest/gtest-1.5.0.ebuild b/dev-cpp/gtest/gtest-1.5.0.ebuild new file mode 100644 index 000000000000..f97566adce75 --- /dev/null +++ b/dev-cpp/gtest/gtest-1.5.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtest/gtest-1.5.0.ebuild,v 1.1 2011/11/11 20:09:57 vapier Exp $ + +EAPI="3" +PYTHON_DEPEND="2" +inherit autotools eutils python + +DESCRIPTION="Google C++ Testing Framework" +HOMEPAGE="http://code.google.com/p/googletest/" +SRC_URI="http://googletest.googlecode.com/files/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-macos" +IUSE="examples threads static-libs" + +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { + sed -i -e "s|/tmp|${T}|g" test/gtest-filepath_test.cc || die "sed failed" + + python_convert_shebangs -r 2 . + + epatch "${FILESDIR}/${P}-asneeded.patch" + eautoreconf +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(use_with threads pthreads) || die +} + +src_test() { + # explicitly use parallel make + emake check || die +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc CHANGES CONTRIBUTORS README || die + + if ! use static-libs ; then + rm "${ED}"/usr/lib*/*.la || die + fi + + if use examples ; then + insinto /usr/share/doc/${PF}/examples + doins samples/*.{cc,h} || die + fi +} diff --git a/dev-cpp/gtest/metadata.xml b/dev-cpp/gtest/metadata.xml new file mode 100644 index 000000000000..c1f897f74697 --- /dev/null +++ b/dev-cpp/gtest/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>matsuu@gentoo.org</email> + </maintainer> + <upstream> + <doc lang="en">http://code.google.com/p/googletest/w/list</doc> + </upstream> +</pkgmetadata> + |