Skip to content

Commit

Permalink
math/sympol: Fix more bogus directories in #includes in installed hea…
Browse files Browse the repository at this point in the history
…ders

Reported by:	Philipp-Joachim Ost <philipp@philippost.de> (via e-mail)
  • Loading branch information
yurivict committed May 22, 2021
1 parent f7111cf commit 807a6e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 807a6e8

Please sign in to comment.