Import glog-0.3.0:

The glog library implements application-level logging. This library
provides logging APIs based on C++-style streams and various helper
macros.
From MAINTAINER Vicent Auclair (thanks!) @ ACSEL and a few tweaks by me
This commit is contained in:
landry 2009-12-31 15:48:59 +00:00
parent e0db87e993
commit beea239526
7 changed files with 108 additions and 0 deletions

34
devel/glog/Makefile Normal file
View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/12/31 15:48:59 landry Exp $
COMMENT = C++ application-level logging library
DISTNAME = glog-0.3.0
SHARED_LIBS += glog 0.0 # 0.2.1
CATEGORIES = devel
HOMEPAGE = http://code.google.com/p/google-glog/
MAINTAINER = Vincent Auclair <auclair.vincent@gmail.com>
# New BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += pthread
MASTER_SITES = http://google-glog.googlecode.com/files/
LIB_DEPENDS = gflags::devel/gflags
REGRESS_DEPENDS = ::devel/gtest
BUILD_DEPENDS += ${REGRESS_DEPENDS}
USE_LIBTOOL = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += ${CONFIGURE_SHARED} --with-gflags=${LOCALBASE}
MAKE_FLAGS = docdir='$$(prefix)/share/doc/glog'
.include <bsd.port.mk>

5
devel/glog/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (glog-0.3.0.tar.gz) = lo/kv7rdujFb9S3jENytxQ==
RMD160 (glog-0.3.0.tar.gz) = cyk0E8PmP8NCBoIvEOycihKC4Mo=
SHA1 (glog-0.3.0.tar.gz) = jNYuy/1M9DP9Iuvu70K42kMmdeI=
SHA256 (glog-0.3.0.tar.gz) = myRESMaXAzhsU1KQdq21G2ORUAi5ouuRXgolyIrvBps=
SIZE (glog-0.3.0.tar.gz) = 487032

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-configure,v 1.1.1.1 2009/12/31 15:48:59 landry Exp $
--- configure.orig Thu Jul 30 14:29:42 2009
+++ configure Fri Nov 27 23:35:25 2009
@@ -2470,6 +2470,7 @@ ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+acxx_link='$CXX -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
@@ -23954,7 +23955,7 @@ case "(($ac_try" in
*) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_link") 2>conftest.er1
+ (eval "$acxx_link") 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
@@ -24068,7 +24069,7 @@ do
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_GMOCK_CONFIG=""yes""
+ ac_cv_prog_GMOCK_CONFIG=""no""
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_logging_cc,v 1.1.1.1 2009/12/31 15:48:59 landry Exp $
http://code.google.com/p/google-glog/issues/detail?id=13
--- src/logging.cc.orig Thu Dec 31 15:31:16 2009
+++ src/logging.cc Thu Dec 31 15:32:14 2009
@@ -1755,7 +1755,7 @@ int posix_strerror_r(int err, char *buf, size_t len) {
} else {
buf[0] = '\000';
#if defined(OS_MACOSX) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
- if (reinterpret_cast<int>(rc) < sys_nerr) {
+ if (reinterpret_cast<intptr_t>(rc) < sys_nerr) {
// This means an error on MacOSX or FreeBSD.
return -1;
}

3
devel/glog/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
The glog library implements application-level logging. This library
provides logging APIs based on C++-style streams and various helper
macros.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2009/12/31 15:48:59 landry Exp $
@lib lib/libglog.so.${LIBglog_VERSION}

22
devel/glog/pkg/PLIST Normal file
View File

@ -0,0 +1,22 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/12/31 15:48:59 landry Exp $
%%SHARED%%
include/glog/
include/glog/log_severity.h
include/glog/logging.h
include/glog/raw_logging.h
include/glog/stl_logging.h
include/glog/vlog_is_on.h
lib/libglog.a
lib/libglog.la
lib/pkgconfig/
lib/pkgconfig/libglog.pc
share/doc/glog/
share/doc/glog/AUTHORS
share/doc/glog/COPYING
share/doc/glog/ChangeLog
share/doc/glog/INSTALL
share/doc/glog/NEWS
share/doc/glog/README
share/doc/glog/README.windows
share/doc/glog/designstyle.css
share/doc/glog/glog.html