git: 44934e890d3b - main - science/bout++: Remove installed broken link; Add pkg-message

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 25 Dec 2022 01:23:13 UTC
The branch main has been updated by yuri:

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

commit 44934e890d3b10a15d04fbd880a9d42ac517c3d9
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-24 22:32:47 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-25 01:22:58 +0000

    science/bout++: Remove installed broken link; Add pkg-message
---
 science/bout++/Makefile    |  6 ++++++
 science/bout++/pkg-message | 18 ++++++++++++++++++
 science/bout++/pkg-plist   |  1 -
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/science/bout++/Makefile b/science/bout++/Makefile
index c1f24e366579..c00c2823ea8a 100644
--- a/science/bout++/Makefile
+++ b/science/bout++/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	bout++
 DISTVERSIONPREFIX=	v
 DISTVERSION=	4.4.2
+PORTREVISION=	1
 CATEGORIES=	science math # physics
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -106,5 +107,10 @@ post-install:
 		-e 's|${BUILD_WRKSRC}/lib|${PREFIX}/lib|' \
 		-e 's|${PORTSDIR}/.*/BOUT-dev-${PORTVERSION}/externalpackages/PVODE/include|${PREFIX}/include|g' \
 		${STAGEDIR}${PREFIX}/lib/cmake/PVODE/*
+	@${REINPLACE_CMD} -i '' \
+		-e 's|INTERFACE_INCLUDE_DIRECTORIES .*|INTERFACE_INCLUDE_DIRECTORIES "${PREFIX}/include"|' \
+		${STAGEDIR}${PREFIX}/lib/cmake/PVODE/PVODEConfig.cmake
+	# remove broken link, see https://github.com/boutproject/BOUT-dev/issues/2623
+	@${RM} ${STAGEDIR}${PREFIX}/bin/bout-squashoutput
 
 .include <bsd.port.mk>
diff --git a/science/bout++/pkg-message b/science/bout++/pkg-message
new file mode 100644
index 000000000000..3cefddb4c64d
--- /dev/null
+++ b/science/bout++/pkg-message
@@ -0,0 +1,18 @@
+[
+{ type: install
+  message: <<EOM
+
+You installed BOUT++, plasma fluid finite-difference simulation code.
+
+BOUT++ is a framework that allows to solve a variety of partial differential
+equations, with or without physical meaning.
+
+You can use BOUT++ in one of these ways:
+1. Build with included examples: make WITH_EXAMPLES=yes
+   These examples showcase what BOUT++ can do on simple PDE systems,
+2. Build and run any of the dependent ports: science/bout++-*
+3. Write your own BOUT++ applications solving your equations.
+
+EOM
+}
+]
diff --git a/science/bout++/pkg-plist b/science/bout++/pkg-plist
index 15e6c7224646..24616f673489 100644
--- a/science/bout++/pkg-plist
+++ b/science/bout++/pkg-plist
@@ -5,7 +5,6 @@ bin/bout-config.in
 bin/bout-log-color
 bin/bout-pylib-cmd-to-bin
 bin/bout-sonnet
-bin/bout-squashoutput
 bin/bout-stop-script
 bin/bout_3to4.py
 bin/bout_4to5