From nobody Fri Dec 2 23:59:53 2022 X-Original-To: dev-commits-ports-main@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 4NP90p1WT3z4jkL6; Fri, 2 Dec 2022 23:59:54 +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 4NP90p11BCz4cyD; Fri, 2 Dec 2022 23:59:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670025594; 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=s16nDAt/U4DmtZepgqmGoHc7fM6R+BxCQcY1RWwolMs=; b=HoLWdTnUvSwkOac072ScdZuLwbVZHGpJRiBgwM1sn92Ot5hElgOiN2Ih3IO1o4lKBz1X3Z U0ECQcFUQq/4qx6kSvQ6FApoC8hBEkYSAuRybgYIlIwfHHXpmwSsqNqt4Zx1de/p2m7h4W E3wBw83YE712Kx2QDom06vpIH+YYg9wmGQ3RGyuVJzjj4Xj6CyFVixe2IfPpkBUoTUTx0t /4+7KCXMhF+Er0/+uVAGq3sNIBVmzZ0KBpujY9fUDEuSZJVHW/HMzAarFEtZ6YbHCK8Xpm zQ/LF0jY92U1Vyeg92PlN7L+V1AHY65ygqCMEdF5ktSIWJyXvzM28c8YOWBkVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670025594; 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=s16nDAt/U4DmtZepgqmGoHc7fM6R+BxCQcY1RWwolMs=; b=rOp4chH8Vj5WPNG4JO18fjWPV3dVRNvJUS9Nln38MoQG4EUajOAL7ZkywDIfa4lw7v62Ny GfC3DxmdjdkTYGoWSOcXJxhCzxpLWivdkK/EoMkuiH78FuGTXEQ8a10kWMbXHXoPE8F/+U P8iqrxyFL7Mz+e18cEjStX1j1oQBYokqPsDv/mhJaYhCLr3hxosV35lzSjtgNWD9AwNo4i fRknF6xkpdQoI+tWnAcOzFlQf1X+Qrm3gM0rrVfyiuqZpyLk4yo7h229l16Z6QnbKcFSxn OyLaVp+53x2xgSBxgWZLwFKOis3aT8PiLxarROQKiUgA0rOt0eDT9TK0Mv5bAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670025594; a=rsa-sha256; cv=none; b=ZHL8ybUD8XOPropkHdC2Vb3N50qzHHKhOC+qzo4dq1gdLKXePF1bks4/0gGzWnbSnDk75K Z1VdiNuobGDgEn2PhMWTk+/QbrZP0HiNE9dAt8It76NbgQ5lLlXztD0GWWLdWLEOzSeFln U6RBdKnFVK/L4tS912hvZtP5ltucKp4GqE8gQkqGmR7JHGCg0rNbYJLZNpDFZY5FTqC03U fQzshpqU/2P5cQnOdzwFVttrwJ+6yYWCpWyodoeHjjKFfba9nd9TQrDb+bw0aO/08LOpdA wz/Fqwx4mG7SmPLz7l8H8WGxPeVNValSEKq0RXw1j78Ffs3qfFSyHBh/jQ3GKQ== 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 4NP90p03J4zZVN; Fri, 2 Dec 2022 23:59:54 +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 2B2Nxrgc032718; Fri, 2 Dec 2022 23:59:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B2Nxrl5032717; Fri, 2 Dec 2022 23:59:53 GMT (envelope-from git) Date: Fri, 2 Dec 2022 23:59:53 GMT Message-Id: <202212022359.2B2Nxrl5032717@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: 9ac3a7834593 - main - devel/trompeloeil: New port: Header only C++14 mocking framework List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: 9ac3a7834593aa3f2aaaeaace9de5c3922adcc0d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=9ac3a7834593aa3f2aaaeaace9de5c3922adcc0d commit 9ac3a7834593aa3f2aaaeaace9de5c3922adcc0d Author: Yuri Victorovich AuthorDate: 2022-12-02 15:44:59 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-02 15:44:59 +0000 devel/trompeloeil: New port: Header only C++14 mocking framework --- devel/Makefile | 1 + devel/trompeloeil/Makefile | 34 ++++++++++++++++++++++++++++ devel/trompeloeil/distinfo | 3 +++ devel/trompeloeil/files/patch-CMakeLists.txt | 20 ++++++++++++++++ devel/trompeloeil/pkg-descr | 1 + devel/trompeloeil/pkg-plist | 11 +++++++++ 6 files changed, 70 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 7facbcd4a0ed..fc2eab4043ff 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7392,6 +7392,7 @@ SUBDIR += treepy.el SUBDIR += trellis SUBDIR += trio + SUBDIR += trompeloeil SUBDIR += truc SUBDIR += tup SUBDIR += ua_parser-core diff --git a/devel/trompeloeil/Makefile b/devel/trompeloeil/Makefile new file mode 100644 index 000000000000..c0e279d15497 --- /dev/null +++ b/devel/trompeloeil/Makefile @@ -0,0 +1,34 @@ +PORTNAME= trompeloeil +DISTVERSIONPREFIX= v +DISTVERSION= 43 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Header only C++14 mocking framework +WWW= https://github.com/rollbear/trompeloeil + +LICENSE= BSL +LICENSE_FILE= ${WRKSRC}/LICENSE_1_0.txt + +TEST_DEPENDS= ${LOCALBASE}/include/catch2/catch.hpp:devel/catch \ + criterion>0:devel/criterion + +USES= cmake:testing # unclear how to run tests, see https://github.com/rollbear/trompeloeil/issues/287 + +USE_GITHUB= yes +GH_ACCOUNT= rollbear + +NO_BUILD= yes +NO_ARCH= yes + +OPTIONS_DEFINE= DOCS + +PORTDOCS= * + +post-install: + @cd ${STAGEDIR}${DOCSDIR} && \ + ${RM} LICENSE_1_0.txt && \ + ${MV} docs/* . && \ + ${RMDIR} docs + +.include diff --git a/devel/trompeloeil/distinfo b/devel/trompeloeil/distinfo new file mode 100644 index 000000000000..43669b84a7bc --- /dev/null +++ b/devel/trompeloeil/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1670024517 +SHA256 (rollbear-trompeloeil-v43_GH0.tar.gz) = 86a0afa2e97347202a0a883ab43da78c1d4bfff0d6cb93205cfc433d0d9eb9eb +SIZE (rollbear-trompeloeil-v43_GH0.tar.gz) = 305074 diff --git a/devel/trompeloeil/files/patch-CMakeLists.txt b/devel/trompeloeil/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..e5ec855cbecd --- /dev/null +++ b/devel/trompeloeil/files/patch-CMakeLists.txt @@ -0,0 +1,20 @@ +--- CMakeLists.txt.orig 2022-10-26 09:57:07 UTC ++++ CMakeLists.txt +@@ -37,7 +37,7 @@ endif() + option(TROMPELOEIL_INSTALL_TARGETS "Sets whether trompeloeil should be installed" ${MASTER_PROJECT}) + option(TROMPELOEIL_INSTALL_DOCS "Install documentation" ${TROMPELOEIL_INSTALL_TARGETS}) + +-if (MASTER_PROJECT AND CMAKE_BUILD_TYPE MATCHES Debug) ++if (BUILD_TESTING) + + if (${CXX_STANDARD}) + set(CMAKE_CXX_STANDARD ${CXX_STANDARD}) +@@ -47,7 +47,7 @@ if (MASTER_PROJECT AND CMAKE_BUILD_TYPE MATCHES Debug) + set(CMAKE_CXX_STANDARD_REQUIRED YES) + set(CMAKE_CXX_EXTENSIONS OFF) + +- set(CATCH_DIR ${CMAKE_CURRENT_BINARY_DIR}/catch) ++ set(CATCH_DIR ${CMAKE_INSTALL_PREFIX}/include/catch2) + if(NOT EXISTS ${CATCH_DIR}/catch.hpp) + if (NOT EXISTS ${CATCH_DIR}) + make_directory(${CATCH_DIR}) diff --git a/devel/trompeloeil/pkg-descr b/devel/trompeloeil/pkg-descr new file mode 100644 index 000000000000..6e9f18934be7 --- /dev/null +++ b/devel/trompeloeil/pkg-descr @@ -0,0 +1 @@ +trompeloeil is a thread-safe header-only mocking framework for C++11/14. diff --git a/devel/trompeloeil/pkg-plist b/devel/trompeloeil/pkg-plist new file mode 100644 index 000000000000..e3a298cb3b07 --- /dev/null +++ b/devel/trompeloeil/pkg-plist @@ -0,0 +1,11 @@ +include/boost/trompeloeil.hpp +include/catch2/trompeloeil.hpp +include/criterion/trompeloeil.hpp +include/crpcut/trompeloeil.hpp +include/cxxtest/trompeloeil.hpp +include/doctest/trompeloeil.hpp +include/gtest/trompeloeil.hpp +include/trompeloeil.hpp +lib/cmake/trompeloeil/trompeloeil-config-version.cmake +lib/cmake/trompeloeil/trompeloeil-config.cmake +lib/cmake/trompeloeil/trompeloeil-targets.cmake