git: a7cc5ab5148c - main - math/libmesh: Use upstream release archive and some minor fixes

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 12 Jun 2022 21:21:57 UTC
The branch main has been updated by diizzy:

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

commit a7cc5ab5148cae72addea11f1e5e155bd56a3b42
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-06-12 20:48:05 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-06-12 20:48:09 +0000

    math/libmesh: Use upstream release archive and some minor fixes
    
    * Use upstream release archive as suggested by Porters Handbook
      (USE_GITHUB section ) and upstream, this also reduces
      download size by more than 50%
    * Update requirements to c++17 (upstream defines -std=gnu++17
      during build)
    
    PR:             264642
    Reviewed by:    yuri
---
 math/libmesh/Makefile  | 12 +++---------
 math/libmesh/distinfo  | 12 +++---------
 math/libmesh/pkg-plist |  5 +++--
 3 files changed, 9 insertions(+), 20 deletions(-)

diff --git a/math/libmesh/Makefile b/math/libmesh/Makefile
index 2566ad3d3041..81f0b72667a7 100644
--- a/math/libmesh/Makefile
+++ b/math/libmesh/Makefile
@@ -1,9 +1,10 @@
 # Created by: Yuri Victorovich <yuri@FreeBSD.org>
 
 PORTNAME=	libmesh
-DISTVERSIONPREFIX=	v
 DISTVERSION=	1.7.0
+PORTREVISION=	1
 CATEGORIES=	math
+MASTER_SITES=	https://github.com/libMesh/${PORTNAME}/releases/download/v${DISTVERSION}/
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Numerical simulation of partial differential equations
@@ -14,7 +15,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
 		libnlopt.so:math/nlopt
 
-USES=		compiler:c++11-lang eigen:3 gmake libtool localbase perl5 pkgconfig
+USES=		compiler:c++17-lang eigen:3 gmake libtool localbase perl5 pkgconfig tar:xz
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-static \
 		--with-methods=opt \
@@ -38,13 +39,6 @@ CXXFLAGS+=	-I${WRKSRC}/contrib/parmetis/include # because parmetis.h isn't found
 INSTALL_TARGET=	install-strip
 TEST_TARGET=	check
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	libMesh
-GH_TUPLE=	\
-		libMesh:autoconf-submodule:a993d79:autoconf_submodule/m4/autoconf-submodule \
-		libMesh:TIMPI:5b3b387:TIMPI/contrib/timpi \
-		roystgnr:MetaPhysicL:30d13f2:MetaPhysicL/contrib/metaphysicl
-
 OPTIONS_DEFINE=			GLPK HDF5 MPI EXAMPLES
 OPTIONS_DEFAULT=		MPI
 GLPK_DESC=			Glpk linear programming solver library
diff --git a/math/libmesh/distinfo b/math/libmesh/distinfo
index 707994e24ad9..105c78e6316d 100644
--- a/math/libmesh/distinfo
+++ b/math/libmesh/distinfo
@@ -1,9 +1,3 @@
-TIMESTAMP = 1654985104
-SHA256 (libMesh-libmesh-v1.7.0_GH0.tar.gz) = a1b3579f07d5f9af2b2c73df2a54bbc05f2582c29e0d909dc1843ce9e75653ea
-SIZE (libMesh-libmesh-v1.7.0_GH0.tar.gz) = 34702099
-SHA256 (libMesh-autoconf-submodule-a993d79_GH0.tar.gz) = 0af40bed4fcf0efce6febcda30eb9798da3ec1ad2c872c4875f10edeeca00c0a
-SIZE (libMesh-autoconf-submodule-a993d79_GH0.tar.gz) = 22342
-SHA256 (libMesh-TIMPI-5b3b387_GH0.tar.gz) = 2c0830fb9f72a738132fc6bd1cbc02f7889af7742352ed6fe18301a823d8e352
-SIZE (libMesh-TIMPI-5b3b387_GH0.tar.gz) = 510979
-SHA256 (roystgnr-MetaPhysicL-30d13f2_GH0.tar.gz) = 0524d651c4702240e739d3440e2dd776e10b7ead7022a3b64e1c4c6172dfac8a
-SIZE (roystgnr-MetaPhysicL-30d13f2_GH0.tar.gz) = 851231
+TIMESTAMP = 1655061119
+SHA256 (libmesh-1.7.0.tar.xz) = eadd8109ed6b8c6fe88817032cc8af2569474f4641e327d9b25c046c24d3cdda
+SIZE (libmesh-1.7.0.tar.xz) = 12147376
diff --git a/math/libmesh/pkg-plist b/math/libmesh/pkg-plist
index 783bcb5ed5e2..218560cd164f 100644
--- a/math/libmesh/pkg-plist
+++ b/math/libmesh/pkg-plist
@@ -505,6 +505,7 @@ include/timpi/request.h
 include/timpi/restore_warnings.h
 include/timpi/serial_implementation.h
 include/timpi/standard_type.h
+include/timpi/standard_type_forward.h
 include/timpi/status.h
 include/timpi/timpi.h
 include/timpi/timpi_assert.h
@@ -516,8 +517,8 @@ lib/libmesh_opt.so
 lib/libmesh_opt.so.0
 lib/libmesh_opt.so.0.0.0
 lib/libtimpi_opt.so
-lib/libtimpi_opt.so.2
-lib/libtimpi_opt.so.2.0.0
+lib/libtimpi_opt.so.5
+lib/libtimpi_opt.so.5.0.0
 libdata/pkgconfig/libmesh-opt.pc
 libdata/pkgconfig/libmesh.pc
 libdata/pkgconfig/timpi.pc