Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2016 12:02:56 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r429969 - in head/math/gap: . files
Message-ID:  <201612301202.uBUC2u6k067981@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Fri Dec 30 12:02:56 2016
New Revision: 429969
URL: https://svnweb.freebsd.org/changeset/ports/429969

Log:
  - Add LICENSE.
  - Strip installed binaries.
  - Build "bistellar" binary.

Added:
  head/math/gap/files/
  head/math/gap/files/patch-pkg-simpcomp-configure   (contents, props changed)
Modified:
  head/math/gap/Makefile

Modified: head/math/gap/Makefile
==============================================================================
--- head/math/gap/Makefile	Fri Dec 30 11:56:23 2016	(r429968)
+++ head/math/gap/Makefile	Fri Dec 30 12:02:56 2016	(r429969)
@@ -3,15 +3,18 @@
 
 PORTNAME=	gap
 PORTVERSION=	4.8.6.${GAP_DISTDATE}
+PORTREVISION=	1
 CATEGORIES=	math
 MASTER_SITES=	ftp://ftp.gap-system.org/pub/gap/gap48/tar.bz2/ \
 		ftp://ftp.stack.nl/pub/users/johans/gap/ \
 		ftp://ftp.gap-system.org/pub/gap/gap48/old/
 DISTNAME=	${GAP_VERSION}p${PORTVERSION:R:E}_${GAP_DISTTIME}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	hrs@FreeBSD.org
 COMMENT=	GAP is a system for computational discrete algebra
 
+LICENSE=	GPLv2+
+
 LIB_DEPENDS=	libgmp.so:math/gmp
 
 USES=		gmake shebangfix tar:bzip2
@@ -28,6 +31,7 @@ SHEBANG_FILES=	configure \
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=--with-gmp=${LOCALBASE}
 ALL_TARGET=	default
+INSTALL_TARGET=	install-strip
 
 MAKE_JOBS_UNSAFE=yes
 
@@ -41,7 +45,16 @@ PLIST_FILES=	bin/gap
 BROKEN_aarch64=		Fails to link: undefined reference to SyAllocBags
 
 post-patch:
-	@${REINPLACE_CMD} -i '' -e '1s|/usr/bin/sh|/bin/sh|' ${WRKSRC}/pkg/happrime/make_tarball
+	@${REINPLACE_CMD} -i '' -e '1s|/usr/bin/sh|/bin/sh|' \
+	    ${WRKSRC}/pkg/happrime/make_tarball
+
+post-build:
+	cd ${WRKSRC}/pkg/simpcomp && \
+	    ${SETENV} ${CONFIGURE_ENV} ${SH} configure \
+		${CONFIGURE_ARGS:N--with-*} && \
+	    ${MAKE} ${MAKEFLAGS} && \
+	    ${MAKE} ${MAKEFLAGS} install-strip && \
+	    ${RM} bistellar
 
 do-install:
 	${SED} -e "s:GAP_DIR=.*:GAP_DIR=${GAP_LIBDIR}:g" \

Added: head/math/gap/files/patch-pkg-simpcomp-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/gap/files/patch-pkg-simpcomp-configure	Fri Dec 30 12:02:56 2016	(r429969)
@@ -0,0 +1,29 @@
+--- pkg/simpcomp/configure.orig	2016-11-12 14:25:17 UTC
++++ pkg/simpcomp/configure
+@@ -2235,7 +2235,7 @@ if test -z "$CXX"; then
+     CXX=$CCC
+   else
+     if test -n "$ac_tool_prefix"; then
+-  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
++  for ac_prog in c++ g++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
+   do
+     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+ set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+@@ -2279,7 +2279,7 @@ fi
+ fi
+ if test -z "$CXX"; then
+   ac_ct_CXX=$CXX
+-  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
++  for ac_prog in c++ g++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
+ do
+   # Extract the first word of "$ac_prog", so it can be a program name with args.
+ set dummy $ac_prog; ac_word=$2
+@@ -2322,7 +2322,7 @@ fi
+ done
+ 
+   if test "x$ac_ct_CXX" = x; then
+-    CXX="g++"
++    CXX="c++"
+   else
+     case $cross_compiling:$ac_tool_warned in
+ yes:)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612301202.uBUC2u6k067981>