git: 78714e3421df - main - math/parmetis: ParMETIS is fetchable again

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Thu, 03 Aug 2023 15:12:27 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=78714e3421df3a4f1c9d13b740979b203e6872fc

commit 78714e3421df3a4f1c9d13b740979b203e6872fc
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-08-03 15:11:10 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-08-03 15:12:24 +0000

    math/parmetis: ParMETIS is fetchable again
    
    Also use the MPI helper.
---
 math/parmetis/Makefile | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/math/parmetis/Makefile b/math/parmetis/Makefile
index e8f504ebd0f7..c6e62158f50d 100644
--- a/math/parmetis/Makefile
+++ b/math/parmetis/Makefile
@@ -14,8 +14,6 @@ LICENSE_NAME=	University of Minnesota METIS License
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 LICENSE_PERMS=	auto-accept
 
-BROKEN=		does not fetch
-
 USES=		cmake:insource,noninja gmake
 USE_LDCONFIG=	${PREFIX}/lib/parmetis
 
@@ -23,14 +21,8 @@ OPTIONS_DEFINE=	OPENMPI DOCS STATIC
 OPENMPI_DESC=	Use openmpi instead of mpich
 OPTIONS_SUB=	yes
 
-OPENMPI_BUILD_DEPENDS=		${LOCALBASE}/mpi/openmpi/bin/mpicc:net/openmpi
-OPENMPI_RUN_DEPENDS=		${LOCALBASE}/mpi/openmpi/bin/mpirun:net/openmpi
-OPENMPI_VARS=			MPICC=${LOCALBASE}/mpi/openmpi/bin/mpicc \
-				MPICXX=${LOCALBASE}/mpi/openmpi/bin/mpicxx
-OPENMPI_BUILD_DEPENDS_OFF=	${LOCALBASE}/bin/mpicc:net/mpich
-OPENMPI_RUN_DEPENDS_OFF=	${LOCALBASE}/bin/mpirun:net/mpich
-OPENMPI_VARS_OFF=		MPICC=${LOCALBASE}/bin/mpicc \
-				MPICXX=${LOCALBASE}/bin/mpicxx
+OPENMPI_USES=			mpi:openmpi
+OPENMPI_USES_OFF=		mpi
 
 STATIC_DESC=			Do not build and install shared library
 STATIC_VARS_OFF=		SH_FLAG="shared=1"