git: b37cfcf68340 - main - x11-fonts/afdko: Update to 4.0.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 21 Nov 2024 13:41:29 UTC
The branch main has been updated by sunpoet:

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

commit b37cfcf68340d1175cbdf4ad3808b019221ec1d7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-11-21 13:20:25 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-11-21 13:38:00 +0000

    x11-fonts/afdko: Update to 4.0.2
    
    Changes:        https://github.com/adobe-type-tools/afdko/releases
                    https://github.com/adobe-type-tools/afdko/blob/master/NEWS.md
---
 x11-fonts/afdko/Makefile                   |  2 +-
 x11-fonts/afdko/distinfo                   |  6 ++---
 x11-fonts/afdko/files/patch-CMakeLists.txt | 36 +++++++++++++++++-------------
 3 files changed, 25 insertions(+), 19 deletions(-)

diff --git a/x11-fonts/afdko/Makefile b/x11-fonts/afdko/Makefile
index 1b68d6bcddf0..cdbe6f8348f6 100644
--- a/x11-fonts/afdko/Makefile
+++ b/x11-fonts/afdko/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	afdko
-PORTVERSION=	4.0.1
+PORTVERSION=	4.0.2
 CATEGORIES=	x11-fonts
 MASTER_SITES=	https://github.com/adobe-type-tools/afdko/releases/download/${PORTVERSION}/
 
diff --git a/x11-fonts/afdko/distinfo b/x11-fonts/afdko/distinfo
index 7024fb1054ae..1a9638e6e305 100644
--- a/x11-fonts/afdko/distinfo
+++ b/x11-fonts/afdko/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1708448990
-SHA256 (afdko-4.0.1.tar.gz) = 22dd90f0f7b4bc6eacbe8cddb0d72a484cf3f2d6cb474b0e3496de161177f019
-SIZE (afdko-4.0.1.tar.gz) = 17815957
+TIMESTAMP = 1731679190
+SHA256 (afdko-4.0.2.tar.gz) = e1a31e871e83dd022635b852297c433c8e9c9d9d4f0c0f634e8d55dde28ad930
+SIZE (afdko-4.0.2.tar.gz) = 17804422
diff --git a/x11-fonts/afdko/files/patch-CMakeLists.txt b/x11-fonts/afdko/files/patch-CMakeLists.txt
index 4a466c8aa970..7e57efc3b676 100644
--- a/x11-fonts/afdko/files/patch-CMakeLists.txt
+++ b/x11-fonts/afdko/files/patch-CMakeLists.txt
@@ -1,24 +1,30 @@
---- CMakeLists.txt.orig	2022-04-11 22:59:15 UTC
+--- CMakeLists.txt.orig	2024-11-06 00:31:38 UTC
 +++ CMakeLists.txt
-@@ -36,11 +36,11 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_D
- # https://www.antlr.org/download/antlr4-cpp-runtime-4.9.3-source.zip
- # set(ANTLR4_ZIP_REPOSITORY "/path_to_antlr4_archive/a4.zip")
+@@ -27,22 +27,6 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_D
  
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
+ 
+-# Antlr 4 configuration
+-
+-# This is an alternate way of supplying the Antlr 4 sources that will override
+-# the git clone of the tag listed below. This is especially useful if you
+-# encounter compiler problems and need to make small edits to compensate. Start
+-# with the Antlr project's sources, e.g.
+-# https://www.antlr.org/download/antlr4-cpp-runtime-4.9.3-source.zip
+-# set(ANTLR4_ZIP_REPOSITORY "/path_to_antlr4_archive/a4.zip")
+-
 -add_definitions(-DANTLR4CPP_STATIC)
 -set(ANTLR4_WITH_STATIC_CRT OFF)
-+#add_definitions(-DANTLR4CPP_STATIC)
-+#set(ANTLR4_WITH_STATIC_CRT OFF)
- # 4.9.3 is the latest ANTLR4 version
--set(ANTLR4_TAG tags/4.9.3)
+-# 4.9.3 is the latest ANTLR4 version
+-set(ANTLR4_TAG tags/4.13.2)
 -include(ExternalAntlr4Cpp)
-+#set(ANTLR4_TAG tags/4.9.3)
-+#include(ExternalAntlr4Cpp)
- 
- # sanitizer support
- # work around https://github.com/pypa/setuptools/issues/1928 with environment
-@@ -76,4 +76,4 @@ add_subdirectory(c/sfntedit/source)
+-
+-
+ if (DEFINED ENV{FORCE_BUILD_LIBXML2})
+     set(BUILD_STATIC_LIBXML2 TRUE)
+ else()
+@@ -107,4 +91,3 @@ add_subdirectory(c/type1/source)
  add_subdirectory(c/spot/source)
  add_subdirectory(c/tx/source)
  add_subdirectory(c/type1/source)
 -add_subdirectory(c/makeotf)
-+#add_subdirectory(c/makeotf)