Thursday, February 29, 2024

[update] www/badwolf to 1.3.0

Badwolf changed its build system to use ninja between 1.2.2 and this
release.

This is not my port, I updated it to the latest version hoping it would
resolve some bugs I was having while using the browser (certain webpages
crashing, video playback stopping after a second). Unfortunately it
didn't, and testing other gtkwebkit browsers like Epiphany, the problems
persist (maybe they're bugs in gtkwebkit or gstreamer).

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/badwolf/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile 27 Sep 2023 19:13:00 -0000 1.8
+++ Makefile 29 Feb 2024 22:16:49 -0000
@@ -1,6 +1,5 @@
COMMENT = minimalist and privacy-oriented WebKitGTK+ browser
-DISTNAME = badwolf-1.2.2
-REVISION = 2
+DISTNAME = badwolf-1.3.0
CATEGORIES = www

HOMEPAGE = https://hacktivis.me/projects/badwolf
@@ -15,14 +14,18 @@ SITES = https://hacktivis.me/releases/
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c

-WANTLIB += atk-1.0 c cairo cairo-gobject gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0
-WANTLIB += gobject-2.0 gtk-3 harfbuzz intl javascriptcoregtk-4.0 pango-1.0
-WANTLIB += pangocairo-1.0 soup-2.4 webkit2gtk-4.0 xml2 gmodule-2.0 pthread
-
-BUILD_DEPENDS = devel/gettext,-tools \
+WANTLIB += atk-1.0 c cairo cairo-gobject gdk-3 gdk_pixbuf-2.0
+WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gtk-3 harfbuzz
+WANTLIB += intl javascriptcoregtk-4.1 pango-1.0 pangocairo-1.0
+WANTLIB += pthread soup-3.0 webkit2gtk-4.1 xml2
+
+BUILD_DEPENDS = devel/flawfinder \
+ devel/gettext,-tools \
+ devel/ninja \
+ devel/shellcheck \
textproc/libxml
-LIB_DEPENDS = devel/libsoup \
- www/webkitgtk4
+LIB_DEPENDS = devel/glib2 \
+ www/webkitgtk4,webkitgtk41
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+4,-guic

@@ -31,11 +34,14 @@ RUN_DEPENDS = devel/desktop-file-utils \
# shellcheck.
NO_TEST = Yes

-USE_GMAKE = Yes
-
CONFIGURE_STYLE = simple
-
-MAKE_FLAGS = DOCDIR=${PREFIX}/share/doc/badwolf \
+CONFIGURE_ARGS = WITH_WEBKITGTK=4.1 \
+ WITH_URI_PARSER=guri \
MANDIR=${PREFIX}/man
+
+do-build:
+ cd ${WRKBUILD} && ninja
+do-install:
+ cd ${WRKBUILD} && ninja install

.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/badwolf/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo 8 Dec 2021 08:47:41 -0000 1.2
+++ distinfo 29 Feb 2024 22:16:49 -0000
@@ -1,2 +1,2 @@
-SHA256 (badwolf-1.2.2.tar.gz) = /N8bDXERBx21P3hc087PtMe6hSQDpWlwN7KB5/4mKks=
-SIZE (badwolf-1.2.2.tar.gz) = 80102
+SHA256 (badwolf-1.3.0.tar.gz) = J238y6it38IFzrEEd2aOSytqSFPzRMhtXB41sccDRZ8=
+SIZE (badwolf-1.3.0.tar.gz) = 114477
Index: patches/patch-version_sh
===================================================================
RCS file: /cvs/ports/www/badwolf/patches/patch-version_sh,v
retrieving revision 1.2
diff -u -p -r1.2 patch-version_sh
--- patches/patch-version_sh 11 Mar 2022 20:09:39 -0000 1.2
+++ patches/patch-version_sh 29 Feb 2024 22:16:49 -0000
@@ -1,8 +1,10 @@
Index: version.sh
--- version.sh.orig
+++ version.sh
-@@ -1,4 +1,7 @@
- #!/bin/sh
+@@ -3,6 +3,9 @@
+ # SPDX-FileCopyrightText: 2019-2022 Badwolf Authors <https://hacktivis.me/projects/badwolf>
+ # SPDX-License-Identifier: BSD-3-Clause
+
+
+[ -d .git ] || exit
+
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/www/badwolf/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST 11 Mar 2022 20:09:39 -0000 1.2
+++ pkg/PLIST 29 Feb 2024 22:16:49 -0000
@@ -1,5 +1,17 @@
@bin bin/badwolf
+man/de/
+man/de/man1/
+@man man/de/man1/badwolf.1
+man/fr/
+man/fr/man1/
+@man man/fr/man1/badwolf.1
@man man/man1/badwolf.1
+man/tr/
+man/tr/man1/
+@man man/tr/man1/badwolf.1
+man/vi/
+man/vi/man1/
+@man man/vi/man1/badwolf.1
share/applications/badwolf.desktop
share/badwolf/
share/badwolf/interface.css
@@ -19,11 +31,11 @@ share/badwolf/locale/tr/LC_MESSAGES/Badw
share/badwolf/locale/vi/
share/badwolf/locale/vi/LC_MESSAGES/
share/badwolf/locale/vi/LC_MESSAGES/Badwolf.mo
-share/doc/badwolf/
-share/doc/badwolf/KnowledgeBase.md
-share/doc/badwolf/README.md
-share/doc/badwolf/interface.txt
-@comment share/doc/badwolf/usr.bin.badwolf
+share/doc/badwolf-1.3.0/
+share/doc/badwolf-1.3.0/KnowledgeBase.md
+share/doc/badwolf-1.3.0/README.md
+share/doc/badwolf-1.3.0/interface.md
+@comment share/doc/badwolf-1.3.0/usr.bin.badwolf
share/icons/hicolor/128x128/apps/badwolf.png
share/icons/hicolor/24x24/apps/badwolf.png
share/icons/hicolor/256x256/apps/badwolf.png

No comments:

Post a Comment