From 807a6e8588a77fd9384f59f23e3aaf448bd176f9 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sat, 22 May 2021 14:28:49 -0700 Subject: [PATCH] math/sympol: Fix more bogus directories in #includes in installed headers Reported by: Philipp-Joachim Ost (via e-mail) --- math/sympol/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/math/sympol/Makefile b/math/sympol/Makefile index 37a30fd167d4c..04bf6cbc57438 100644 --- a/math/sympol/Makefile +++ b/math/sympol/Makefile @@ -1,7 +1,7 @@ PORTNAME= sympol DISTVERSIONPREFIX= v DISTVERSION= 0.1.9 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org @@ -29,8 +29,10 @@ CMAKE_TESTING_ON= BUILD_TESTS # test 'perltest' fails with 'output format mismat post-install: @${RM} ${STAGEDIR}${PREFIX}/lib/libcddgmp.so - # remove subdirectory of logger.h, see https://github.com/tremlin/SymPol/issues/2 + # fix incorrect subdirectories in #include statements, see https://github.com/tremlin/SymPol/issues/2 @${REINPLACE_CMD} -i '' -e 's|#include "yal/|#include "|' ${STAGEDIR}${PREFIX}/include/sympol/*.h + @${REINPLACE_CMD} -i '' -e 's|#include "\.\./matrix/|#include "|' ${STAGEDIR}${PREFIX}/include/sympol/*.h + @${REINPLACE_CMD} -i '' -e 's|#include "\.\./|#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