Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jan 2018 00:43:34 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r460067 - in head/devel: . easyloggingpp easyloggingpp/files
Message-ID:  <201801270043.w0R0hYC2011922@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Jan 27 00:43:34 2018
New Revision: 460067
URL: https://svnweb.freebsd.org/changeset/ports/460067

Log:
  New port: devel/easyloggingpp: C++ logging library
  
  Approved by:	tcberner (mentor), adamw (mentor)
  Differential Revision:	D13912

Added:
  head/devel/easyloggingpp/
  head/devel/easyloggingpp/Makefile   (contents, props changed)
  head/devel/easyloggingpp/distinfo   (contents, props changed)
  head/devel/easyloggingpp/files/
  head/devel/easyloggingpp/files/patch-CMakeLists.txt   (contents, props changed)
  head/devel/easyloggingpp/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sat Jan 27 00:38:14 2018	(r460066)
+++ head/devel/Makefile	Sat Jan 27 00:43:34 2018	(r460067)
@@ -477,6 +477,7 @@
     SUBDIR += e00compr
     SUBDIR += e2fsprogs-libss
     SUBDIR += easygit
+    SUBDIR += easyloggingpp
     SUBDIR += eblob
     SUBDIR += ebnf2yacc
     SUBDIR += ecgi

Added: head/devel/easyloggingpp/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/easyloggingpp/Makefile	Sat Jan 27 00:43:34 2018	(r460067)
@@ -0,0 +1,24 @@
+# $FreeBSD$
+
+PORTNAME=	easyloggingpp
+DISTVERSIONPREFIX=	v
+DISTVERSION=	9.95.3
+CATEGORIES=	devel
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	C++ logging library
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cmake:outsource
+USE_GITHUB=	yes
+GH_ACCOUNT=	muflihun
+USE_LDCONFIG=	yes
+CMAKE_ON=	build_shared_lib  # patched in, requested such option in https://github.com/muflihun/easyloggingpp/issues/603
+
+PLIST_FILES=	include/easylogging++.h \
+		include/easylogging++.cc \
+		lib/libeasyloggingpp.so
+
+.include <bsd.port.mk>

Added: head/devel/easyloggingpp/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/easyloggingpp/distinfo	Sat Jan 27 00:43:34 2018	(r460067)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1516061458
+SHA256 (muflihun-easyloggingpp-v9.95.3_GH0.tar.gz) = daa1d6f09b15482d418d3698741d2330195bf0e97370bc27d02bb6cc18debfb8
+SIZE (muflihun-easyloggingpp-v9.95.3_GH0.tar.gz) = 747358

Added: head/devel/easyloggingpp/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/easyloggingpp/files/patch-CMakeLists.txt	Sat Jan 27 00:43:34 2018	(r460067)
@@ -0,0 +1,34 @@
+Suggested the same to the upstream: https://github.com/muflihun/easyloggingpp/issues/603
+
+--- CMakeLists.txt.orig	2017-10-13 00:35:14 UTC
++++ CMakeLists.txt
+@@ -22,7 +22,7 @@ macro(require_cpp11)
+ endmacro()
+ 
+ option(test "Build all tests" OFF)
+-option(build_static_lib "Build easyloggingpp as a static library" OFF)
++option(build_shared_lib "Build easyloggingpp as a shared library" OFF)
+ option(lib_utc_datetime "Build library with UTC date/time logging" OFF)
+ 
+ set(ELPP_MAJOR_VERSION "9")
+@@ -40,17 +40,17 @@ install(FILES
+     DESTINATION "${ELPP_INCLUDE_INSTALL_DIR}"
+     COMPONENT dev)
+ 
+-if (build_static_lib)
++if (build_shared_lib)
+         if (lib_utc_datetime)
+                 add_definitions(-DELPP_UTC_DATETIME)
+         endif()
+ 
+         require_cpp11()
+-        add_library(easyloggingpp STATIC src/easylogging++.cc)
++        add_library(easyloggingpp SHARED src/easylogging++.cc)
+ 
+         install(TARGETS
+             easyloggingpp
+-            ARCHIVE DESTINATION lib)
++            DESTINATION lib)
+ endif()
+ 
+ export(PACKAGE ${PROJECT_NAME})

Added: head/devel/easyloggingpp/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/easyloggingpp/pkg-descr	Sat Jan 27 00:43:34 2018	(r460067)
@@ -0,0 +1,7 @@
+Single header C++ logging library. It is extremely powerful, extendable,
+light-weight, fast performing, thread and type safe and consists of many
+built-in features. It provides ability to write logs in your own customized
+format. It also provide support for logging your classes, third-party
+libraries, STL and third-party containers etc.
+
+WWW: https://muflihun.github.io/easyloggingpp/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801270043.w0R0hYC2011922>