Skip to content

Commit

Permalink
net/libsockpp: Update to 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter2121 authored and arrowd committed Dec 9, 2023
1 parent b907c5e commit 0232b1a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
31 changes: 27 additions & 4 deletions net/libsockpp/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= libsockpp
DISTVERSIONPREFIX= v
DISTVERSION= 0.8.1
DISTVERSION= 0.8.2
CATEGORIES= net devel

MAINTAINER= peter@flytrace.com
Expand All @@ -18,17 +18,40 @@ USE_GITHUB= yes
GH_ACCOUNT= fpagliughi
GH_PROJECT= sockpp

OPTIONS_DEFINE= TEST
OPTIONS_DEFINE= DOCS EXAMPLES STATIC TEST
OPTIONS_DEFAULT= EXAMPLES

TEST_DESC= Build unit tests (requires Catch2)
DOCS_DESC= Create and install the HTML based API documentation (requires Doxygen)
STATIC_DESC= Build the static library
EXAMPLES_DESC= Build example programs
TEST_DESC= Build the unit tests (requires Catch2)

STATIC_CMAKE_BOOL= SOCKPP_BUILD_STATIC
EXAMPLES_CMAKE_BOOL= SOCKPP_BUILD_EXAMPLES
TEST_BUILD_DEPENDS= catch2>0:devel/catch2
TEST_CMAKE_BOOL= SOCKPP_BUILD_TESTS

CMAKE_ARGS= -DSOCKPP_BUILD_STATIC=FALSE -DSOCKPP_BUILD_DOCUMENTATION=FALSE
OPTIONS_SUB= yes
EXAMPLES_TO_REMOVE= tcp6echo \
tcp6echosvr \
tcpecho \
tcpechomt \
tcpechosvr \
tcpechotest \
udp6echo \
udpecho \
udpechosvr \
undgramecho \
undgramechosvr \
unecho \
unechosvr \
unechotest

post-patch:
${REINPLACE_CMD} -e 's|#include "catch2/catch.hpp"|#include "catch2/catch_all.hpp"|' \
${WRKSRC}/tests/unit/*.cpp

post-install:
cd ${STAGEDIR}${PREFIX}/bin && ${RM} ${EXAMPLES_TO_REMOVE}

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions net/libsockpp/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1701641346
SHA256 (fpagliughi-sockpp-v0.8.1_GH0.tar.gz) = a8aedff8bd8c1da530b91be650352008fddabc9f1df0d19701d76cbc359c8651
SIZE (fpagliughi-sockpp-v0.8.1_GH0.tar.gz) = 114112
TIMESTAMP = 1701899962
SHA256 (fpagliughi-sockpp-v0.8.2_GH0.tar.gz) = cf012d6553d165976ad3f3108c332300b1f69b690a444a043883879c68e1966b
SIZE (fpagliughi-sockpp-v0.8.2_GH0.tar.gz) = 114258
3 changes: 2 additions & 1 deletion net/libsockpp/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ lib/cmake/sockpp/sockppConfig.cmake
lib/cmake/sockpp/sockppConfigVersion.cmake
lib/cmake/sockpp/sockppTargets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/sockpp/sockppTargets.cmake
%%STATIC%%lib/libsockpp.a
lib/libsockpp.so
lib/libsockpp.so.0
lib/libsockpp.so.0.8.1
lib/libsockpp.so.0.8.2

0 comments on commit 0232b1a

Please sign in to comment.