1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Fix shebangs

- Drop @dirrm* from plist

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-07-31 15:28:40 +00:00
parent 83cb8fb168
commit 18a9fc2f32
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393329

View File

@ -3,6 +3,7 @@
PORTNAME= gap
PORTVERSION= 4.7.8.${GAP_DISTDATE}
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ftp://ftp.gap-system.org/pub/gap/gap47/tar.bz2/ \
ftp://ftp.stack.nl/pub/users/johans/gap/ \
@ -14,7 +15,29 @@ COMMENT= GAP is a system for computational discrete algebra
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
USES= gmake tar:bzip2
USES= gmake shebangfix tar:bzip2
SHEBANG_FILES= configure \
pkg/GAPDoc-1.5.1/3k+1/clean \
pkg/GAPDoc-1.5.1/doc/clean \
pkg/GAPDoc-1.5.1/example/clean \
pkg/PolymakeInterface/configure \
pkg/SymbCompCC-1.2/doc/convert.pl \
pkg/anupq-3.1.1/tst/make_anupqeg \
pkg/crime/gap/print.pl \
pkg/cubefree/doc/convert.pl \
pkg/fr-2.2.1/cnf/config.status \
pkg/hecke/doc/clean \
pkg/io-4.4.4/doc/clean \
pkg/liepring/doc/convert.pl \
pkg/nilmat/doc/convert.pl \
pkg/orb-4.7.3/doc/clean \
pkg/pargap/mpinu/thwap \
pkg/recog-1.2.3/doc/clean \
pkg/recogbase-1.2.3/doc/clean \
pkg/sglppow/doc/convert.pl \
pkg/sonata/doc/convert.pl \
pkg/unipot-1.2/doc/convert.pl
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-gmp=${LOCALBASE}
ALL_TARGET= default
@ -28,6 +51,9 @@ GAP_LIBDIR= ${PREFIX}/lib/${GAP_VERSION}
WRKSRC= ${WRKDIR}/${GAP_VERSION}
PLIST_FILES= bin/gap
post-patch:
@${REINPLACE_CMD} -i '' -e '1s|/usr/bin/sh|/bin/sh|' ${WRKSRC}/pkg/happrime/make_tarball
do-install:
${SED} -e "s:GAP_DIR=.*:GAP_DIR=${GAP_LIBDIR}:g" \
-e "s:GAP_PRG=.*:GAP_PRG=gap:g" ${WRKSRC}/bin/gap.sh \
@ -45,7 +71,5 @@ post-install:
@${FIND} ${STAGEDIR}${GAP_LIBDIR} -type d -empty -delete
@${FIND} ${STAGEDIR}${GAP_LIBDIR} ! -type d | \
${SED} 's,${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${GAP_LIBDIR} -type d -depth | \
${SED} 's,${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.include <bsd.port.mk>