1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00

devel/glog: Update to 0.5.0

Changes:	https://github.com/google/glog/releases
This commit is contained in:
Po-Chuan Hsieh 2021-05-16 23:13:35 +08:00
parent 9141d73fde
commit aac990618e
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
7 changed files with 97 additions and 34 deletions

View File

@ -1,8 +1,7 @@
# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
PORTNAME= glog
PORTVERSION= 0.4.0
PORTREVISION= 1
PORTVERSION= 0.5.0
DISTVERSIONPREFIX= v
CATEGORIES= devel
@ -12,23 +11,20 @@ COMMENT= Library of C++ classes for flexible logging
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgflags.so:devel/gflags
LIB_DEPENDS= libgflags.so:devel/gflags \
libunwind.so:devel/libunwind
OPTIONS_DEFINE= DOCS
USES= cmake compiler:c++11-lang pkgconfig
USES= autoreconf compiler:c++11-lang libtool localbase pathfix
CMAKE_ON= BUILD_SHARED_LIBS WITH_GFLAGS WITH_PKGCONFIG WITH_SYMBOLIZE WITH_THREADS WITH_TLS WITH_UNWIND
CMAKE_OFF= PRINT_UNSYMBOLIZED_STACK_TRACES WITH_CUSTOM_PREFIX WITH_GTEST
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
LDFLAGS+= -lexecinfo
TEST_TARGET= check
TEST_TARGET= test
USE_CXXSTD= c++11
USE_LDCONFIG= yes
GH_ACCOUNT= google
USE_GITHUB= yes
post-patch:
@${REINPLACE_CMD} -e '/^docdir = / s| = .*| = ${DOCSDIR}|' ${WRKSRC}/Makefile.am
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1553260442
SHA256 (google-glog-v0.4.0_GH0.tar.gz) = f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c
SIZE (google-glog-v0.4.0_GH0.tar.gz) = 200955
TIMESTAMP = 1620928565
SHA256 (google-glog-v0.5.0_GH0.tar.gz) = eede71f28371bf39aa69b45de23b329d37214016e2055269b3b5e7cfd40b59f5
SIZE (google-glog-v0.5.0_GH0.tar.gz) = 183346

View File

