[Midnightbsd-cvs] mports [24555] trunk/math/gmp: update gmp to 6.1.2

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Oct 20 21:19:13 EDT 2018


Revision: 24555
          http://svnweb.midnightbsd.org/mports/?rev=24555
Author:   laffer1
Date:     2018-10-20 21:19:12 -0400 (Sat, 20 Oct 2018)
Log Message:
-----------
update gmp to 6.1.2

Modified Paths:
--------------
    trunk/math/gmp/Makefile
    trunk/math/gmp/distinfo
    trunk/math/gmp/pkg-descr
    trunk/math/gmp/pkg-plist

Added Paths:
-----------
    trunk/math/gmp/files/
    trunk/math/gmp/files/patch-configfsf.sub-spe
    trunk/math/gmp/files/patch-configure

Modified: trunk/math/gmp/Makefile
===================================================================
--- trunk/math/gmp/Makefile	2018-10-21 01:09:05 UTC (rev 24554)
+++ trunk/math/gmp/Makefile	2018-10-21 01:19:12 UTC (rev 24555)
@@ -1,11 +1,9 @@
 # $MidnightBSD$
 
 PORTNAME=	gmp
-PORTVERSION=	5.1.3
-PORTREVISION=	1
+PORTVERSION=	6.1.2
 CATEGORIES=	math devel
-MASTER_SITES=	${MASTER_SITE_GNU}
-MASTER_SITE_SUBDIR=	gmp
+MASTER_SITES=	GNU
 
 MAINTAINER=	ports at MidnightBSD.org
 COMMENT=	Free library for arbitrary precision arithmetic
@@ -12,41 +10,40 @@
 
 LICENSE=	lgpl3
 
-CONFLICTS=	libgmp-4.*
+OPTIONS_DEFINE=	CPU_OPTS
+CPU_OPTS_DESC=	Enable assembly optimizations for your CPU
 
-OPTIONS=	CPU_OPTS "Enable assembly optimizations for your CPU" off
-
-USES=		libtool:keepla makeinfo tar:xz
-GNU_CONFIGURE=	yes
+USES=		libtool makeinfo tar:xz
+HAS_CONFIGURE=	yes
 CONFIGURE_ENV=	MAKEINFO="makeinfo --no-split"
 CONFIGURE_ARGS=	--prefix=${PREFIX} \
 		--infodir=${PREFIX}/info \
 		--mandir=${PREFIX}/man \
 		--enable-cxx
+CONFIGURE_TARGET=	${ARCH}-portbld-freebsd10.4
+MAKE_JOBS_UNSAFE=yes
 USE_LDCONFIG=	yes
 
 INFO=		gmp
 
+INSTALL_TARGET=	install-strip
+TEST_TARGET=	check
+
 .include <bsd.port.pre.mk>
 
