Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2016 16:19:56 +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: r420410 - in head/math: arpack-ng arpack-ng-mpich
Message-ID:  <201608181619.u7IGJulU052264@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Aug 18 16:19:56 2016
New Revision: 420410
URL: https://svnweb.freebsd.org/changeset/ports/420410

Log:
  - Update to version 3.4.0, now hosted on GitHub [1]
  - Add EXAMPLES option [1]
  - Fix COMMENT declaration, use ?= so that slave can overide it
  - Add LICENSE_FILE
  - Convert to options helpers, test framework
  - Remove MPI option and move it's all functionality to slave port
    This allows removal of setting PKGNAMESUFFIX in master port depending
    on options selected which is deprecated. Move LIB_DEPENDS on mpich2
    to slave, declare CONFLICTS_INSTALL, MPICH_ARG in such way that can
    be overidden by the slave.
  
  PR:		211454 [1]
  Submitted by:	Iblis Lin [1]

Modified:
  head/math/arpack-ng-mpich/Makefile
  head/math/arpack-ng/Makefile
  head/math/arpack-ng/distinfo
  head/math/arpack-ng/pkg-plist

Modified: head/math/arpack-ng-mpich/Makefile
==============================================================================
--- head/math/arpack-ng-mpich/Makefile	Thu Aug 18 15:39:55 2016	(r420409)
+++ head/math/arpack-ng-mpich/Makefile	Thu Aug 18 16:19:56 2016	(r420410)
@@ -2,11 +2,20 @@
 # $FreeBSD$
 
 PORTNAME=	arpack-ng
+PKGNAMESUFFIX=	-mpich
 
 COMMENT=	Revised Argand library for solving large-scale eigenvalue problems with MPI support
 
+LIB_DEPENDS+=	libmpich.so.8:net/mpich2
+
 MASTERDIR=	${.CURDIR}/../../math/arpack-ng
 
-OPTIONS_DEFAULT+=	MPI
+MPICH_ARG=	--enable-mpi
+CONFLICTS_INSTALL=	arpack-ng-3.*
+
+PLIST_FILES+=	lib/libparpack.a \
+		lib/libparpack.so \
+		lib/libparpack.so.2 \
+		lib/libparpack.so.2.0.0
 
 .include "${MASTERDIR}/Makefile"

Modified: head/math/arpack-ng/Makefile
==============================================================================
--- head/math/arpack-ng/Makefile	Thu Aug 18 15:39:55 2016	(r420409)
+++ head/math/arpack-ng/Makefile	Thu Aug 18 16:19:56 2016	(r420410)
@@ -2,44 +2,38 @@
 # $FreeBSD$
 
 PORTNAME=	arpack-ng
-PORTVERSION=	3.1.5
-PORTREVISION=	2
+PORTVERSION=	3.4.0
 CATEGORIES=	math
