aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-05-22 21:28:49 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-05-22 21:30:20 +0000
commit807a6e8588a77fd9384f59f23e3aaf448bd176f9 (patch)
tree214677086b76ce3193cc1c2b19a6bdc69304a8d3
parentf7111cff77781ba0c3b8458bda73724668e76c6c (diff)
math/sympol: Fix more bogus directories in #includes in installed headers
Reported by: Philipp-Joachim Ost <philipp@philippost.de> (via e-mail)
-rw-r--r--math/sympol/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/math/sympol/Makefile b/math/sympol/Makefile
index 37a30fd167d4..04bf6cbc5743 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