git: ac1b64a79bea - main - math/zimpl: update 3.3.6 → 3.6.2

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 09 Nov 2024 06:06:17 UTC
The branch main has been updated by yuri:

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

commit ac1b64a79bead21fcc3b1aa41805f1606bffb75d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-11-09 04:37:33 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-11-09 06:06:07 +0000

    math/zimpl: update 3.3.6 → 3.6.2
---
 math/zimpl/Makefile                       | 11 +++++++----
 math/zimpl/distinfo                       |  6 +++---
 math/zimpl/files/patch-CMakeLists.txt     | 13 +++++++++++++
 math/zimpl/files/patch-src_CMakeLists.txt |  4 ++--
 math/zimpl/pkg-plist                      |  2 ++
 5 files changed, 27 insertions(+), 9 deletions(-)

diff --git a/math/zimpl/Makefile b/math/zimpl/Makefile
index 000212b69935..7c58ccd87854 100644
--- a/math/zimpl/Makefile
+++ b/math/zimpl/Makefile
@@ -1,12 +1,11 @@
 PORTNAME=	zimpl
-DISTVERSION=	3.3.6
-PORTREVISION=	1
+DISTVERSION=	3.6.2
 CATEGORIES=	math
-MASTER_SITES=	https://zimpl.zib.de/download/
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Language to translate the LP models into .lp or .mps
-WWW=		https://zimpl.zib.de
+WWW=		https://zimpl.zib.de \
+		https://github.com/scipopt/zimpl
 
 LICENSE=	LGPL3
 LICENSE_FILE=	${WRKSRC}/LICENSE
@@ -20,6 +19,10 @@ LIB_DEPENDS=	libgmp.so:math/gmp
 USES=		cmake tar:tgz
 USE_LDCONFIG=	yes
 
+USE_GITHUB=	yes
+GH_ACCOUNT=	scipopt
+GH_TAGNAME=	v${DISTVERSION:S/.//g}
+
 CMAKE_ON=	BUILD_SHARED_LIBS
 
 .include <bsd.port.mk>
diff --git a/math/zimpl/distinfo b/math/zimpl/distinfo
index 53e0da227d2f..d332293e6908 100644
--- a/math/zimpl/distinfo
+++ b/math/zimpl/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1541970033
-SHA256 (zimpl-3.3.6.tgz) = 1f3f0bc2b9710a87b04985d9f14cc1bc207add8b2e16a8b373cb540b8fbe1326
-SIZE (zimpl-3.3.6.tgz) = 746262
+TIMESTAMP = 1731123417
+SHA256 (scipopt-zimpl-3.6.2-v362_GH0.tar.gz) = d99bdfa227d8871560b92dd90026280b185ce8f28b0d3fe295b871f0eca8d4f1
+SIZE (scipopt-zimpl-3.6.2-v362_GH0.tar.gz) = 5257233
diff --git a/math/zimpl/files/patch-CMakeLists.txt b/math/zimpl/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..9f0f37dc693d
--- /dev/null
+++ b/math/zimpl/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
+- https://github.com/scipopt/zimpl/issues/1
+
+--- CMakeLists.txt.orig	2024-11-09 04:34:10 UTC
++++ CMakeLists.txt
+@@ -47,8 +47,6 @@ set(CMAKE_C_STANDARD 99)
+ 
+ # use C99 standard
+ set(CMAKE_C_STANDARD 99)
+-set(CMAKE_C_VISIBILITY_PRESET hidden)
+-set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
+ 
+ option(ZLIB "use ZLIB" ON)
+ option(SANITIZE_ADDRESS "should the address sanitizer be enabled in debug mode if available" OFF)
diff --git a/math/zimpl/files/patch-src_CMakeLists.txt b/math/zimpl/files/patch-src_CMakeLists.txt
index 5358f70035f7..7e631bb81820 100644
--- a/math/zimpl/files/patch-src_CMakeLists.txt
+++ b/math/zimpl/files/patch-src_CMakeLists.txt
@@ -1,8 +1,8 @@
 - Allow to build shared libs.
 
---- src/CMakeLists.txt.orig	2021-08-01 07:59:48 UTC
+--- src/CMakeLists.txt.orig	2024-09-13 05:08:28 UTC
 +++ src/CMakeLists.txt
-@@ -116,12 +116,12 @@ if(MSVC)
+@@ -118,12 +118,12 @@ endif()
  endif()
  
  #create zimpl with pic
diff --git a/math/zimpl/pkg-plist b/math/zimpl/pkg-plist
index 080e1057e759..587102fc2510 100644
--- a/math/zimpl/pkg-plist
+++ b/math/zimpl/pkg-plist
@@ -1,4 +1,5 @@
 bin/zimpl
+include/zimpl/attribute.h
 include/zimpl/blkmem.h
 include/zimpl/bound.h
 include/zimpl/code.h
@@ -37,6 +38,7 @@ include/zimpl/tuple.h
 include/zimpl/xlpglue.h
 include/zimpl/zimpllib.h
 include/zimpl/zlpglue.h
+lib/cmake/zimpl/zimpl-config-version.cmake
 lib/cmake/zimpl/zimpl-config.cmake
 lib/cmake/zimpl/zimpl-targets-%%CMAKE_BUILD_TYPE%%.cmake
 lib/cmake/zimpl/zimpl-targets.cmake