Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Nov 2017 18:55:30 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r454700 - in head/math/pari: . files
Message-ID:  <201711221855.vAMItU2I029404@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Nov 22 18:55:30 2017
New Revision: 454700
URL: https://svnweb.freebsd.org/changeset/ports/454700

Log:
  math/pari: Fixed install without threads; Removed MAKE_JOBS_UNSAFE; Added LICENSE_FILE
  
  PR:		222041
  Submitted by:	Anton Yuzhaninov <citrin+pr@citrin.ru>
  Approved by:	tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D13174

Deleted:
  head/math/pari/files/
Modified:
  head/math/pari/Makefile
  head/math/pari/pkg-plist

Modified: head/math/pari/Makefile
==============================================================================
--- head/math/pari/Makefile	Wed Nov 22 18:51:37 2017	(r454699)
+++ head/math/pari/Makefile	Wed Nov 22 18:55:30 2017	(r454700)
@@ -2,16 +2,18 @@
 # $FreeBSD$
 
 PORTNAME=	pari
-PORTVERSION=	2.9.3
+DISTVERSION=	2.9.3
+PORTREVISION=	1
 PORTEPOCH=	2
 CATEGORIES=	math
 MASTER_SITES=	http://pari.math.u-bordeaux.fr/pub/pari/unix/ \
 		http://mirrors.rit.edu/zi/
 
-MAINTAINER=	yuri@rawbw.com
+MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Mathematics library and advanced calculator package
 
 LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libgmp.so:math/gmp
 
@@ -24,7 +26,6 @@ CONFIGURE_ARGS=	--mandir=${MANPREFIX}/man/man1 \
 		--prefix=${PREFIX} \
 		--with-readline
 ALL_TARGET=	gp
-MAKE_JOBS_UNSAFE=	yes
 
 OPTIONS_DEFINE=		DOCS OPTIMIZED_CFLAGS X11
 OPTIONS_RADIO=		THREADS
@@ -49,14 +50,14 @@ MPI_CONFIGURE_ON=	--mt=mpi --with-gmp=${LOCALBASE}
 MPI_CONFIGURE_ENV=	CC=${LOCALBASE}/bin/mpicc
 OPTIONS_SUB=	yes
 
-PLIST_SUB=	GP_VERSION=${GP_VERSION} PORTVERSION=${PORTVERSION}
+PLIST_SUB=	GP_VERSION=${PORTVERSION:R} PORTVERSION=${PORTVERSION}
 PORTDATA=	*
 PORTDOCS=	*
 PORTEXAMPLES=	*
 
-GP_VERSION=	${PORTVERSION:R}
-
 post-patch:
+	@${REINPLACE_CMD} -E '/libpari_base\=/s/-tls|-gmp//' \
+		${WRKSRC}/Configure
 	@${REINPLACE_CMD} -e '/^CFLAGS=/s/\$$cflags//' \
 		${WRKSRC}/config/get_cc
 	@${REINPLACE_CMD} -e 's|-lX11|-L${LOCALBASE}/lib -lX11|' \
@@ -65,7 +66,7 @@ post-patch:
 		${WRKSRC}/config/get_readline
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpari-gmp*.so.*
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpari.so.${PORTVERSION}
 
 do-test-PTHREADS-on:
 	@cd ${WRKSRC} && ${MAKE_CMD} test-parallel

Modified: head/math/pari/pkg-plist
==============================================================================
--- head/math/pari/pkg-plist	Wed Nov 22 18:51:37 2017	(r454699)
+++ head/math/pari/pkg-plist	Wed Nov 22 18:55:30 2017	(r454700)
@@ -19,8 +19,8 @@ include/pari/paripriv.h
 include/pari/paristio.h
 include/pari/parisys.h
 include/pari/paritune.h
-lib/libpari-gmp.so.%%PORTVERSION%%
-lib/libpari-gmp.so.5
+lib/libpari.so.%%PORTVERSION%%
+lib/libpari.so.5
 lib/libpari.so
 lib/pari/pari.cfg
 man/man1/gp-%%GP_VERSION%%.1.gz



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