git: 7c0cf0ed564f - main - cad/feappv: upgrade to v5.1.2e

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Wed, 19 Jun 2024 16:39:00 UTC
The branch main has been updated by thierry:

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

commit 7c0cf0ed564ff8c9c656241530a8633d97540231
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2024-06-19 16:25:47 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-06-19 16:38:01 +0000

    cad/feappv: upgrade to v5.1.2e
    
    Also add license.
---
 cad/feappv/Makefile | 26 +++++++++++++-------------
 cad/feappv/distinfo |  8 +++-----
 2 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/cad/feappv/Makefile b/cad/feappv/Makefile
index 8703980bea95..290180abff1f 100644
--- a/cad/feappv/Makefile
+++ b/cad/feappv/Makefile
@@ -1,41 +1,41 @@
 PORTNAME=	feappv
-PORTVERSION=	4.1i
-PORTREVISION=	5
 DISTVERSIONPREFIX=v
+DISTVERSION=	5.1.2e
 CATEGORIES=	cad education science
-MASTER_SITES=	http://projects.ce.berkeley.edu/feap/${PORTNAME}/:1
-DISTFILES=	${PORTDOCS}:1
-EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Finite element analysis program (personal version)
 WWW=		http://projects.ce.berkeley.edu/feap/feappv/
 
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
 USES=		fortran gmake localbase:ldflags xorg
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	sanjayg0
+
+BINARY_ALIAS=	make=${GMAKE}
 USE_XORG=	x11
 MAKEFILE=	makefile
-MAKE_ENV=	FEAPPVHOME4_1="${WRKSRC}"
+MAKE_ENV=	FEAPPVHOME5_1="${WRKSRC}"
 ALL_TARGET=	install
 
 LDFLAGS+=	-lX11 -lm
 
 PLIST_FILES=	bin/feappv lib/libfeappv.a
-PORTDOCS=	manual41.pdf
+PORTDOCS=	igaman_51.pdf manual_51.pdf
 
 OPTIONS_DEFINE=	DOCS
 
-post-patch:
-	@${REINPLACE_CMD} -e \
-		's| make | $$(MAKE) |' ${WRKSRC}/makefile
-	@${REINPLACE_CMD} -e \
+pre-configure:
+	${REINPLACE_CMD} -e \
 		'/^  FF /s|=.*|= ${FC}| ; \
 		 /^  CC /s|=.*|= ${CC}| ; \
 		 /^  FFOPTFLAG /s|=.*|= ${FFLAGS}| ; \
 		 /^  CCOPTFLAG /s|=.*|= ${CFLAGS}| ; \
 		 /^  LDOPTIONS /s|=.*|= ${LDFLAGS}| ; \
-		 s|Feappv.a|libfeappv.a|' ${WRKSRC}/makefile.in
+		 s|Feappv_g.a|libfeappv.a|' ${WRKSRC}/makefile.in
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/main/feappv ${STAGEDIR}${PREFIX}/bin
@@ -43,6 +43,6 @@ do-install:
 
 do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${_DISTDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/manual/*.pdf ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>
diff --git a/cad/feappv/distinfo b/cad/feappv/distinfo
index 20bed1f97622..4f299ced1819 100644
--- a/cad/feappv/distinfo
+++ b/cad/feappv/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1529955297
-SHA256 (manual41.pdf) = 09bb4b6f0622a1384ad7c52bcd7db0a1b7d190f9849012bf05622b5e7fa3463e
-SIZE (manual41.pdf) = 649177
-SHA256 (sanjayg0-feappv-v4.1i_GH0.tar.gz) = 49917388a390b5d35e4ac938db8bc67cfe144a4c7127ad7016fcc741e6256f28
-SIZE (sanjayg0-feappv-v4.1i_GH0.tar.gz) = 1043692
+TIMESTAMP = 1718814127
+SHA256 (sanjayg0-feappv-v5.1.2e_GH0.tar.gz) = fae418053cd8c8124881505e8d7af14a84ead4e6852109ab526c779514c0d172
+SIZE (sanjayg0-feappv-v5.1.2e_GH0.tar.gz) = 5562386