Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2016 17:50:28 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r423876 - in head/math/superlu: . files
Message-ID:  <201610121750.u9CHoSeG000405@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Wed Oct 12 17:50:28 2016
New Revision: 423876
URL: https://svnweb.freebsd.org/changeset/ports/423876

Log:
  - Update to version 5.2.1 [1]
  - Add OPENBLAS option [1]
  - Simplify PLIST_SUB generation
  
  PR:		213352 [1]
  Submitted by:	dieterich@ogolem.org [1]

Added:
  head/math/superlu/files/
  head/math/superlu/files/patch-SRC_CMakeLists.txt   (contents, props changed)
Modified:
  head/math/superlu/Makefile
  head/math/superlu/distinfo

Modified: head/math/superlu/Makefile
==============================================================================
--- head/math/superlu/Makefile	Wed Oct 12 17:23:57 2016	(r423875)
+++ head/math/superlu/Makefile	Wed Oct 12 17:50:28 2016	(r423876)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	superlu
-PORTVERSION=	5.2.0
+PORTVERSION=	5.2.1
 CATEGORIES=	math
 MASTER_SITES=	http://crd-legacy.lbl.gov/~xiaoye/SuperLU/ \
 		http://crd-legacy.lbl.gov/~xiaoye/:doc
@@ -16,11 +16,10 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/License.txt
 
 USES=		cmake:outsource fortran
-
 USE_LDCONFIG=	yes
 
 WRKSRC=		${WRKDIR}/SuperLU_${PORTVERSION}
-PLIST_SUB=	P_VERSION="${P_VERSION}" P_VER="${P_VER}"
+PLIST_SUB=	P_VERSION="${PORTVERSION}" P_VER="${PORTVERSION:R:R}"
 
 CMAKE_ARGS=	-DUSE_XSDK_DEFAULTS:BOOL=ON \
 		-Denable_examples:BOOL=OFF
@@ -29,7 +28,7 @@ PORTDOCS=	*
 
 OPTIONS_DEFINE=		DOCS TEST
 OPTIONS_SINGLE=		BLAS
-OPTIONS_SINGLE_BLAS=	ATLAS GOTOBLAS REFERENCE
+OPTIONS_SINGLE_BLAS=	ATLAS GOTOBLAS OPENBLAS REFERENCE
 OPTIONS_DEFAULT=	REFERENCE
 
 ATLAS_USES=		blaslapack:atlas
@@ -40,13 +39,14 @@ DOCS_EXTRACT_ONLY=	${DISTNAME}${EXTRACT_
 GOTOBLAS_DESC=		GotoBLAS blas implementation
 GOTOBLAS_USES=		blaslapack:gotoblas
 GOTOBLAS_CMAKE_ARGS=	-DBLA_VENDOR:STRING="Goto"
+OPENBLAS_DESC=		OpenBLAS blas implementation
+OPENBLAS_USES=		blaslapack:openblas
+OPENBLAS_CMAKE_ARGS=	-DBLA_VENDOR:STRING="OpenBLAS"
 REFERENCE_DESC=		Reference blas implementation
 REFERENCE_USES=		blaslapack
 REFERENCE_CMAKE_ARGS=	-DBLA_VENDOR:STRING="Generic"
 TEST_CMAKE_ARGS=	-Denable_tests:BOOL=ON
 
-P_VERSION=	5.1.1
-P_VER=		${P_VERSION:C/^([[:alnum:]]+).*/\1/}
 SLU_DOCS=	SLU_general.ps.gz simax-29176.pdf
 
 post-patch:
@@ -54,8 +54,6 @@ post-patch:
 		'/CMAKE_C_FLAGS_RELEASE/s|^|#|' ${WRKSRC}/CMakeLists.txt
 	@${REINPLACE_CMD} -e \
 		'/FFLAGS/s|FATAL_ERROR|WARNING|' ${WRKSRC}/cmake/XSDKDefaults.cmake
-	@${REINPLACE_CMD} -e \
-		's|\(/include\)$$|\1/superlu|' ${WRKSRC}/SRC/CMakeLists.txt
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}

Modified: head/math/superlu/distinfo
==============================================================================
--- head/math/superlu/distinfo	Wed Oct 12 17:23:57 2016	(r423875)
+++ head/math/superlu/distinfo	Wed Oct 12 17:50:28 2016	(r423876)
@@ -1,5 +1,6 @@
-SHA256 (superlu/superlu_5.2.0.tar.gz) = 065bb8bfea79f5d3ec09c2d091ec79050fcfc123fb2f38818d95f4d8f9e7ff6c
-SIZE (superlu/superlu_5.2.0.tar.gz) = 2542410
+TIMESTAMP = 1476287508
+SHA256 (superlu/superlu_5.2.1.tar.gz) = 28fb66d6107ee66248d5cf508c79de03d0621852a0ddeba7301801d3d859f463
+SIZE (superlu/superlu_5.2.1.tar.gz) = 2560875
 SHA256 (superlu/SLU_general.ps.gz) = 00d00cedfadd96a42014d22b30c0cc451a575d8d309774519068b11d4be1ebe5
 SIZE (superlu/SLU_general.ps.gz) = 89463
 SHA256 (superlu/simax-29176.pdf) = 1411a3976b932a834157064dbaf0cdda10763f321bae10eb6f18925432250226

Added: head/math/superlu/files/patch-SRC_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/superlu/files/patch-SRC_CMakeLists.txt	Wed Oct 12 17:50:28 2016	(r423876)
@@ -0,0 +1,11 @@
+--- SRC/CMakeLists.txt.orig	2016-05-22 15:58:44 UTC
++++ SRC/CMakeLists.txt
+@@ -241,6 +241,6 @@ install(TARGETS superlu
+ )
+ 
+ install(FILES ${headers}
+-#  DESTINATION ${CMAKE_INSTALL_PREFIX}/include
+-  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
++  DESTINATION ${CMAKE_INSTALL_PREFIX}/include/superlu
++#  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ )



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