aboutsummaryrefslogtreecommitdiffstats
path: root/devel/glog
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2008-10-14 14:32:04 +0800
committerclsung <clsung@FreeBSD.org>2008-10-14 14:32:04 +0800
commitcd836f554d4f0c156f55e362c5eaa7b51f461879 (patch)
treef567ec9c69661c771b80dfa1cc009bcb1533bd84 /devel/glog
parent4b322a177fd094600547211397d944e7a661f41c (diff)
downloadfreebsd-ports-gnome-cd836f554d4f0c156f55e362c5eaa7b51f461879.tar.gz
freebsd-ports-gnome-cd836f554d4f0c156f55e362c5eaa7b51f461879.tar.zst
freebsd-ports-gnome-cd836f554d4f0c156f55e362c5eaa7b51f461879.zip
The glog library implements application-level logging.
This library provides logging APIs based on C++-style streams and various helper macros.
Diffstat (limited to 'devel/glog')
-rw-r--r--devel/glog/Makefile36
-rw-r--r--devel/glog/distinfo3
-rw-r--r--devel/glog/files/extra-patch-src-logging.cc11
-rw-r--r--devel/glog/files/extra-patch-src-raw_logging.cc11
-rw-r--r--devel/glog/pkg-descr6
-rw-r--r--devel/glog/pkg-plist19
6 files changed, 86 insertions, 0 deletions
diff --git a/devel/glog/Makefile b/devel/glog/Makefile
new file mode 100644
index 000000000000..852d53836afb
--- /dev/null
+++ b/devel/glog/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: google-glog
+# Date created: Oct 14, 2008
+# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= glog
+DISTVERSION= 0.1
+CATEGORIES= devel
+MASTER_SITES= http://google-glog.googlecode.com/files/
+
+MAINTAINER= clsung@FreeBSD.org
+COMMENT= A library of C++ classes for flexible logging
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64" || ${ARCH} =="ia64"
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-src-logging.cc \
+ ${FILESDIR}/extra-patch-src-raw_logging.cc
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|^docdir.*|docdir = ${DOCSDIR}|' ${WRKSRC}/Makefile.in
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -E -e '/^install-data-am/,/^$$/ s,install-(dist_doc|dist_html|html)DATA,,g' \
+ ${WRKSRC}/Makefile.in
+.endif
+
+#regression-test:
+# cd ${WRKSRC}; ${MAKE} check
+
+.include <bsd.port.post.mk>
diff --git a/devel/glog/distinfo b/devel/glog/distinfo
new file mode 100644
index 000000000000..7031e2d632f5
--- /dev/null
+++ b/devel/glog/distinfo
@@ -0,0 +1,3 @@
+MD5 (glog-0.1.tar.gz) = 310275d005d0d4bcc9e3f27607951f88
+SHA256 (glog-0.1.tar.gz) = 353cf96debb05752bcef3a41f9e1e80e5207c592771948daeb4caa25808eabfc
+SIZE (glog-0.1.tar.gz) = 436333
diff --git a/devel/glog/files/extra-patch-src-logging.cc b/devel/glog/files/extra-patch-src-logging.cc
new file mode 100644
index 000000000000..ab7f22f6ecb7
--- /dev/null
+++ b/devel/glog/files/extra-patch-src-logging.cc
@@ -0,0 +1,11 @@
+--- src/logging.cc.orig 2008-10-03 13:32:01.000000000 +0800
++++ src/logging.cc 2008-10-14 13:32:03.000000000 +0800
+@@ -1566,7 +1566,7 @@
+ } else {
+ buf[0] = '\000';
+ #if defined(OS_MACOSX) || defined(OS_FREEBSD)
+- if (reinterpret_cast<int>(rc) < sys_nerr) {
++ if (reinterpret_cast<long>(rc) < sys_nerr) {
+ // This means an error on MacOSX or FreeBSD.
+ return -1;
+ }
diff --git a/devel/glog/files/extra-patch-src-raw_logging.cc b/devel/glog/files/extra-patch-src-raw_logging.cc
new file mode 100644
index 000000000000..ff0b467b4e82
--- /dev/null
+++ b/devel/glog/files/extra-patch-src-raw_logging.cc
@@ -0,0 +1,11 @@
+--- src/raw_logging.cc.orig 2008-10-03 13:32:50.000000000 +0800
++++ src/raw_logging.cc 2008-10-14 13:34:22.000000000 +0800
+@@ -87,7 +87,7 @@
+ DoRawLog(&buf, &size, "%c%02d%02d %02d%02d%02d %08x %s:%d] RAW: ",
+ LogSeverityNames[severity][0],
+ 1 + t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec,
+- int(pthread_self()),
++ long(pthread_self()),
+ basename(const_cast<char *>(file)), line);
+ }
+ va_list ap;
diff --git a/devel/glog/pkg-descr b/devel/glog/pkg-descr
new file mode 100644
index 000000000000..a2026b61ef02
--- /dev/null
+++ b/devel/glog/pkg-descr
@@ -0,0 +1,6 @@
+The glog library implements application-level logging.
+
+This library provides logging APIs based on C++-style streams
+and various helper macros.
+
+WWW: http://code.google.com/p/google-glog/
diff --git a/devel/glog/pkg-plist b/devel/glog/pkg-plist
new file mode 100644
index 000000000000..9dbf4d0011a3
--- /dev/null
+++ b/devel/glog/pkg-plist
@@ -0,0 +1,19 @@
+include/glog/log_severity.h
+include/glog/logging.h
+include/glog/raw_logging.h
+include/glog/vlog_is_on.h
+include/glog/stl_logging.h
+lib/libglog.so.0
+lib/libglog.so
+lib/libglog.la
+lib/libglog.a
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/designstyle.css
+%%PORTDOCS%%%%DOCSDIR%%/glog.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrmtry include/glog