git: 456691df1589 - main - devel/deforaos-libsystem: Update to 0.4.3

From: Olivier Cochard <olivier_at_FreeBSD.org>
Date: Thu, 23 Nov 2023 12:34:26 UTC
The branch main has been updated by olivier:

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

commit 456691df1589f033890fb6c4e6d7ae16cb7ccbbf
Author:     Pierre Pronchery <khorben@defora.org>
AuthorDate: 2023-10-08 22:23:22 +0000
Commit:     Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2023-11-23 12:30:48 +0000

    devel/deforaos-libsystem: Update to 0.4.3
---
 devel/deforaos-libsystem/Makefile                     | 16 +++++-----------
 devel/deforaos-libsystem/distinfo                     |  6 +++---
 devel/deforaos-libsystem/pkg-descr                    |  3 ++-
 devel/deforaos-libsystem/pkg-plist                    |  8 ++++++--
 x11/deforaos-libdesktop/files/patch-src_mimehandler.c | 11 +++++++++++
 5 files changed, 27 insertions(+), 17 deletions(-)

diff --git a/devel/deforaos-libsystem/Makefile b/devel/deforaos-libsystem/Makefile
index 9883efb8feab..a9df6606110d 100644
--- a/devel/deforaos-libsystem/Makefile
+++ b/devel/deforaos-libsystem/Makefile
@@ -1,8 +1,7 @@
 PORTNAME=	libsystem
-PORTVERSION=	0.3.1
-PORTREVISION=	1
+PORTVERSION=	0.4.3
 CATEGORIES=	devel
-MASTER_SITES=	http://www.defora.org/os/download/download/4446/
+MASTER_SITES=	https://ftp.defora.org/pub/DeforaOS/System/src/libSystem/
 PKGNAMEPREFIX=	deforaos-
 DISTNAME=	libSystem-${PORTVERSION}
 
@@ -10,7 +9,7 @@ MAINTAINER=	olivier@FreeBSD.org
 COMMENT=	DeforaOS core system library
 WWW=		https://www.defora.org/
 
-LICENSE=	LGPL3
+LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		pkgconfig ssl
@@ -30,15 +29,10 @@ DOCS_BUILD_DEPENDS=	xsltproc:textproc/libxslt \
 post-patch:
 	${REINPLACE_CMD} 's|/lib/|/libdata/|g' \
 		${WRKSRC}/data/pkgconfig.sh
-	${REINPLACE_CMD} 's|CFLAGS=|CFLAGS+=|' \
+	${REINPLACE_CMD} 's|CFLAGS	=|CFLAGS+=|' \
 		${WRKSRC}/src/Makefile
 	${REINPLACE_CMD} 's|CPPFLAGS=|CPPFLAGS+=|' \
 		${WRKSRC}/src/Makefile
-	${REINPLACE_CMD} 's|_fail "python.sh"|#_fail "python.sh"|' \
-		${WRKSRC}/tests/tests.sh
-	${REINPLACE_CMD} 's|-Wl,-pie||g' \
-		${WRKSRC}/tools/Makefile \
-		${WRKSRC}/tests/Makefile
 	${REINPLACE_CMD} -e 's|$$(INSTALL)|#$${INSTALL}|' ${WRKSRC}/Makefile
 	${REINPLACE_CMD} -e 's|$$(MKDIR) $$(DESTDIR)$$(PREFIX)/share/doc/| \
 		#$$(MKDIR) $$(DESTDIR)$$(PREFIX)/share/doc/|' ${WRKSRC}/Makefile
@@ -53,6 +47,6 @@ post-patch-DOCS-off:
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/configctl \
-		${STAGEDIR}${PREFIX}/lib/libSystem.so.0.0
+		${STAGEDIR}${PREFIX}/lib/libSystem.so.1.0
 
 .include <bsd.port.mk>
diff --git a/devel/deforaos-libsystem/distinfo b/devel/deforaos-libsystem/distinfo
index 6934250727d7..4cf862e0b01f 100644
--- a/devel/deforaos-libsystem/distinfo
+++ b/devel/deforaos-libsystem/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1475616237
-SHA256 (libSystem-0.3.1.tar.gz) = 6f82f6fbee516d33e14311bcdc86dae0509c86c8f1e594d4573398b12a2a5b89
-SIZE (libSystem-0.3.1.tar.gz) = 70735
+TIMESTAMP = 1696803646
+SHA256 (libSystem-0.4.3.tar.gz) = 0013da389e01d1aa1918a79de297c375b973c7af46e62e47440a88fd8687f251
+SIZE (libSystem-0.4.3.tar.gz) = 55770
diff --git a/devel/deforaos-libsystem/pkg-descr b/devel/deforaos-libsystem/pkg-descr
index 2f4e4c481a7f..1ae07ad7afb2 100644
--- a/devel/deforaos-libsystem/pkg-descr
+++ b/devel/deforaos-libsystem/pkg-descr
@@ -1 +1,2 @@
-DeforaOS system library
+libSystem is the most essential library within DeforaOS, with the aim to become
+a complete C runtime (thus obsoleting the libc and replacing its API).
diff --git a/devel/deforaos-libsystem/pkg-plist b/devel/deforaos-libsystem/pkg-plist
index 11d91e00d54d..61ba98b091f8 100644
--- a/devel/deforaos-libsystem/pkg-plist
+++ b/devel/deforaos-libsystem/pkg-plist
@@ -14,13 +14,17 @@ include/System/parser.h
 include/System/plugin.h
 include/System/string.h
 include/System/token.h
+include/System/userdata.h
 include/System/variable.h
 lib/libSystem.a
 lib/libSystem.so
-lib/libSystem.so.0
-lib/libSystem.so.0.0
+lib/libSystem.so.1
+lib/libSystem.so.1.0
 libdata/pkgconfig/libSystem.pc
 %%PORTDOCS%%man/man1/configctl.1.gz
+%%PORTDOCS%%share/gtk-doc/html/libSystem/libSystem-license.html
+%%PORTDOCS%%share/gtk-doc/html/libSystem/libSystem-mutator.html
+%%PORTDOCS%%share/gtk-doc/html/libSystem/libSystem-variable.html
 %%PORTDOCS%%share/gtk-doc/html/libSystem/api-index-full.html
 %%PORTDOCS%%share/gtk-doc/html/libSystem/ch01.html
 %%PORTDOCS%%share/gtk-doc/html/libSystem/deprecated-api-index.html
diff --git a/x11/deforaos-libdesktop/files/patch-src_mimehandler.c b/x11/deforaos-libdesktop/files/patch-src_mimehandler.c
new file mode 100644
index 000000000000..9697981831a3
--- /dev/null
+++ b/x11/deforaos-libdesktop/files/patch-src_mimehandler.c
@@ -0,0 +1,11 @@
+--- src/mimehandler.c.orig	2023-10-28 13:36:08 UTC
++++ src/mimehandler.c
+@@ -597,7 +597,7 @@ int mimehandler_load_by_name(MimeHandler * handler, St
+ 		return ret;
+ 	/* read through every XDG application folder */
+ 	if((path = getenv("XDG_DATA_DIRS")) == NULL || strlen(path) == 0)
+-		path = "/usr/local/share:" DATADIR ":/usr/share";
++		path = DATADIR ":/usr/share";
+ 	if((p = string_new(path)) == NULL)
+ 		return -1;
+ 	for(q = strtok_r(p, ":", &last); q != NULL;