-CONFIGURE_ARGS+=--build=${ARCH}-portbld-freebsd9.0
-
-.if defined(WITH_CPU_OPTS)
-.if ${ARCH:S/64//} != ${ARCH}
+.if ! ${PORT_OPTIONS:MCPU_OPTS}
+CONFIGURE_ARGS+=--build=${CONFIGURE_TARGET}
+.elif ${ARCH:S/64//} != ${ARCH}
+.if ${ARCH} == powerpc64
+CONFIGURE_ENV+=	ABI="mode64"
+.else
 CONFIGURE_ENV+=	ABI="64"
+.endif
 .else
 CONFIGURE_ENV+=	ABI="32"
 .endif
-.endif
 
 post-extract:
-	@${RM} -f ${WRKSRC}/doc/gmp.info*
+	@${RM} ${WRKSRC}/doc/gmp.info*
 
-post-patch:
-	@${REINPLACE_CMD} "s/\(athlon64\-\*\-\*\)/amd64-*-* | \1/;s/\(x86_64)\)/amd64 | \1/" \
-		${WRKSRC}/configure
-
-regression-test check: build
-	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
-
 .include <bsd.port.post.mk>

Modified: trunk/math/gmp/distinfo
===================================================================
--- trunk/math/gmp/distinfo	2018-10-21 01:09:05 UTC (rev 24554)
+++ trunk/math/gmp/distinfo	2018-10-21 01:19:12 UTC (rev 24555)
@@ -1,2 +1,3 @@
-SHA256 (gmp-5.1.3.tar.xz) = dee2eda37f4ff541f30019932db0c37f6f77a30ba3609234933b1818f9b07071
-SIZE (gmp-5.1.3.tar.xz) = 1818812
+TIMESTAMP = 1487005782
+SHA256 (gmp-6.1.2.tar.xz) = 87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912
+SIZE (gmp-6.1.2.tar.xz) = 1946336

Added: trunk/math/gmp/files/patch-configfsf.sub-spe
===================================================================
--- trunk/math/gmp/files/patch-configfsf.sub-spe	                        (rev 0)
+++ trunk/math/gmp/files/patch-configfsf.sub-spe	2018-10-21 01:19:12 UTC (rev 24555)
@@ -0,0 +1,20 @@
+--- configfsf.sub.bak	2017-04-04 10:18:23.262820000 -0500
++++ configfsf.sub	2017-04-04 10:18:41.467015000 -0500
+@@ -301,7 +301,7 @@
+ 	| ns16k | ns32k \
+ 	| open8 | or1k | or1knd | or32 \
+ 	| pdp10 | pdp11 | pj | pjl \
+-	| powerpc | powerpc64 | powerpc64le | powerpcle \
++	| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
+ 	| pyramid \
+ 	| riscv32 | riscv64 \
+ 	| rl78 | rx \
+@@ -428,7 +428,7 @@
+ 	| or1k*-* \
+ 	| orion-* \
+ 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
++	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | powerpcspe-* \
+ 	| pyramid-* \
+ 	| riscv32-* | riscv64-* \
+ 	| rl78-* | romp-* | rs6000-* | rx-* \


Property changes on: trunk/math/gmp/files/patch-configfsf.sub-spe
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/math/gmp/files/patch-configure
===================================================================
--- trunk/math/gmp/files/patch-configure	                        (rev 0)
+++ trunk/math/gmp/files/patch-configure	2018-10-21 01:19:12 UTC (rev 24555)
@@ -0,0 +1,20 @@
+--- configure.orig	2016-12-16 15:45:32 UTC
++++ configure
+@@ -6776,7 +6776,7 @@ main ()
+   long i;
+   for (i = 0; i < 88 + 1; i++)
+     a[i] = ~0L;
+-  r = malloc (10000 * sizeof (unsigned long));
++  r = calloc (10000, sizeof(unsigned long));
+   r2 = r;
+   for (i = 0; i < 528; i += 23)
+     {
+@@ -8394,7 +8394,7 @@ main ()
+   long i;
+   for (i = 0; i < 88 + 1; i++)
+     a[i] = ~0L;
+-  r = malloc (10000 * sizeof (unsigned long));
++  r = calloc (10000, sizeof(unsigned long));
+   r2 = r;
+   for (i = 0; i < 528; i += 23)
+     {


Property changes on: trunk/math/gmp/files/patch-configure
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/math/gmp/pkg-descr
===================================================================
--- trunk/math/gmp/pkg-descr	2018-10-21 01:09:05 UTC (rev 24554)
+++ trunk/math/gmp/pkg-descr	2018-10-21 01:19:12 UTC (rev 24555)
@@ -2,7 +2,7 @@
 on signed integers, rational numbers, and floating point numbers.
 There is no limit to the precision except the ones implied by the
 available memory in the machine GMP runs on. GMP has a rich set of
-functions, and the functions have a regular interface. 
+functions, and the functions have a regular interface.
 
 GMP is designed to be as fast as possible, both for small operands
 and for huge operands. The speed is achieved by using fullwords as
@@ -9,11 +9,11 @@
 the basic arithmetic type, by using fast algorithms, with carefully
 optimized assembly code for the most common inner loops for a lot of
 CPUs, and by a general emphasis on speed (instead of simplicity or
-elegance). 
+elegance).
 
 GMP is believed to be faster than any other similar library. The
 advantage for GMP increases with the operand sizes for certain
 operations, since GMP in many cases has asymptotically faster
-algorithms. 
+algorithms.
 
-WWW: http://gmplib.org/
+WWW: https://gmplib.org/

Modified: trunk/math/gmp/pkg-plist
===================================================================
--- trunk/math/gmp/pkg-plist	2018-10-21 01:09:05 UTC (rev 24554)
+++ trunk/math/gmp/pkg-plist	2018-10-21 01:19:12 UTC (rev 24555)
@@ -1,12 +1,10 @@
 include/gmp.h
 include/gmpxx.h
 lib/libgmp.a
-lib/libgmp.la
 lib/libgmp.so
 lib/libgmp.so.10
-lib/libgmp.so.10.1.3
+lib/libgmp.so.10.3.2
 lib/libgmpxx.a
-lib/libgmpxx.la
 lib/libgmpxx.so
 lib/libgmpxx.so.4
-lib/libgmpxx.so.4.3.3
+lib/libgmpxx.so.4.5.2



More information about the Midnightbsd-cvs mailing list