git: 6a646e0d9fcb - main - devel/bstring: Convert to meson

From: Joe Marcus Clarke <marcus_at_FreeBSD.org>
Date: Thu, 07 Aug 2025 20:04:33 UTC
The branch main has been updated by marcus:

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

commit 6a646e0d9fcbeb344511f152cf54fc39cd787f5f
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-08-07 20:03:25 +0000
Commit:     Joe Marcus Clarke <marcus@FreeBSD.org>
CommitDate: 2025-08-07 20:04:23 +0000

    devel/bstring: Convert to meson
    
    * Add a test target
    * Fix up the comment and description
    * Assign manintainership to diizzy
    
    PR:             288719
---
 devel/bstring/Makefile                        | 13 ++++++++-----
 devel/bstring/files/patch-bstring_meson.build | 10 ++++++++++
 devel/bstring/pkg-descr                       | 12 ++----------
 devel/bstring/pkg-plist                       |  9 ++++-----
 4 files changed, 24 insertions(+), 20 deletions(-)

diff --git a/devel/bstring/Makefile b/devel/bstring/Makefile
index 7d5eecbb343b..8a2e604562d3 100644
--- a/devel/bstring/Makefile
+++ b/devel/bstring/Makefile
@@ -1,17 +1,20 @@
 PORTNAME=	bstring
 DISTVERSION=	1.0.1
 CATEGORIES=	devel
-MASTER_SITES=	https://github.com/msteinert/${PORTNAME}/releases/download/v${PORTVERSION}/
+MASTER_SITES=	https://github.com/msteinert/${PORTNAME}/releases/download/v${DISTVERSION}/
 
-MAINTAINER=	marcus@FreeBSD.org
-COMMENT=	Fork of Paul Hsieh's Better String Library
+MAINTAINER=	diizzy@FreeBSD.org
+COMMENT=	Improved string processing functionality for the C language
 WWW=		https://mike.steinert.ca/bstring/
 
 LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		autoreconf gmake libtool pathfix pkgconfig tar:xz
+BUILD_DEPENDS=	checkmk:devel/check
+
+USES=		meson pkgconfig tar:xz
 USE_LDCONFIG=	yes
 
-GNU_CONFIGURE=	yes
+TEST_TARGET=	test
 
 .include <bsd.port.mk>
diff --git a/devel/bstring/files/patch-bstring_meson.build b/devel/bstring/files/patch-bstring_meson.build
new file mode 100644
index 000000000000..d4dcc6ba3b00
--- /dev/null
+++ b/devel/bstring/files/patch-bstring_meson.build
@@ -0,0 +1,10 @@
+--- bstring/meson.build.orig	2025-08-07 18:53:46 UTC
++++ bstring/meson.build
+@@ -7,7 +7,6 @@ libbstring = library(
+     soversion: '1',
+     include_directories: bstring_inc,
+     install: true,
+-    install_dir: get_option('libdir'),
+ )
+ 
+ bstring_dep = declare_dependency(include_directories: bstring_inc, link_with: libbstring)
diff --git a/devel/bstring/pkg-descr b/devel/bstring/pkg-descr
index ad04fb4c5f60..a0dd1a7bb6a6 100644
--- a/devel/bstring/pkg-descr
+++ b/devel/bstring/pkg-descr
@@ -1,10 +1,2 @@
-Better String Library
-
-This is a fork of Paul Hsieh's Better String Library. The following features (or mis-features, depending on your point of view) are included:
-
-    Autotools build system
-    Updated test suite based on Check
-    Add Valgrind to the workflow
-    Add continuous integration via Travis-CI
-    Remove C++ code
-    Other various improvements
+The Better String Library is an abstraction of a string data type which is
+superior to the C library char buffer string type, or C++'s std::string.
diff --git a/devel/bstring/pkg-plist b/devel/bstring/pkg-plist
index 9449fef0013d..503d55c90abe 100644
--- a/devel/bstring/pkg-plist
+++ b/devel/bstring/pkg-plist
@@ -1,7 +1,6 @@
-include/bstring/bstraux.h
-include/bstring/bstrlib.h
-lib/libbstring.a
+include/bstraux.h
+include/bstrlib.h
 lib/libbstring.so
-lib/libbstring.so.0
-lib/libbstring.so.0.1.0
+lib/libbstring.so.1
+lib/libbstring.so.1.0.0
 libdata/pkgconfig/bstring.pc