From owner-dev-commits-ports-all@freebsd.org Sat May 22 18:34:31 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D12F9634C97; Sat, 22 May 2021 18:34:31 +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 4FnXFM5cgjz4bpJ; Sat, 22 May 2021 18:34:31 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 A9AF81251; Sat, 22 May 2021 18:34:31 +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 14MIYVhU019635; Sat, 22 May 2021 18:34:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14MIYVXg019634; Sat, 22 May 2021 18:34:31 GMT (envelope-from git) Date: Sat, 22 May 2021 18:34:31 GMT Message-Id: <202105221834.14MIYVXg019634@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: 1b12104e16a9 - main - math/sympol: Fix paths in installed headers; Add test target 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: 1b12104e16a9da5afeab276a526726c5b1ac2044 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 18:34:31 -0000 The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=1b12104e16a9da5afeab276a526726c5b1ac2044 commit 1b12104e16a9da5afeab276a526726c5b1ac2044 Author: Yuri Victorovich AuthorDate: 2021-05-22 18:30:55 +0000 Commit: Yuri Victorovich CommitDate: 2021-05-22 18:34:29 +0000 math/sympol: Fix paths in installed headers; Add test target Project installs headers that include its own headers as if they are installed into a subdirectory when they are really installed without a subdirectory. Reported by: Philipp-Joachim Ost (via e-mail) --- math/sympol/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/math/sympol/Makefile b/math/sympol/Makefile index bce16d7296c6..37a30fd167d4 100644 --- a/math/sympol/Makefile +++ b/math/sympol/Makefile @@ -1,6 +1,7 @@ PORTNAME= sympol DISTVERSIONPREFIX= v DISTVERSION= 0.1.9 +PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org @@ -14,14 +15,24 @@ LIB_DEPENDS= libboost_program_options.so:devel/boost-libs \ libcddgmp.so:math/cddlib \ libgmp.so:math/gmp -USES= cmake compiler:c++11-lang eigen:3 localbase:ldflags +USES= cmake:testing compiler:c++11-lang eigen:3 localbase:ldflags perl5 shebangfix +USE_PERL5= test USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= tremlin GH_PROJECT= SymPol +SHEBANG_GLOB= *.pl + +CMAKE_TESTING_ON= BUILD_TESTS # test 'perltest' fails with 'output format mismatch', see https://github.com/tremlin/SymPol/issues/1 + post-install: @${RM} ${STAGEDIR}${PREFIX}/lib/libcddgmp.so + # remove subdirectory of logger.h, see https://github.com/tremlin/SymPol/issues/2 + @${REINPLACE_CMD} -i '' -e 's|#include "yal/|#include "|' ${STAGEDIR}${PREFIX}/include/sympol/*.h + +pre-test: # correct the build directory path + @${REINPLACE_CMD} -e "s|'\\.\\./build/release'|'${BUILD_WRKSRC}'|" ${WRKSRC}/contrib/test-sympol.pl .include