git: fc879c7b8d61 - main - net/uhttpmock0: copy from net/uhttpmock and switch consumer

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Wed, 25 Dec 2024 22:20:48 UTC
The branch main has been updated by vishwin:

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

commit fc879c7b8d610c9aa8c4f4e75f3f0a6d6d59bd6a
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2024-12-25 22:17:28 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2024-12-25 22:17:28 +0000

    net/uhttpmock0: copy from net/uhttpmock and switch consumer
    
    The latest uhttpmock uses devel/libsoup3 with a changed SONAME to
    reflect incompatibility.
---
 devel/libgdata/Makefile  |  2 +-
 net/Makefile             |  1 +
 net/uhttpmock0/Makefile  | 28 ++++++++++++++++++++++++++++
 net/uhttpmock0/distinfo  |  3 +++
 net/uhttpmock0/pkg-descr |  3 +++
 net/uhttpmock0/pkg-plist | 35 +++++++++++++++++++++++++++++++++++
 6 files changed, 71 insertions(+), 1 deletion(-)

diff --git a/devel/libgdata/Makefile b/devel/libgdata/Makefile
index fb091a94bf59..6cd1232a42af 100644
--- a/devel/libgdata/Makefile
+++ b/devel/libgdata/Makefile
@@ -11,7 +11,7 @@ WWW=		https://live.gnome.org/libgdata
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	uhttpmock>0:net/uhttpmock
+BUILD_DEPENDS=	uhttpmock0>0:net/uhttpmock0
 LIB_DEPENDS=	libsoup-2.4.so:devel/libsoup \
 		libjson-glib-1.0.so:devel/json-glib \
 		libp11-kit.so:security/p11-kit \
diff --git a/net/Makefile b/net/Makefile
index 91390371c12d..6d02b02a8954 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1620,6 +1620,7 @@
     SUBDIR += udt
     SUBDIR += uget
     SUBDIR += uhttpmock
+    SUBDIR += uhttpmock0
     SUBDIR += ulxmlrpcpp
     SUBDIR += unfs3
     SUBDIR += unison
diff --git a/net/uhttpmock0/Makefile b/net/uhttpmock0/Makefile
new file mode 100644
index 000000000000..2efb78c6069e
--- /dev/null
+++ b/net/uhttpmock0/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	uhttpmock
+PORTVERSION=	0.5.3
+CATEGORIES=	net gnome
+MASTER_SITES=	http://tecnocode.co.uk/downloads/uhttpmock/
+PKGNAMESUFFIX=	0
+DIST_SUBDIR=	gnome
+
+MAINTAINER=	gnome@FreeBSD.org
+COMMENT=	HTTP web service mocking library
+WWW=		https://gitlab.freedesktop.org/pwithnall/uhttpmock
+
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libsoup-2.4.so:devel/libsoup
+
+USES=		gettext gmake gnome libtool pathfix pkgconfig tar:xz vala:build
+USE_GNOME=	gnomeprefix glib20 introspection:build
+USE_LDCONFIG=	yes
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS+=	--disable-Werror
+
+INSTALL_TARGET=	install-strip
+PORTSCOUT=	limit:^0\.5
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.mk>
diff --git a/net/uhttpmock0/distinfo b/net/uhttpmock0/distinfo
new file mode 100644
index 000000000000..799e21bc2424
--- /dev/null
+++ b/net/uhttpmock0/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1735161740
+SHA256 (gnome/uhttpmock-0.5.3.tar.xz) = 90843223c3a30bdb7f1eb3442373a03fee425af85a9df289cd687698ccff112f
+SIZE (gnome/uhttpmock-0.5.3.tar.xz) = 318708
diff --git a/net/uhttpmock0/pkg-descr b/net/uhttpmock0/pkg-descr
new file mode 100644
index 000000000000..dd02e33249a8
--- /dev/null
+++ b/net/uhttpmock0/pkg-descr
@@ -0,0 +1,3 @@
+uhttpmock is a project for mocking web service APIs which use HTTP
+or HTTPS. It provides a library, libuhttpmock, which implements
+recording and playback of HTTP request–response traces.
diff --git a/net/uhttpmock0/pkg-plist b/net/uhttpmock0/pkg-plist
new file mode 100644
index 000000000000..46365a3704dc
--- /dev/null
+++ b/net/uhttpmock0/pkg-plist
@@ -0,0 +1,35 @@
+include/libuhttpmock-0.0/uhttpmock/uhm-resolver.h
+include/libuhttpmock-0.0/uhttpmock/uhm-server.h
+include/libuhttpmock-0.0/uhttpmock/uhm-version.h
+include/libuhttpmock-0.0/uhttpmock/uhm.h
+lib/girepository-1.0/Uhm-0.0.typelib
+lib/libuhttpmock-0.0.a
+lib/libuhttpmock-0.0.so
+lib/libuhttpmock-0.0.so.0
+lib/libuhttpmock-0.0.so.0.2.3
+libdata/pkgconfig/libuhttpmock-0.0.pc
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/UhmResolver.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/UhmServer.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/annotation-glossary.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/ch01.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/ch02.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/ch03.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/ch04.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/home.png
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/index.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/left-insensitive.png
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/left.png
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/libuhttpmock-0.0-Version-Information.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/libuhttpmock-0.0.devhelp2
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/pt01.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/pt02.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/pt03.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/pt04.html
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/right-insensitive.png
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/right.png
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/style.css
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/up-insensitive.png
+%%PORTDOCS%%share/doc/libuhttpmock-0.0/up.png
+share/gir-1.0/Uhm-0.0.gir
+share/vala/vapi/libuhttpmock-0.0.deps
+share/vala/vapi/libuhttpmock-0.0.vapi