From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- dev-cpp/glog/Manifest | 3 + .../glog/files/glog-0.3.2-avoid-inline-asm.patch | 56 ++++++++++++++++++ dev-cpp/glog/glog-0.3.1.ebuild | 32 ++++++++++ dev-cpp/glog/glog-0.3.2.ebuild | 51 ++++++++++++++++ dev-cpp/glog/glog-0.3.3-r1.ebuild | 68 ++++++++++++++++++++++ dev-cpp/glog/glog-0.3.3.ebuild | 51 ++++++++++++++++ dev-cpp/glog/metadata.xml | 15 +++++ 7 files changed, 276 insertions(+) create mode 100644 dev-cpp/glog/Manifest create mode 100644 dev-cpp/glog/files/glog-0.3.2-avoid-inline-asm.patch create mode 100644 dev-cpp/glog/glog-0.3.1.ebuild create mode 100644 dev-cpp/glog/glog-0.3.2.ebuild create mode 100644 dev-cpp/glog/glog-0.3.3-r1.ebuild create mode 100644 dev-cpp/glog/glog-0.3.3.ebuild create mode 100644 dev-cpp/glog/metadata.xml (limited to 'dev-cpp/glog') diff --git a/dev-cpp/glog/Manifest b/dev-cpp/glog/Manifest new file mode 100644 index 000000000000..275c924bceb4 --- /dev/null +++ b/dev-cpp/glog/Manifest @@ -0,0 +1,3 @@ +DIST glog-0.3.1-1.tar.gz 491798 SHA256 0a5ce945aaa5c64cb3889bf4844a0459263c06a77ad549042230dfea316787cb SHA512 9bf48fe53e45a7af24ea6cfe27f6a4b592efe9911e2c9764c364d551ad9a7ab4eae2ace64873ec9bd2202323032ffbdbbda5ea9e7514aa0e324e30048c238e96 WHIRLPOOL 21593af929da3db01527c6e9111b75a7318be2c14abebbfb1e09f0a6ac12442e522cb510a776ef95136168baa1400e759bb69f7670192301ed1044db00eac385 +DIST glog-0.3.2.tar.gz 478666 SHA256 5e47f9437e97cb1621930dea3c557a2801ddac3b5db1a9fd0c3cde399f2c9ccd SHA512 75f61d63fd65df40995b657c47a6c2dcabd2e25716c7ac1d4229dfc6a43e5957576b9d090997ae0ec81b30b60df6fdc6ae1294a087cbc3d03ad42295980fddfd WHIRLPOOL c6649da59d7de673b39fdb4f6930c44ab6887595733468e9ed81928525892f21c23e0f8e9cb7aac383fdb3afa6f86aa683ccff5502b445c546f00bc44f4c75f2 +DIST glog-0.3.3.tar.gz 509676 SHA256 fbf90c2285ba0561db7a40f8a4eefb9aa963e7d399bd450363e959929fe849d0 SHA512 95418ff0857415a0fbc15caeb22a13f3b6736618adcc3c30e054626f1397bc58399c45f68784c70b1f5dc594ebc6ea66e386896beab5c20be72dd53b25f5a4ac WHIRLPOOL 7ba26a936e3ac18afbccf141b888a885f3f9847d4f19c0ebad416d16fcff936b9622e03aec155f77622759a40e8684673c29648c026426326239f4485113c6cf diff --git a/dev-cpp/glog/files/glog-0.3.2-avoid-inline-asm.patch b/dev-cpp/glog/files/glog-0.3.2-avoid-inline-asm.patch new file mode 100644 index 000000000000..b6fa9cdb7374 --- /dev/null +++ b/dev-cpp/glog/files/glog-0.3.2-avoid-inline-asm.patch @@ -0,0 +1,56 @@ +http://code.google.com/p/google-glog/issues/detail?id=130 + +make the code work with all gcc targets + +--- a/src/symbolize_unittest.cc ++++ b/src/symbolize_unittest.cc +@@ -60,9 +60,7 @@ using namespace GOOGLE_NAMESPACE; + # endif // __i386__ + # else + # endif // __GNUC__ >= 4 +-# if defined(__i386__) || defined(__x86_64__) +-# define TEST_X86_32_AND_64 1 +-# endif // defined(__i386__) || defined(__x86_64__) ++# define TEST_WITH_LABEL_ADDRESSES + #endif + + // A wrapper function for Symbolize() to make the unit test simple. +@@ -289,22 +287,24 @@ TEST(Symbolize, SymbolizeWithDemanglingStackConsumption) { + extern "C" { + inline void* always_inline inline_func() { + register void *pc = NULL; +-#ifdef TEST_X86_32_AND_64 +- __asm__ __volatile__("call 1f; 1: pop %0" : "=r"(pc)); ++#ifdef TEST_WITH_LABEL_ADDRESSES ++ pc = &&curr_pc; ++ curr_pc: + #endif + return pc; + } + + void* ATTRIBUTE_NOINLINE non_inline_func() { + register void *pc = NULL; +-#ifdef TEST_X86_32_AND_64 +- __asm__ __volatile__("call 1f; 1: pop %0" : "=r"(pc)); ++#ifdef TEST_WITH_LABEL_ADDRESSES ++ pc = &&curr_pc; ++ curr_pc: + #endif + return pc; + } + + void ATTRIBUTE_NOINLINE TestWithPCInsideNonInlineFunction() { +-#if defined(TEST_X86_32_AND_64) && defined(HAVE_ATTRIBUTE_NOINLINE) ++#if defined(TEST_WITH_LABEL_ADDRESSES) && defined(HAVE_ATTRIBUTE_NOINLINE) + void *pc = non_inline_func(); + const char *symbol = TrySymbolize(pc); + CHECK(symbol != NULL); +@@ -314,7 +314,7 @@ void ATTRIBUTE_NOINLINE TestWithPCInsideNonInlineFunction() { + } + + void ATTRIBUTE_NOINLINE TestWithPCInsideInlineFunction() { +-#if defined(TEST_X86_32_AND_64) && defined(HAVE_ALWAYS_INLINE) ++#if defined(TEST_WITH_LABEL_ADDRESSES) && defined(HAVE_ALWAYS_INLINE) + void *pc = inline_func(); // Must be inlined. + const char *symbol = TrySymbolize(pc); + CHECK(symbol != NULL); diff --git a/dev-cpp/glog/glog-0.3.1.ebuild b/dev-cpp/glog/glog-0.3.1.ebuild new file mode 100644 index 000000000000..19e2fa44e471 --- /dev/null +++ b/dev-cpp/glog/glog-0.3.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit eutils + +DESCRIPTION="Google's C++ logging library" +HOMEPAGE="http://code.google.com/p/google-glog/" +SRC_URI="http://google-glog.googlecode.com/files/${P}-1.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="gflags static-libs test" + +RDEPEND="gflags? ( dev-cpp/gflags )" +DEPEND="${RDEPEND} + test? ( + dev-cpp/gmock + dev-cpp/gtest + )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.3.2-avoid-inline-asm.patch +} + +src_configure() { + export ac_cv_lib_gflags_main=$(usex gflags) + use test || export ac_cv_prog_GTEST_CONFIG=no + econf $(use_enable static-libs static) +} diff --git a/dev-cpp/glog/glog-0.3.2.ebuild b/dev-cpp/glog/glog-0.3.2.ebuild new file mode 100644 index 000000000000..33f15279a6a4 --- /dev/null +++ b/dev-cpp/glog/glog-0.3.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit eutils + +DESCRIPTION="Google's C++ logging library" +HOMEPAGE="http://code.google.com/p/google-glog/" +SRC_URI="http://google-glog.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" +IUSE="gflags static-libs unwind test" + +RDEPEND="gflags? ( dev-cpp/gflags ) + unwind? ( sys-libs/libunwind )" +DEPEND="${RDEPEND} + test? ( + dev-cpp/gmock + dev-cpp/gtest + )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-avoid-inline-asm.patch +} + +src_configure() { + export ac_cv_lib_gflags_main=$(usex gflags) + export ac_cv_lib_unwind_backtrace=$(usex unwind) + use test || export ac_cv_prog_GTEST_CONFIG=no + econf \ + --docdir="\${datarootdir}/doc/${PF}" \ + --htmldir="\${datarootdir}/doc/${PF}/html" \ + $(use_enable static-libs static) +} + +src_install() { + default + + # Punt docs we don't care about (NEWS is 0 bytes). + rm "${ED}"/usr/share/doc/${PF}/{COPYING,NEWS,README.windows} + + # --htmldir doesn't work (yet): + # https://code.google.com/p/google-glog/issues/detail?id=144 + dohtml "${ED}"/usr/share/doc/${PF}/* + rm "${ED}"/usr/share/doc/${PF}/*.{html,css} + + use static-libs || find "${ED}" -name '*.la' -delete +} diff --git a/dev-cpp/glog/glog-0.3.3-r1.ebuild b/dev-cpp/glog/glog-0.3.3-r1.ebuild new file mode 100644 index 000000000000..66788e652810 --- /dev/null +++ b/dev-cpp/glog/glog-0.3.3-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit eutils multilib-minimal + +DESCRIPTION="Google's C++ logging library" +HOMEPAGE="http://code.google.com/p/google-glog/" +SRC_URI="http://google-glog.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="gflags static-libs unwind test" + +RDEPEND="gflags? ( >=dev-cpp/gflags-2.0-r1[${MULTILIB_USEDEP}] ) + unwind? ( sys-libs/libunwind )" +DEPEND="${RDEPEND} + test? ( + >=dev-cpp/gmock-1.7.0-r1[${MULTILIB_USEDEP}] + >=dev-cpp/gtest-1.6.0-r2[${MULTILIB_USEDEP}] + )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.3.2-avoid-inline-asm.patch + # Fix the --dodcdir flag: + # https://code.google.com/p/google-glog/issues/detail?id=193 + sed -i \ + -e '/^docdir =/s:=.*:= @docdir@:' \ + Makefile.in || die +} + +multilib_src_configure() { + use test || export ac_cv_prog_GTEST_CONFIG=no + ECONF_SOURCE=${S} \ + ac_cv_lib_gflags_main=$(usex gflags) \ + ac_cv_lib_unwind_backtrace=$(usex unwind) \ + econf \ + --docdir="\$(datarootdir)/doc/${PF}" \ + --htmldir='$(docdir)/html' \ + $(use_enable static-libs static) +} + +_emake() { + # The tests always get built ... disable them when unused. + emake $(usex test '' noinst_PROGRAMS=) "$@" +} + +multilib_src_compile() { + _emake +} + +multilib_src_install() { + _emake install DESTDIR="${D}" +} + +multilib_src_install_all() { + # Punt docs we don't care about (NEWS is 0 bytes). + rm "${ED}"/usr/share/doc/${PF}/{COPYING,NEWS,README.windows} || die + + # --htmldir doesn't work (yet): + # https://code.google.com/p/google-glog/issues/detail?id=144 + dohtml "${ED}"/usr/share/doc/${PF}/* + rm "${ED}"/usr/share/doc/${PF}/*.{html,css} + + use static-libs || find "${ED}" -name '*.la' -delete +} diff --git a/dev-cpp/glog/glog-0.3.3.ebuild b/dev-cpp/glog/glog-0.3.3.ebuild new file mode 100644 index 000000000000..19f6818680fb --- /dev/null +++ b/dev-cpp/glog/glog-0.3.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +inherit eutils + +DESCRIPTION="Google's C++ logging library" +HOMEPAGE="http://code.google.com/p/google-glog/" +SRC_URI="http://google-glog.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux" +IUSE="gflags static-libs unwind test" + +RDEPEND="gflags? ( dev-cpp/gflags ) + unwind? ( sys-libs/libunwind )" +DEPEND="${RDEPEND} + test? ( + dev-cpp/gmock + dev-cpp/gtest + )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.3.2-avoid-inline-asm.patch +} + +src_configure() { + export ac_cv_lib_gflags_main=$(usex gflags) + export ac_cv_lib_unwind_backtrace=$(usex unwind) + use test || export ac_cv_prog_GTEST_CONFIG=no + econf \ + --docdir="\${datarootdir}/doc/${PF}" \ + --htmldir="\${datarootdir}/doc/${PF}/html" \ + $(use_enable static-libs static) +} + +src_install() { + default + + # Punt docs we don't care about (NEWS is 0 bytes). + rm "${ED}"/usr/share/doc/${PF}/{COPYING,NEWS,README.windows} + + # --htmldir doesn't work (yet): + # https://code.google.com/p/google-glog/issues/detail?id=144 + dohtml "${ED}"/usr/share/doc/${PF}/* + rm "${ED}"/usr/share/doc/${PF}/*.{html,css} + + use static-libs || find "${ED}" -name '*.la' -delete +} diff --git a/dev-cpp/glog/metadata.xml b/dev-cpp/glog/metadata.xml new file mode 100644 index 000000000000..f53753845dcf --- /dev/null +++ b/dev-cpp/glog/metadata.xml @@ -0,0 +1,15 @@ + + + + + vapier@gentoo.org + + cpp + + Use dev-cpp/gflags for flag parsing + Use sys-libs/libunwind for stack unwinding instead of glibc/gcc (may be more reliable on x86_64) + + + google-glog + + -- cgit v1.2.3-65-gdbad