@ -0,0 +1,23 @@
--- CMakeLists.txt.orig 2021-05-07 23:05:04 UTC
+++ CMakeLists.txt
@@ -113,8 +113,6 @@ check_include_file_cxx (unistd.h HAVE_UNISTD_H)
check_include_file_cxx ("ext/hash_map" HAVE_EXT_HASH_MAP)
check_include_file_cxx ("ext/hash_set" HAVE_EXT_HASH_SET)
check_include_file_cxx ("ext/slist" HAVE_EXT_SLIST)
-check_include_file_cxx ("tr1/unordered_map" HAVE_TR1_UNORDERED_MAP)
-check_include_file_cxx ("tr1/unordered_set" HAVE_TR1_UNORDERED_SET)
check_include_file_cxx ("unordered_map" HAVE_UNORDERED_MAP)
check_include_file_cxx ("unordered_set" HAVE_UNORDERED_SET)
@@ -678,11 +676,6 @@ if (BUILD_TESTING)
target_compile_definitions (stl_logging_unittest PRIVATE
GLOG_STL_LOGGING_FOR_UNORDERED)
endif (HAVE_UNORDERED_MAP AND HAVE_UNORDERED_SET)
-
- if (HAVE_TR1_UNORDERED_MAP AND HAVE_TR1_UNORDERED_SET)
- target_compile_definitions (stl_logging_unittest PRIVATE
- GLOG_STL_LOGGING_FOR_TR1_UNORDERED)
- endif (HAVE_TR1_UNORDERED_MAP AND HAVE_TR1_UNORDERED_SET)
if (HAVE_EXT_HASH_MAP AND HAVE_EXT_HASH_SET)
target_compile_definitions (stl_logging_unittest PRIVATE

View File

@ -1,10 +0,0 @@
--- m4/pc_from_ucontext.m4.orig 2019-09-01 20:36:55 UTC
+++ m4/pc_from_ucontext.m4
@@ -21,6 +21,7 @@ AC_DEFUN([AC_PC_FROM_UCONTEXT],
pc_fields="$pc_fields uc_mcontext.gregs[[R15]]" # Linux (arm old [untested])
pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
+ pc_fields="$pc_fields uc_mcontext.mc_srr0" # FreeBSD (powerpc, powerpc64)
pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
pc_fields="$pc_fields uc_mcontext.__gregs[[_REG_EIP]]" # NetBSD (i386)
pc_fields="$pc_fields uc_mcontext.__gregs[[_REG_RIP]]" # NetBSD (x86_64)

View File

@ -0,0 +1,44 @@
--- src/glog/stl_logging.h.in.orig 2021-05-07 23:05:04 UTC
+++ src/glog/stl_logging.h.in
@@ -39,7 +39,6 @@
// need to define macros before including this file:
//
// - GLOG_STL_LOGGING_FOR_UNORDERED - <unordered_map> and <unordered_set>
-// - GLOG_STL_LOGGING_FOR_TR1_UNORDERED - <tr1/unordered_(map|set)>
// - GLOG_STL_LOGGING_FOR_EXT_HASH - <ext/hash_(map|set)>
// - GLOG_STL_LOGGING_FOR_EXT_SLIST - <ext/slist>
//
@@ -64,11 +63,6 @@
# include <unordered_set>
#endif
-#ifdef GLOG_STL_LOGGING_FOR_TR1_UNORDERED
-# include <tr1/unordered_map>
-# include <tr1/unordered_set>
-#endif
-
#ifdef GLOG_STL_LOGGING_FOR_EXT_HASH
# include <ext/hash_set>
# include <ext/hash_map>
@@ -134,10 +128,6 @@ OUTPUT_FOUR_ARG_CONTAINER(std::multimap)
OUTPUT_FOUR_ARG_CONTAINER(std::unordered_set)
OUTPUT_FOUR_ARG_CONTAINER(std::unordered_multiset)
#endif
-#ifdef GLOG_STL_LOGGING_FOR_TR1_UNORDERED
-OUTPUT_FOUR_ARG_CONTAINER(std::tr1::unordered_set)
-OUTPUT_FOUR_ARG_CONTAINER(std::tr1::unordered_multiset)
-#endif
#ifdef GLOG_STL_LOGGING_FOR_EXT_HASH
OUTPUT_FOUR_ARG_CONTAINER(__gnu_cxx::hash_set)
OUTPUT_FOUR_ARG_CONTAINER(__gnu_cxx::hash_multiset)
@@ -156,10 +146,6 @@ inline std::ostream& operator<<(std::ostream& out, \
#ifdef GLOG_STL_LOGGING_FOR_UNORDERED
OUTPUT_FIVE_ARG_CONTAINER(std::unordered_map)
OUTPUT_FIVE_ARG_CONTAINER(std::unordered_multimap)
-#endif
-#ifdef GLOG_STL_LOGGING_FOR_TR1_UNORDERED
-OUTPUT_FIVE_ARG_CONTAINER(std::tr1::unordered_map)
-OUTPUT_FIVE_ARG_CONTAINER(std::tr1::unordered_multimap)
#endif
#ifdef GLOG_STL_LOGGING_FOR_EXT_HASH
OUTPUT_FIVE_ARG_CONTAINER(__gnu_cxx::hash_map)

View File

@ -0,0 +1,12 @@
--- src/stl_logging_unittest.cc.orig 2021-05-07 23:05:04 UTC
+++ src/stl_logging_unittest.cc
@@ -52,9 +52,6 @@
# ifndef GLOG_STL_LOGGING_FOR_EXT_SLIST
# define GLOG_STL_LOGGING_FOR_EXT_SLIST
# endif
-# ifndef GLOG_STL_LOGGING_FOR_TR1_UNORDERED
-# define GLOG_STL_LOGGING_FOR_TR1_UNORDERED
-# endif
# endif
#endif

View File

@ -1,18 +1,16 @@
include/glog/export.h
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/cmake/glog/glog-config-version.cmake
lib/cmake/glog/glog-config.cmake
lib/cmake/glog/glog-modules.cmake
lib/cmake/glog/glog-targets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/glog/glog-targets.cmake
lib/libglog.so
lib/libglog.so.0
lib/libglog.so.0.0.0
lib/libglog.so.0.5.0
libdata/pkgconfig/libglog.pc
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/README.md
%%PORTDOCS%%%%DOCSDIR%%/README.windows
%%PORTDOCS%%%%DOCSDIR%%/designstyle.css
%%PORTDOCS%%%%DOCSDIR%%/glog.html
%%DATADIR%%/cmake/FindUnwind.cmake