mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
math/gap: Simplify Makefile by using project's install target
... which wasn't previously fully used.
This commit is contained in:
parent
a36df72793
commit
bdf1cb0667
@ -1,8 +1,12 @@
|
||||
PORTNAME= gap
|
||||
DISTVERSION= 4.12.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= https://github.com/gap-system/gap/releases/download/v${DISTVERSION}/
|
||||
|
||||
PATCH_SITES= https://github.com/gap-system/gap/commit/
|
||||
PATCHFILES= adc76841750e3b0d39edf1315b5258bae119a928.diff:-p1 # Don't attempt to install the 'dev' manual, see https://github.com/gap-system/gap/pull/5091
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= System for computational discrete algebra
|
||||
WWW= https://www.gap-system.org/
|
||||
@ -17,14 +21,13 @@ LIB_DEPENDS= libgmp.so:math/gmp
|
||||
|
||||
USES= gmake libtool localbase perl5 readline shebangfix
|
||||
USE_PERL5= run
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
SHEBANG_FILES= .
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
MAKEFILE= GNUmakefile
|
||||
ALL_TARGET= all
|
||||
INSTALL_TARGET= install-headers install-libgap
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
ACLOCVER= 1.16 # Truncated version of aclocal / automake
|
||||
|
||||
@ -48,37 +51,8 @@ post-build:
|
||||
${RM} bistellar
|
||||
|
||||
post-install:
|
||||
# install gap binary
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/gap ${STAGEDIR}${PREFIX}/bin/gap-bin
|
||||
## install gac executable - GAC is disabled since the project can't install it properly
|
||||
#${INSTALL_SCRIPT} ${WRKSRC}/gac ${STAGEDIR}${PREFIX}/bin/gac
|
||||
#${REINPLACE_CMD} -i '' -e 's|^\. "${WRKSRC}/sysinfo.gap"|. "${DATADIR}/sysinfo.gap"|' ${STAGEDIR}${PREFIX}/bin/gac
|
||||
# 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
|
||||
## min-builddir
|
||||
#${MKDIR} ${STAGEDIR}${DATADIR}/min-builddir
|
||||
#${INSTALL_SCRIPT} ${WRKSRC}/libtool ${STAGEDIR}${DATADIR}/min-builddir
|
||||
#${RLN} ${STAGEDIR}${PREFIX}/bin/gap ${STAGEDIR}${DATADIR}/min-builddir/gap
|
||||
#cd ${WRKSRC}/build && ${COPYTREE_SHARE} obj ${STAGEDIR}${DATADIR}/min-builddir/
|
||||
# install files/directories
|
||||
.for f in doc etc grp lib tst sysinfo.gap
|
||||
${CP} -R ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}/
|
||||
.endfor
|
||||
# install packages
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} pkg ${STAGEDIR}${DATADIR}
|
||||
# correct paths in sysinfo.gap
|
||||
${REINPLACE_CMD} -i '' -e ' \
|
||||
s|^GAP=.*|GAP="${PREFIX}/bin/gap"|; \
|
||||
s|^GAC=.*|GAP="${PREFIX}/bin/gac"|; \
|
||||
s|^GAP_CXXFLAGS=.*|GAP_CXXFLAGS="-I"|; \
|
||||
s| -isystem ${PREFIX}/include |&-I${PREFIX}/include/gap |; \
|
||||
' ${STAGEDIR}${DATADIR}/sysinfo.gap
|
||||
# remove redundant files
|
||||
${RM} ${STAGEDIR}${DATADIR}/pkg/patternclass/lib/.DS_Store
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
TIMESTAMP = 1665031339
|
||||
TIMESTAMP = 1665179858
|
||||
SHA256 (gap-4.12.0.tar.gz) = 6005d0c0316fe8803d84681f30be64eace83a9542f975f5cb3dedfadd4391849
|
||||
SIZE (gap-4.12.0.tar.gz) = 505913244
|
||||
SHA256 (adc76841750e3b0d39edf1315b5258bae119a928.diff) = 1bd89ecb3a3914d5092a531b1430aaa80c9abdab08a7bd38723bcb29f0f9d499
|
||||
SIZE (adc76841750e3b0d39edf1315b5258bae119a928.diff) = 652
|
||||
|
1945
math/gap/pkg-plist
1945
math/gap/pkg-plist
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user