-MASTER_SITES=	http://forge.scilab.org/index.php/p/arpack-ng/downloads/get/ \
-		LOCAL/bf
-DISTNAME=	${PORTNAME}_${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT+=	Revised Argand library for solving large-scale eigenvalue problems
+COMMENT?=	Revised Argand library for solving large-scale eigenvalue problems
 
 LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		fortran libtool
-USE_LDCONFIG=	yes
-
-CONFLICTS=	arpack-[0-9]*
-SLAVEDIRS=	math/arpack-ng-mpich
+USE_GITHUB=	yes
+GH_ACCOUNT=	opencollab
 
+USES=		autoreconf:build fortran libtool
 GNU_CONFIGURE=	yes
-
 CONFIGURE_ARGS=	--with-blas="${BLAS}" \
-		--with-lapack="${LAPACK}"
+		--with-lapack="${LAPACK}" \
+		${MPICH_ARG}
+MPICH_ARG?=	--disable-mpi
 LDFLAGS+=	-L${LOCALBASE}/lib
+TEST_TARGET=	check
+USE_LDCONFIG=	yes
 
-WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
+PORTEXAMPLES=	*
 
-OPTIONS_DEFINE=	DOCS MPI
-OPTIONS_SUB=	yes
-MPI_CONFIGURE_ENABLE=	mpi
-MPI_LIB_DEPENDS=	libmpich.so.8:net/mpich2
-MPI_CONFLICTS_INSTALL+=		arpack-ng-3.*
-MPI_CONFLICTS_INSTALL_OFF+=	arpack-ng-mpich-3.*
+CONFLICTS=	arpack-[0-9]*
+CONFLICTS_INSTALL?=	arpack-ng-mpich-3.*
+SLAVEDIRS=	math/arpack-ng-mpich
 
-.include <bsd.port.pre.mk>
+WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-.if ${PORT_OPTIONS:MMPI}
-PKGNAMESUFFIX=	-mpich
-.endif
+OPTIONS_DEFINE=	DOCS EXAMPLES
+OPTIONS_SUB=	yes
 
 WITH_BLAS?=	blas
 
@@ -62,7 +56,10 @@ IGNORE=		unknown value of WITH_BLAS: ${W
 
 post-patch:
 	@${REINPLACE_CMD} -Ee 's|\(libdir\)(/pkgconfig)|(prefix)/libdata\1|' \
-	${WRKSRC}/Makefile.in
+	${WRKSRC}/Makefile.am
+
+pre-configure:
+	@cd ${WRKSRC}; ./bootstrap
 	@${REINPLACE_CMD} -e '/BLAS_LIBS.*LAPACK_LIBS/ \
 	{s/LAPACK_LIBS/BLAS_LIBS/;s/BLAS_LIBS/LAPACK_LIBS/;}' \
 	${WRKSRC}/Makefile.in \
@@ -70,15 +67,14 @@ post-patch:
 	${WRKSRC}/TESTS/Makefile.in
 
 post-build:
-	@cd ${WRKSRC}/.libs; ${STRIP_CMD} libarpack.a libarpack.so.*.*
+	@cd ${WRKSRC}/SRC/.libs; ${STRIP_CMD} libarpack.so.*.*
 
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	@cd ${WRKSRC}/DOCUMENTS && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
-.endif
+	cd ${WRKSRC}/DOCUMENTS && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
 
-check regression-test test: build
-	@cd ${WRKSRC}; ${DO_MAKE_BUILD} check
+post-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC}/EXAMPLES && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/math/arpack-ng/distinfo
==============================================================================
--- head/math/arpack-ng/distinfo	Thu Aug 18 15:39:55 2016	(r420409)
+++ head/math/arpack-ng/distinfo	Thu Aug 18 16:19:56 2016	(r420410)
@@ -1,2 +1,3 @@
-SHA256 (arpack-ng_3.1.5.tar.gz) = a269ce7806bc77ced31ef794d23c3e3aff8543b65550fd7e3e24660f2a79d515
-SIZE (arpack-ng_3.1.5.tar.gz) = 1516406
+TIMESTAMP = 1469850136
+SHA256 (opencollab-arpack-ng-3.4.0_GH0.tar.gz) = 69e9fa08bacb2475e636da05a6c222b17c67f1ebeab3793762062248dd9d842f
+SIZE (opencollab-arpack-ng-3.4.0_GH0.tar.gz) = 942149

Modified: head/math/arpack-ng/pkg-plist
==============================================================================
--- head/math/arpack-ng/pkg-plist	Thu Aug 18 15:39:55 2016	(r420409)
+++ head/math/arpack-ng/pkg-plist	Thu Aug 18 16:19:56 2016	(r420410)
@@ -1,18 +1,7 @@
-%%MPI%%bin/pcndrv1
-%%MPI%%bin/pdndrv1
-%%MPI%%bin/pdndrv3
-%%MPI%%bin/pdsdrv1
-%%MPI%%bin/psndrv3
-%%MPI%%bin/pssdrv1
-%%MPI%%bin/pzndrv1
 lib/libarpack.a
 lib/libarpack.so
 lib/libarpack.so.2
 lib/libarpack.so.2.0.0
-%%MPI%%lib/libparpack.a
-%%MPI%%lib/libparpack.so
-%%MPI%%lib/libparpack.so.2
-%%MPI%%lib/libparpack.so.2.0.0
 libdata/pkgconfig/arpack.pc
 %%DOCS%%%%DOCSDIR%%/README
 %%DOCS%%%%DOCSDIR%%/debug.doc



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