From nobody Sat Jul 22 17:37:43 2023 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 4R7YXl5cDGz4pMM1; Sat, 22 Jul 2023 17:37:43 +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 4R7YXl4t5jz4Pv6; Sat, 22 Jul 2023 17:37:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690047463; 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=sRTiykdehjaaq7Dr3rD9GJlXJ8jlzU1H1BzehwftFbI=; b=alM2LBcXCkcapt+9w0GwjmMpOyPDu01aXxKzbFqqLyHss9A/dp9V8pSDmhT3vPqSBxR+F4 sCU/gpN+3XCL1bgQ7zDomOp67W4OZWVNxyTqngUaF/HD6DygRRbok8FkhHCWp8eeRYkmdR NBVYRQL7wUbp3yTMzax6TVyzR44Apv3WVr7pTW6EC2ST/UEOMCTMZpTYkEgB82vjXzwSAu 2GRyox9ANYi7L8wVnTka6xop1X+4e8yl704SJzswZTcHNyw4OXJAtfW6cK43EYpnddQnXn sCb2l9e2y+5Ln12lQ4TEabvEb6eUGF+a/DPibtEaHC8CnxUgsOUGME1Pr4abBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690047463; 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=sRTiykdehjaaq7Dr3rD9GJlXJ8jlzU1H1BzehwftFbI=; b=FJSlbtBc78B6gI0MtkfJ1OP5qMuAQfrW/EXaEBEwmonknHBp8A5Elgm89G5sY4VGV7fxx+ Z2xnzYGtPowOyZPlr7YRVyjOV+nEul+D9xETAuYtwpVYhh+fIdQ1ibDoSnykToAnR6x6pF ZBOd/YTpXzsjr8wZWRKgElu/zt8/F6XSNsbekDekDngMQA4IOZ/FTWwdNvfnB7bffcY/HB f4iowTlNxeCdntFyCz2kqdldKUG1JERoVUV/HtXbeSK9igTfIa3qGjaFkDEeliNT4C9X0J cGI1fN+YkR/8DI2z3iw1MkJbF5MyjojyRiphJy0482s8x/jvUNcPAWIwc9XA5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690047463; a=rsa-sha256; cv=none; b=mfVS7wdOIbyceo9YlLcF14Jxghx0r34nlxhs+GLI9o9a3l6UGXaJzqXPjTb7FCIA9PzIvv DQMXzZi5HEJYmTHiU48hWvhyFAyB5vNTuo1fySo6gGbQLYae+yllyty74DYYhbgAhusueI ZjD3j/BFlDfH9pRiiShFH4aO5TQFA+ROFJj029R2gm/RA0wQi6KrCt3LOkQh4DIDR9jHgb o4g13DB7Wv0boPtoYpQDFfsXzIXH7xSK97xMgN6ytLsswiFVItCI2iQoabLYDTP3exeV6+ vV+BJ+B3OT/oGCROKpS7+2e0pkr9LejzKvszoGmvFowE4VRoSVZILRQUmUWFWA== 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 4R7YXl3sqKz13tx; Sat, 22 Jul 2023 17:37:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36MHbhkS093233; Sat, 22 Jul 2023 17:37:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36MHbhTF093232; Sat, 22 Jul 2023 17:37:43 GMT (envelope-from git) Date: Sat, 22 Jul 2023 17:37:43 GMT Message-Id: <202307221737.36MHbhTF093232@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Andree Subject: git: 408432c44035 - main - devel/cxxtest: support self-tests and add py-ply to depends 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: mandree X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 408432c44035b0350dd1ddf0ebe6639e11582f27 Auto-Submitted: auto-generated The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=408432c44035b0350dd1ddf0ebe6639e11582f27 commit 408432c44035b0350dd1ddf0ebe6639e11582f27 Author: Matthias Andree AuthorDate: 2023-07-22 17:34:37 +0000 Commit: Matthias Andree CommitDate: 2023-07-22 17:35:44 +0000 devel/cxxtest: support self-tests and add py-ply to depends --- devel/cxxtest/Makefile | 18 ++++++++++++++++-- devel/cxxtest/files/patch-remove--Werror | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/devel/cxxtest/Makefile b/devel/cxxtest/Makefile index 648fb2d87279..0a15ba484717 100644 --- a/devel/cxxtest/Makefile +++ b/devel/cxxtest/Makefile @@ -1,6 +1,6 @@ PORTNAME= cxxtest PORTVERSION= 4.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= SF:DEFAULT \ https://github.com/CxxTest/cxxtest.github.com/raw/8505a9c37bdf17d9167f0b946c82ccb032d3cd4c/:docs @@ -16,9 +16,13 @@ WWW= https://github.com/CxxTest/cxxtest LICENSE= LGPL3+ -USES= gmake python:run +USES= gmake python + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=0:devel/py-ply@${PY_FLAVOR} +BUILD_DEPENDS= ${RUN_DEPENDS} USE_PYTHON= autoplist distutils noflavors +BINARY_ALIAS= c++=${CXX} cl=${FALSE} clang++=${FALSE} g++=${FALSE} NO_ARCH= yes WRKSRC_SUBDIR= python @@ -44,4 +48,14 @@ post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ( cd ${WRKSRC}/../sample/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} ) +do-test: + ( set -x \ + && cd ${WRKSRC}/../test \ + && ${RM} -R test_cxxtest \ + && ${PYTHON_CMD} -m venv test_cxxtest --system-site-packages --without-pip \ + && . test_cxxtest/bin/activate \ + && ( cd ../python && ${PYTHON_CMD} setup.py install --prefix "$$VIRTUAL_ENV" ) \ + && ${SETENV} "PATH=${PATH}" ${PYTHON_CMD} test_cxxtest.py --verbose \ + ) + .include diff --git a/devel/cxxtest/files/patch-remove--Werror b/devel/cxxtest/files/patch-remove--Werror new file mode 100644 index 000000000000..9bffb04bae5c --- /dev/null +++ b/devel/cxxtest/files/patch-remove--Werror @@ -0,0 +1,21 @@ +diff -up work/cxxtest-4.4/test/test_cxxtest.py.orig work/cxxtest-4.4/test/test_cxxtest.py +--- ../test/test_cxxtest.py.orig 2014-06-04 05:57:07.000000000 +0200 ++++ ../test/test_cxxtest.py 2023-07-22 17:40:33.232336000 +0200 +@@ -749,7 +749,7 @@ class TestCpp(BaseTestCase, unittest.TestCase): + # Compiler specifics + exe_option = '-o' + include_option = '-I' +- compiler='c++ -Wall -W -Werror -g' ++ compiler='c++ -Wall -W -g' + no_eh_option = None + qtFlags='-Ifake' + x11Flags='-Ifake' +@@ -780,7 +780,7 @@ class TestGpp(BaseTestCase, unittest.TestCase): + # Compiler specifics + exe_option = '-o' + include_option = '-I' +- compiler='g++ -g -ansi -pedantic -Wmissing-declarations -Werror -Wall -W -Wshadow -Woverloaded-virtual -Wnon-virtual-dtor -Wreorder -Wsign-promo %s' % os.environ.get('CXXTEST_GCOV_FLAGS','') ++ compiler='g++ -g -ansi -pedantic -Wmissing-declarations -Wall -W -Wshadow -Woverloaded-virtual -Wnon-virtual-dtor -Wreorder -Wsign-promo %s' % os.environ.get('CXXTEST_GCOV_FLAGS','') + no_eh_option = '-fno-exceptions' + qtFlags='-Ifake' + x11Flags='-Ifake'