Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Feb 2021 23:43:08 +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: r565186 - in head/devel/cereal: . files
Message-ID:  <202102132343.11DNh8Lv060259@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Feb 13 23:43:07 2021
New Revision: 565186
URL: https://svnweb.freebsd.org/changeset/ports/565186

Log:
  devel/cereal: Update 1.3.0 -> 1.3.0-10
  
  Also:
  * Add missing NO_ARCH
  * Fix dependencies
  * Not building tests every time
  * Add the 'test' target
  
  PR:		252793
  Approved by:	teodor@sigaev.ru (maintainer's timeout 25 days)

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

Modified: head/devel/cereal/Makefile
==============================================================================
--- head/devel/cereal/Makefile	Sat Feb 13 23:00:46 2021	(r565185)
+++ head/devel/cereal/Makefile	Sat Feb 13 23:43:07 2021	(r565186)
@@ -2,8 +2,9 @@
 
 PORTNAME=		cereal
 DISTVERSIONPREFIX=	v
-DISTVERSION=		1.3.0
-CATEGORIES=		devel
+DISTVERSION=	1.3.0-10
+DISTVERSIONSUFFIX=	-g64f50dbd
+CATEGORIES=	devel
 
 MAINTAINER=	teodor@sigaev.ru
 COMMENT=	C++11 library for serialization
@@ -11,18 +12,28 @@ COMMENT=	C++11 library for serialization
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libboost_system.so:devel/boost-libs
-BUILD_DEPENDS=	boost-libs>=1.69:devel/boost-libs \
-		cmake>=2.6.2:devel/cmake \
-		ninja>=1.8.2:devel/ninja
+BUILD_DEPENDS=	boost-libs>0:devel/boost-libs
+RUN_DEPENDS=	boost-libs>0:devel/boost-libs
 
 USES=		cmake compiler:c++11-lang
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	USCiLab
 
 CFLAGS+=	-Wno-unused-private-field
 
 CMAKE_ON=	SKIP_PORTABILITY_TEST
-CMAKE_OFF=	WITH_WERROR
+CMAKE_OFF=	BUILD_TESTS WITH_WERROR
+
+NO_ARCH=	yes
+
+post-install:
+	${FIND} ${STAGEDIR}${PREFIX} -name LICENSE -delete
+
+do-test:
+	@cd ${BUILD_WRKSRC} && \
+		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
 
 .include <bsd.port.mk>

Modified: head/devel/cereal/distinfo
==============================================================================
--- head/devel/cereal/distinfo	Sat Feb 13 23:00:46 2021	(r565185)
+++ head/devel/cereal/distinfo	Sat Feb 13 23:43:07 2021	(r565186)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1573867507
-SHA256 (USCiLab-cereal-v1.3.0_GH0.tar.gz) = 329ea3e3130b026c03a4acc50e168e7daff4e6e661bc6a7dfec0d77b570851d5
-SIZE (USCiLab-cereal-v1.3.0_GH0.tar.gz) = 374585
+TIMESTAMP = 1613257495
+SHA256 (USCiLab-cereal-v1.3.0-10-g64f50dbd_GH0.tar.gz) = 9e6cf92293168f2a1d0e33da4879d3c4fe3c81520718a1bc1d9295bc9e54e426
+SIZE (USCiLab-cereal-v1.3.0-10-g64f50dbd_GH0.tar.gz) = 376163

Added: head/devel/cereal/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/cereal/files/patch-CMakeLists.txt	Sat Feb 13 23:43:07 2021	(r565186)
@@ -0,0 +1,15 @@
+- Same change that is proposed here: https://github.com/USCiLab/cereal/issues/668
+- Otherwise sandbox is always built.
+
+--- CMakeLists.txt.orig	2020-11-17 20:50:06 UTC
++++ CMakeLists.txt
+@@ -115,6 +115,8 @@ if(BUILD_TESTS)
+     add_subdirectory(unittests)
+ endif()
+ 
+-add_subdirectory(sandbox)
++if(BUILD_SANDBOX)
++    add_subdirectory(sandbox)
++endif()
+ 
+ add_subdirectory(doc)

Modified: head/devel/cereal/pkg-plist
==============================================================================
--- head/devel/cereal/pkg-plist	Sat Feb 13 23:00:46 2021	(r565185)
+++ head/devel/cereal/pkg-plist	Sat Feb 13 23:43:07 2021	(r565186)
@@ -85,4 +85,6 @@ include/cereal/types/valarray.hpp
 include/cereal/types/variant.hpp
 include/cereal/types/vector.hpp
 include/cereal/version.hpp
-share/cmake/cereal/cereal-config.cmake
+lib/cmake/cereal/cerealConfig.cmake
+lib/cmake/cereal/cerealConfigVersion.cmake
+lib/cmake/cereal/cerealTargets.cmake



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