From nobody Sun Jul 03 23:05:34 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7039F8B05E9; Sun, 3 Jul 2022 23:05:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lbl0G2TWqz4bdR; Sun, 3 Jul 2022 23:05:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656889534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cxXB+BiRncnsmTeTGBwLcwQFnUhe7yV2QEoTfFm5/fI=; b=v+RCnT9Rb7D1XFV9tH63bUFPL+iBjMCnCDGSXnL3Wq2IWGCubB9FDGtLB4FLe8h0lJLVV2 BtKLivpPAMKuwqu2jovPFBt4BzCt5qr0yaua+A9zNT9QFkv9qXQ8u3cMz9hn46XrbXcURl qCOG5PX3B8Dni3cgAlbiunnPSKleiWn8Y2+jCJp6HVOqWrQBdSimqrquWAZdYMSx7Qy02T JyQ3hmxRMcgDtJa1RCY6YXTSnEKqIolWr6gA9jZdOaAOM4XypaYUnP6olxb/SIlqoptOao XFAB+3l/uUN9MERxcmgYxNSqKxmP1BWErOVFWO1Mflo2kvfP6jQgiYobkaALSQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 318162D69F; Sun, 3 Jul 2022 23:05:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 263N5Y8q018357; Sun, 3 Jul 2022 23:05:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 263N5Y9P018356; Sun, 3 Jul 2022 23:05:34 GMT (envelope-from git) Date: Sun, 3 Jul 2022 23:05:34 GMT Message-Id: <202207032305.263N5Y9P018356@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: a5ee80bea3eb - main - devel/libcsptr: New port: Smart pointers for the (GNU) C programming language List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a5ee80bea3ebc16aa9875b0718a4ddd917a60a36 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656889534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cxXB+BiRncnsmTeTGBwLcwQFnUhe7yV2QEoTfFm5/fI=; b=DaTi4fWCxKGQ/mrzYiY9CkE81kDnvy26oT/tEeAsmoUAHBVNUxjL1xLLrf4Wpi+Plfcdtz 9y6e6zaVW9y89JwLu0biR6NCz4JEZiNl6qhcwmQsqsK08pDqXhdFAABXh/bmPXneDP6Ehm G00my9arBGfs/noJLBE08DxKBuHV8melYWN0XyifgM/zAVUNo8d+sRitfj9GrIV6jMtxGs RTlwJQkZs7f6s/Kpt26/ZBN6ZWmc+C+AtldPkEI2KcGXT/Z9TqKDf5NQlo/wN5RvrZ81YZ XWbOJpTnCfV408YnIb/+4k1HfbwpP6DSD0QBp1b6UcsGvK5KnVEfxv3QZniAuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656889534; a=rsa-sha256; cv=none; b=iYMriRIby9p70fF3E2LUhMyrhNhiC+jxbbNoypof9xz6ghfscwJFiectviLsvfg+5hNXu8 7Ke/AQ6kw8fMWu1nsZm3EzkhHjNOM20C91GXhXyr+ZbbY5lgdEP/CNEONGHOnAf6/3B0rV mVbH5SC+XbUcO+5jfavC/3jYJryeBph//2ID0O1lZA/S4FTL/Ve6Nvd9zE59xap5zflSlO 8E6QpScOVNRg0u4L37FQlP11FzrrylzNtD1FmJZwqmsPLXEb2sNGS5bezH4z9kk6gs+4Yw SwbWqBiiFD/dIBWaD/pBnKVVPULkdzwWO6WCoBQSsVQMdVGWagwPM9JHWGF/0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=a5ee80bea3ebc16aa9875b0718a4ddd917a60a36 commit a5ee80bea3ebc16aa9875b0718a4ddd917a60a36 Author: Yuri Victorovich AuthorDate: 2022-07-03 23:04:51 +0000 Commit: Yuri Victorovich CommitDate: 2022-07-03 23:04:51 +0000 devel/libcsptr: New port: Smart pointers for the (GNU) C programming language --- devel/Makefile | 1 + devel/libcsptr/Makefile | 24 ++++++++++++++++++++++++ devel/libcsptr/distinfo | 3 +++ devel/libcsptr/files/patch-CMakeLists.txt | 11 +++++++++++ devel/libcsptr/pkg-descr | 11 +++++++++++ devel/libcsptr/pkg-plist | 7 +++++++ 6 files changed, 57 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index dd52006d2766..9e27d35cca96 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1126,6 +1126,7 @@ SUBDIR += libconfuse SUBDIR += libcreg SUBDIR += libcrossguid + SUBDIR += libcsptr SUBDIR += libcuckoo SUBDIR += libcutl SUBDIR += libcwd diff --git a/devel/libcsptr/Makefile b/devel/libcsptr/Makefile new file mode 100644 index 000000000000..cddb05b14bf6 --- /dev/null +++ b/devel/libcsptr/Makefile @@ -0,0 +1,24 @@ +PORTNAME= libcsptr +DISTVERSIONPREFIX= v +DISTVERSION= 2.0.4-24 +DISTVERSIONSUFFIX= -gac73451 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Smart pointers for the (GNU) C programming language + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= check>0:devel/check + +USES= cmake:testing localbase +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= Snaipe + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_TESTING_ON= LIBCSPTR_TESTS # tests fail to compile, see https://github.com/Snaipe/libcsptr/issues/23 + +.include diff --git a/devel/libcsptr/distinfo b/devel/libcsptr/distinfo new file mode 100644 index 000000000000..ba28090a95a9 --- /dev/null +++ b/devel/libcsptr/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1656888806 +SHA256 (Snaipe-libcsptr-v2.0.4-24-gac73451_GH0.tar.gz) = 4c5a38c65219fc3013504d13e27b44da7c91a758252297041916abf14e744f1d +SIZE (Snaipe-libcsptr-v2.0.4-24-gac73451_GH0.tar.gz) = 32325 diff --git a/devel/libcsptr/files/patch-CMakeLists.txt b/devel/libcsptr/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..ef5f6d8ba688 --- /dev/null +++ b/devel/libcsptr/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-07-03 22:54:45 UTC ++++ CMakeLists.txt +@@ -72,7 +72,7 @@ if (NOT WIN32) + endif () + + include_directories(include/csptr src) +-add_library(csptr STATIC ${SOURCE_FILES} ${INTERFACE_FILES}) ++add_library(csptr ${SOURCE_FILES} ${INTERFACE_FILES}) + + if (COVERALLS AND NOT LIBCSPTR_DISABLE_COVERALLS) + coveralls_setup("${SOURCE_FILES}" ${COVERALLS_UPLOAD}) diff --git a/devel/libcsptr/pkg-descr b/devel/libcsptr/pkg-descr new file mode 100644 index 000000000000..3453f81bd861 --- /dev/null +++ b/devel/libcsptr/pkg-descr @@ -0,0 +1,11 @@ +libcsptr is an attempt to bring smart pointer constructs to the (GNU) +C programming language. + +Features: +* unique_ptr, shared_ptr macros, and smart type attribute +* Destructor support for cleanup +* Custom variable metadata on allocation +* Cross-platform: tested under linux 3.18.6-1, Mac OS X Yosemite + 10.10, and Windows 7 (with MinGW and the Cygwin port of GCC) + +WWW: https://github.com/Snaipe/libcsptr diff --git a/devel/libcsptr/pkg-plist b/devel/libcsptr/pkg-plist new file mode 100644 index 000000000000..e9171ac26cf6 --- /dev/null +++ b/devel/libcsptr/pkg-plist @@ -0,0 +1,7 @@ +include/csptr/array.h +include/csptr/common.h +include/csptr/config.h +include/csptr/smalloc.h +include/csptr/smart_ptr.h +lib/libcsptr.so +share/man/man3/csptr.3.gz