git: a82a7aa414ae - main - textproc/cmark: Update to 0.31.1

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 25 Aug 2024 08:17:59 UTC
The branch main has been updated by diizzy:

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

commit a82a7aa414ae2d31aad46f6a464e83d90707f069
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-08-25 08:06:04 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-08-25 08:17:30 +0000

    textproc/cmark: Update to 0.31.1
    
    While at it modernize Makefile
    
    Changelog: https://github.com/commonmark/cmark/releases/tag/0.31.1
    
    PR:             280727
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 textproc/cmark/Makefile  | 14 ++++++++------
 textproc/cmark/distinfo  |  6 +++---
 textproc/cmark/pkg-plist |  1 -
 3 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/textproc/cmark/Makefile b/textproc/cmark/Makefile
index 9fcb4977160a..b17cfd74cf82 100644
--- a/textproc/cmark/Makefile
+++ b/textproc/cmark/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	cmark
-DISTVERSION=	0.30.2
+DISTVERSION=	0.31.1
 CATEGORIES=	textproc
 
 MAINTAINER=	adridg@FreeBSD.org
@@ -9,13 +9,15 @@ WWW=		https://github.com/commonmark/cmark
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cmake python:test
+USES=		cmake:testing pathfix python:test
+USE_LDCONFIG=	yes
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	commonmark
-USE_LDCONFIG=	yes
 
-CMAKE_ARGS=	-DCMAKE_INSTALL_LIBDIR:STRING="lib"
-PLIST_SUB=	VERSION=${PORTVERSION}
-TEST_TARGET=	test
+PLIST_SUB=	VERSION=${DISTVERSION}
+
+CMAKE_OFF=	BUILD_TESTING
+CMAKE_ON=	BUILD_SHARED_LIBS
 
 .include <bsd.port.mk>
diff --git a/textproc/cmark/distinfo b/textproc/cmark/distinfo
index 0580e80d7c81..ccce72cdbabd 100644
--- a/textproc/cmark/distinfo
+++ b/textproc/cmark/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1635287323
-SHA256 (commonmark-cmark-0.30.2_GH0.tar.gz) = 6c7d2bcaea1433d977d8fed0b55b71c9d045a7cdf616e3cd2dce9007da753db3
-SIZE (commonmark-cmark-0.30.2_GH0.tar.gz) = 246033
+TIMESTAMP = 1723230166
+SHA256 (commonmark-cmark-0.31.1_GH0.tar.gz) = 3da93db5469c30588cfeb283d9d62edfc6ded9eb0edc10a4f5bbfb7d722ea802
+SIZE (commonmark-cmark-0.31.1_GH0.tar.gz) = 264170
diff --git a/textproc/cmark/pkg-plist b/textproc/cmark/pkg-plist
index 68d518fb4eee..5c97f167e4a9 100644
--- a/textproc/cmark/pkg-plist
+++ b/textproc/cmark/pkg-plist
@@ -6,7 +6,6 @@ lib/cmake/cmark/cmark-config-version.cmake
 lib/cmake/cmark/cmark-config.cmake
 lib/cmake/cmark/cmark-targets-%%CMAKE_BUILD_TYPE%%.cmake
 lib/cmake/cmark/cmark-targets.cmake
-lib/libcmark.a
 lib/libcmark.so
 lib/libcmark.so.%%VERSION%%
 libdata/pkgconfig/libcmark.pc