git: a36f5280a8e5 - main - math/gap: Fix install
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Feb 2022 20:17:03 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a36f5280a8e5bde7b267be78aaf7d6f92c1cc399
commit a36f5280a8e5bde7b267be78aaf7d6f92c1cc399
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-02-17 20:05:03 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-02-17 20:16:58 +0000
math/gap: Fix install
... that was accidentally broken by the previous commit.
---
math/gap/Makefile | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/math/gap/Makefile b/math/gap/Makefile
index 348ee66c3d7d..caf2e3ec1e92 100644
--- a/math/gap/Makefile
+++ b/math/gap/Makefile
@@ -77,21 +77,20 @@ post-build:
post-install:
# additional header
${INSTALL_DATA} ${WRKSRC}/gen/config.h ${STAGEDIR}${PREFIX}/include/gap
- # install gap binary and wrapper
+ # install gap binary
${INSTALL_PROGRAM} ${WRKSRC}/gap ${STAGEDIR}${PREFIX}/bin/gap-bin
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/gap ${STAGEDIR}${PREFIX}/bin
# strip
cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} bin/gap-bin lib/libgap.so.0.0.0
# install gac executable
${INSTALL_SCRIPT} ${WRKSRC}/gac ${STAGEDIR}${PREFIX}/bin/gac
- #
- ${SED} -e "s:${WRKSRC}:${GAP_LIBDIR}:" ${WRKSRC}/bin/gap.sh \
- > ${WRKSRC}/bin/gap
- ${SED} \
- -e "s:GAP_DIR=.*:GAP_DIR=${DATADIR}:" \
- -e "s:GAP_EXE=.*:GAP_EXE=${PREFIX}/bin/gap-bin:" \
- -e "/^exec/s:/gap::" ${WRKSRC}/bin/gap.sh \
- > ${WRKSRC}/bin/gap
+ # prepare and install wrapper
+ @${CAT} ${WRKSRC}/bin/gap.sh | ${SED} -e ' \
+ s:${WRKSRC}:${GAP_LIBDIR}:; \
+ s:GAP_DIR=.*:GAP_DIR=${DATADIR}:; \
+ s:GAP_EXE=.*:GAP_EXE=${PREFIX}/bin/gap-bin:; \
+ /^exec/s:/gap::; \
+ ' > ${WRKSRC}/bin/gap
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/gap ${STAGEDIR}${PREFIX}/bin
# install packages
${MKDIR} ${STAGEDIR}${DATADIR}/pkg
.for f in doc etc gen grp lib tst sysinfo.gap