2012-12-12 12:12:54 +01:00
|
|
|
# Created by: keith@FreeBSD.org
|
2002-05-12 20:40:55 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gap
|
2013-03-21 19:25:04 +01:00
|
|
|
PORTVERSION= 4.6.3.${GAP_DISTDATE}
|
2002-05-12 20:40:55 +02:00
|
|
|
CATEGORIES= math
|
2013-02-10 10:17:48 +01:00
|
|
|
MASTER_SITES= ftp://ftp.gap-system.org/pub/gap/gap46/tar.bz2/ \
|
2005-09-04 08:06:30 +02:00
|
|
|
ftp://ftp.stack.nl/pub/users/johans/gap/ \
|
2013-02-10 10:17:48 +01:00
|
|
|
ftp://ftp.gap-system.org/pub/gap/gap46/old/
|
2012-06-16 20:32:54 +02:00
|
|
|
DISTNAME= ${GAP_VERSION}p${PORTVERSION:R:E}_${GAP_DISTTIME}
|
2002-05-12 20:40:55 +02:00
|
|
|
|
2010-02-23 19:07:14 +01:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= GAP is a system for computational discrete algebra
|
2002-05-12 20:40:55 +02:00
|
|
|
|
2012-06-16 20:32:54 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
ALL_TARGET= default
|
2006-04-07 16:04:18 +02:00
|
|
|
|
2012-06-16 20:32:54 +02:00
|
|
|
GAP_VERSION= ${PORTNAME}${PORTVERSION:R:R:S/./r/} # gap4r5
|
2013-03-21 19:25:04 +01:00
|
|
|
GAP_DISTTIME= 2013_03_18-17_40
|
2012-06-16 20:32:54 +02:00
|
|
|
GAP_DISTDATE= ${GAP_DISTTIME:C/-.*//:S/_//g}
|
2004-12-06 09:07:18 +01:00
|
|
|
GAP_LIBDIR= ${PREFIX}/lib/${GAP_VERSION}
|
2012-06-16 20:32:54 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${GAP_VERSION}
|
2005-02-15 09:52:48 +01:00
|
|
|
PLIST_FILES= bin/gap
|
2004-12-06 09:07:18 +01:00
|
|
|
|
2002-05-12 20:40:55 +02:00
|
|
|
do-install:
|
2012-06-16 20:32:54 +02:00
|
|
|
(${SED} -e "s:GAP_DIR=.*:GAP_DIR=${GAP_LIBDIR}:g" -e "s:GAP_PRG=.*:GAP_PRG=gap:g" ${WRKSRC}/bin/gap.sh > ${PREFIX}/bin/gap; \
|
2002-05-12 20:40:55 +02:00
|
|
|
${CHMOD} 755 ${PREFIX}/bin/gap; )
|
2004-12-06 09:07:18 +01:00
|
|
|
@${MKDIR} ${GAP_LIBDIR} ${GAP_LIBDIR}/bin
|
2012-06-16 20:32:54 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/*/gap ${GAP_LIBDIR}/bin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/bin/*/gac ${GAP_LIBDIR}/bin
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sysinfo.gap ${GAP_LIBDIR}
|
2002-05-12 20:40:55 +02:00
|
|
|
.for subdir in doc etc grp lib pkg prim small trans tst
|
2012-06-16 20:32:54 +02:00
|
|
|
@${CP} -R ${WRKSRC}/${subdir} ${GAP_LIBDIR}/
|
2002-05-12 20:40:55 +02:00
|
|
|
.endfor
|
|
|
|
|
2005-02-15 09:52:48 +01:00
|
|
|
post-install:
|
|
|
|
@${FIND} ${GAP_LIBDIR} -type d -empty -delete
|
|
|
|
@${FIND} ${GAP_LIBDIR} ! -type d | \
|
|
|
|
${SED} 's,${PREFIX}/,,' >> ${TMPPLIST}
|
|
|
|
@${FIND} ${GAP_LIBDIR} -type d -depth | \
|
|
|
|
${SED} 's,${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
|
|
|
|
2012-06-16 20:32:54 +02:00
|
|
|
.include <bsd.port.mk>
|