summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Mueller <dev-zero@gentoo.org>2009-09-14 16:34:18 +0200
committerTiziano Mueller <dev-zero@gentoo.org>2009-09-14 16:34:18 +0200
commit923c80be3a17666751147d46d6fe283981f4ece4 (patch)
tree340ab4b0a1e8cdc3bd143159e37d6aeefaae445d /dev-cpp
parentVersion bump. (diff)
downloaddev-zero-923c80be3a17666751147d46d6fe283981f4ece4.tar.gz
dev-zero-923c80be3a17666751147d46d6fe283981f4ece4.tar.bz2
dev-zero-923c80be3a17666751147d46d6fe283981f4ece4.zip
Added ebuild for glog.
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/glog/Manifest3
-rw-r--r--dev-cpp/glog/files/0.3.0-configure.patch48
-rw-r--r--dev-cpp/glog/glog-0.3.0.ebuild39
3 files changed, 90 insertions, 0 deletions
diff --git a/dev-cpp/glog/Manifest b/dev-cpp/glog/Manifest
new file mode 100644
index 0000000..ebca00a
--- /dev/null
+++ b/dev-cpp/glog/Manifest
@@ -0,0 +1,3 @@
+AUX 0.3.0-configure.patch 1678 RMD160 f8990764c7e9737d55505a2a90e9316f52011d1b SHA1 f6710bbc9b5473cdec2d124781f4779f33567ca2 SHA256 b923b181810d1e90a39b682479f7e268288c72e43a77869c2cc557452362e43d
+EBUILD glog-0.3.0.ebuild 751 RMD160 ec23ad3962a3aac6680bb3877c119b747196b347 SHA1 2cc3e1742625eb8244ba44fe9f2818391675a265 SHA256 e2a884beb2d12e9373ddbd71be5a74cf2866a41d9d2b3282b697f6bef01a58f2
+DIST glog-0.3.0.tar.gz 487032 RMD160 73293413c3e63fc34206822f10ec9c8a1282e0ca SHA1 8cd62ecbfd4cf433fd22ebeeef42b8da432675e2 SHA256 9b244448c69703386c53529076adb51b63915008b9a2eb915e0a25c88aef069b
diff --git a/dev-cpp/glog/files/0.3.0-configure.patch b/dev-cpp/glog/files/0.3.0-configure.patch
new file mode 100644
index 0000000..ee56174
--- /dev/null
+++ b/dev-cpp/glog/files/0.3.0-configure.patch
@@ -0,0 +1,48 @@
+diff -Naur glog-0.3.0.orig/configure.ac glog-0.3.0/configure.ac
+--- glog-0.3.0.orig/configure.ac 2009-09-14 14:47:33.473858227 +0200
++++ glog-0.3.0/configure.ac 2009-09-14 14:51:26.017249709 +0200
+@@ -101,21 +101,32 @@
+ # Check if there is google-gflags library installed.
+ SAVE_CFLAGS="$CFLAGS"
+ SAVE_LIBS="$LIBS"
+-AC_ARG_WITH(gflags, AS_HELP_STRING[--with-gflags=GFLAGS_DIR],
+- GFLAGS_CFLAGS="-I${with_gflags}/include"
+- GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
+- CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
+- LIBS="$LIBS $GFLAGS_LIBS"
++AC_ARG_WITH([gflags], AS_HELP_STRING[--with-gflags=GFLAGS_DIR],
++ [with_gflags=${withval}],
++ [with_gflags=yes]
+ )
+-AC_CHECK_LIB(gflags, main, ac_cv_have_libgflags=1, ac_cv_have_libgflags=0)
+-if test x"$ac_cv_have_libgflags" = x"1"; then
+- AC_DEFINE(HAVE_LIB_GFLAGS, 1, [define if you have google gflags library])
+- if test x"$GFLAGS_LIBS" = x""; then
+- GFLAGS_LIBS="-lgflags"
++
++if test x"$with_gflags" != "xno" ; then
++ if test x"$with_gflags" = "xyes" ; then
++ AC_CHECK_LIB(gflags, main, ac_cv_have_libgflags=1, ac_cv_have_libgflags=0)
++ if test x"$ac_cv_have_libgflags" = x"1"; then
++ AC_DEFINE(HAVE_LIB_GFLAGS, 1, [define if you have google gflags library])
++ if test x"$GFLAGS_LIBS" = x""; then
++ GFLAGS_LIBS="-lgflags"
++ fi
++ else
++ GFLAGS_CFLAGS=
++ GFLAGS_LIBS=
++ fi
++ else
++ GFLAGS_CFLAGS="-I${with_gflags}/include"
++ GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
++ CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
++ LIBS="$LIBS $GFLAGS_LIBS"
++ ac_cv_have_libgflags=0
+ fi
+ else
+- GFLAGS_CFLAGS=
+- GFLAGS_LIBS=
++ ac_cv_have_libgflags=0
+ fi
+ CFLAGS="$SAVE_CFLAGS"
+ LIBS="$SAVE_LIBS"
diff --git a/dev-cpp/glog/glog-0.3.0.ebuild b/dev-cpp/glog/glog-0.3.0.ebuild
new file mode 100644
index 0000000..25d4282
--- /dev/null
+++ b/dev-cpp/glog/glog-0.3.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2009 Tiziano Mueller
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit autotools eutils
+
+DESCRIPTION="The glog library implements application-level logging."
+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"
+IUSE="gflags"
+
+DEPEND="gflags? ( dev-cpp/gflags )
+ sys-libs/libunwind"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${PV}-configure.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with gflags)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ rm -rf "${D}"/usr/share/doc/*
+
+ dodoc AUTHORS NEWS README
+ dohtml doc/*
+}