git: 7d164ff37e8d - main - math/bonmin: Install MiniZinc interface
Yuri Victorovich
yuri at FreeBSD.org
Mon May 3 21:35:00 UTC 2021
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7d164ff37e8d9c929c8854db276499f87b98ad89
commit 7d164ff37e8d9c929c8854db276499f87b98ad89
Author: Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-05-03 21:34:30 +0000
Commit: Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-05-03 21:34:30 +0000
math/bonmin: Install MiniZinc interface
---
math/bonmin/Makefile | 10 +++++++++-
math/bonmin/files/bonmin.msc.in | 8 ++++++++
math/bonmin/pkg-plist | 1 +
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/math/bonmin/Makefile b/math/bonmin/Makefile
index a76f7b8cee81..dc42d16600ad 100644
--- a/math/bonmin/Makefile
+++ b/math/bonmin/Makefile
@@ -1,7 +1,7 @@
PORTNAME= bonmin
DISTVERSIONPREFIX= releases/
DISTVERSION= 1.8.8
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= math
PKGNAMEPREFIX= coin-or-
@@ -32,4 +32,12 @@ INSTALL_TARGET= install-strip
TEST_TARGET= test
+SUB_FILES= ${PORTNAME}.msc
+SUB_LIST= PORTVERSION=${PORTVERSION}
+
+post-install:
+ # install MiniZinc configuration file
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/minizinc/solvers
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.msc ${STAGEDIR}${PREFIX}/share/minizinc/solvers
+
.include <bsd.port.mk>
diff --git a/math/bonmin/files/bonmin.msc.in b/math/bonmin/files/bonmin.msc.in
new file mode 100644
index 000000000000..2196a96fb14d
--- /dev/null
+++ b/math/bonmin/files/bonmin.msc.in
@@ -0,0 +1,8 @@
+{
+ "id" : "org.coin-or.bonmin",
+ "name" : "Bonmin",
+ "executable" : "%%PREFIX%%/bin/bonmin",
+ "version": "%%PORTVERSION%%",
+ "supportsFzn":false,
+ "supportsNL":true
+}
diff --git a/math/bonmin/pkg-plist b/math/bonmin/pkg-plist
index 0af25ad77a05..4e6ed7234f24 100644
--- a/math/bonmin/pkg-plist
+++ b/math/bonmin/pkg-plist
@@ -73,3 +73,4 @@ libdata/pkgconfig/bonminamplinterface.pc
share/coin/doc/Bonmin/AUTHORS
share/coin/doc/Bonmin/LICENSE
share/coin/doc/Bonmin/README
+share/minizinc/solvers/bonmin.msc
More information about the dev-commits-ports-all
mailing list