git: af765b38596f - main - www/badwolf: New port: Minimalist and privacy-oriented WebKitGTK+ browser
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Sep 2022 22:04:33 UTC
The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=af765b38596ff0999f4f7a28f4609c96f224de10 commit af765b38596ff0999f4f7a28f4609c96f224de10 Author: Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org> AuthorDate: 2022-09-09 22:01:25 +0000 Commit: Nuno Teixeira <eduardo@FreeBSD.org> CommitDate: 2022-09-09 22:03:48 +0000 www/badwolf: New port: Minimalist and privacy-oriented WebKitGTK+ browser - submitter becomes maintainer BadWolf is a minimalist and privacy-oriented WebKitGTK+ browser. Features: * Privacy-oriented: No browser-level tracking, multiple ephemeral isolated sessions per new unrelated tabs, JavaScript off by default. * Minimalist: Small codebase (~1 500 LoC), reuses existing components when available or makes them available. * Customizable: WebKitGTK native extensions, Interface customizable through CSS. * Powerful & Usable: Stable User-Interface; The common shortcuts are available, no vi-modal edition or single-key shortcuts are used. * No annoyances: Dialogs are only used when required (save file, print, ...), javascript popups open in a background tab. WWW: https://hacktivis.me/projects/badwolf PR: 266179 --- www/Makefile | 1 + www/badwolf/Makefile | 46 ++++++++++++++++++++++++++++++++++ www/badwolf/distinfo | 3 +++ www/badwolf/files/extra-patch-Makefile | 40 +++++++++++++++++++++++++++++ www/badwolf/pkg-descr | 14 +++++++++++ www/badwolf/pkg-plist | 17 +++++++++++++ 6 files changed, 121 insertions(+) diff --git a/www/Makefile b/www/Makefile index 3fbefbd92af1..91383da3ca53 100644 --- a/www/Makefile +++ b/www/Makefile @@ -41,6 +41,7 @@ SUBDIR += baculum-api SUBDIR += baculum-common SUBDIR += baculum-web + SUBDIR += badwolf SUBDIR += baikal SUBDIR += bareos-webui SUBDIR += bareos18-webui diff --git a/www/badwolf/Makefile b/www/badwolf/Makefile new file mode 100644 index 000000000000..6f76b96d76f2 --- /dev/null +++ b/www/badwolf/Makefile @@ -0,0 +1,46 @@ +PORTNAME= badwolf +DISTVERSION= 1.2.1 +CATEGORIES= www +MASTER_SITES= https://hacktivis.me/releases/ + +MAINTAINER= DtxdF@disroot.org +COMMENT= Minimalist and privacy-oriented WebKitGTK+ browser +WWW= https://hacktivis.me/projects/badwolf + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS+= libharfbuzz.so:print/harfbuzz \ + libwebkit2gtk-4.0.so:www/webkit2-gtk3 + +USES= desktop-file-utils gnome pkgconfig +USE_GNOME= atk cairo gdkpixbuf2 gtk30 libxml2 pango +HAS_CONFIGURE= yes +CONFIGURE_ENV= WITH_WEBKITGTK=4.0 + +OPTIONS_DEFINE= GSTREAMER NLS +OPTIONS_DEFAULT= GSTREAMER LIBSOUP +OPTIONS_SINGLE= URI_PARSER +OPTIONS_SINGLE_URI_PARSER= GURI LIBSOUP +OPTIONS_SUB= yes + +GURI_DESC= Use GUri from glib-2.0 +LIBSOUP_DESC= Use libsoup +URI_PARSER_DESC= URI PARSER + +GSTREAMER_USES= gstreamer +GSTREAMER_USE= GSTREAMER=bad,good,libav +GURI_CONFIGURE_ENV= WITH_URI_PARSER=guri +LIBSOUP_LIB_DEPENDS= libsoup-2.4.so:devel/libsoup +LIBSOUP_CONFIGURE_ENV= WITH_URI_PARSER=libsoup2 + +NLS_USES= gettext +NLS_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile + +GURI_USE_GNOME= glib20 +LIBAV_USE_GSTREAMER= libav + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include <bsd.port.mk> diff --git a/www/badwolf/distinfo b/www/badwolf/distinfo new file mode 100644 index 000000000000..63e51515cc2d --- /dev/null +++ b/www/badwolf/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1662096680 +SHA256 (badwolf-1.2.1.tar.gz) = 7a658908551bc0389fc43bd04a9decfef3815d28ff2097957bf6ab186a05ffd2 +SIZE (badwolf-1.2.1.tar.gz) = 80104 diff --git a/www/badwolf/files/extra-patch-Makefile b/www/badwolf/files/extra-patch-Makefile new file mode 100644 index 000000000000..8419778d4446 --- /dev/null +++ b/www/badwolf/files/extra-patch-Makefile @@ -0,0 +1,40 @@ +--- Makefile.orig 2021-11-20 12:28:32 UTC ++++ Makefile +@@ -10,10 +10,10 @@ EXE_test = uri_test + OBJS_test = uri_test.o + EXE = badwolf + EXE_test = uri_test +-TRANS = fr.mo pt_BR.mo tr.mo de.mo vi.mo ++#TRANS = fr.mo pt_BR.mo tr.mo de.mo vi.mo + DOCS = usr.bin.badwolf README.md KnowledgeBase.md interface.txt + +-all: config.mk $(EXE) $(TRANS) po/messages.pot ++all: config.mk $(EXE) + + config.mk: configure + @echo "Error: You need to execute ./configure before running make" +@@ -35,9 +35,9 @@ po/%.po: po/messages.pot + po/%.po: po/messages.pot + msgmerge --update --backup=off $@ $< + +-${TRANS}: po/${@:.mo=.po} +- mkdir -p locale/${@:.mo=}/LC_MESSAGES +- $(MSGFMT) -o locale/${@:.mo=}/LC_MESSAGES/$(PACKAGE).mo po/${@:.mo=.po} ++#${TRANS}: po/${@:.mo=.po} ++# mkdir -p locale/${@:.mo=}/LC_MESSAGES ++# $(MSGFMT) -o locale/${@:.mo=}/LC_MESSAGES/$(PACKAGE).mo po/${@:.mo=.po} + + badwolf: $(OBJS) + $(CC) -std=c11 -o $@ $(OBJS) $(LDFLAGS) $(LIBS) +@@ -62,9 +62,8 @@ install: all + cp -p badwolf $(DESTDIR)$(BINDIR)/ + mkdir -p $(DESTDIR)$(MANDIR)/man1 + cp -p badwolf.1 $(DESTDIR)$(MANDIR)/man1/ +- mkdir -p $(DESTDIR)$(DATADIR)/locale +- cp -r locale/ $(DESTDIR)$(DATADIR)/ +- cp interface.css $(DESTDIR)$(DATADIR)/ ++ mkdir -p $(DESTDIR)$(DATADIR) ++ cp -p interface.css $(DESTDIR)$(DATADIR)/ + mkdir -p $(DESTDIR)$(APPSDIR) + cp -p badwolf.desktop $(DESTDIR)$(APPSDIR)/ + mkdir -p $(DESTDIR)$(DOCDIR) diff --git a/www/badwolf/pkg-descr b/www/badwolf/pkg-descr new file mode 100644 index 000000000000..58ff2a951e9f --- /dev/null +++ b/www/badwolf/pkg-descr @@ -0,0 +1,14 @@ +BadWolf is a minimalist and privacy-oriented WebKitGTK+ browser. + +Features: + +* Privacy-oriented: No browser-level tracking, multiple ephemeral + isolated sessions per new unrelated tabs, JavaScript off by default. +* Minimalist: Small codebase (~1 500 LoC), reuses existing components + when available or makes them available. +* Customizable: WebKitGTK native extensions, Interface customizable + through CSS. +* Powerful & Usable: Stable User-Interface; The common shortcuts are + available, no vi-modal edition or single-key shortcuts are used. +* No annoyances: Dialogs are only used when required (save file, + print, ...), javascript popups open in a background tab. diff --git a/www/badwolf/pkg-plist b/www/badwolf/pkg-plist new file mode 100644 index 000000000000..9602e21cb05f --- /dev/null +++ b/www/badwolf/pkg-plist @@ -0,0 +1,17 @@ +bin/badwolf +share/applications/badwolf.desktop +%%NLS%%%%DATADIR%%/de/LC_MESSAGES/Badwolf.mo +%%NLS%%%%DATADIR%%/fr/LC_MESSAGES/Badwolf.mo +%%DATADIR%%/interface.css +%%NLS%%%%DATADIR%%/pt_BR/LC_MESSAGES/Badwolf.mo +%%NLS%%%%DATADIR%%/tr/LC_MESSAGES/Badwolf.mo +%%NLS%%%%DATADIR%%/vi/LC_MESSAGES/Badwolf.mo +share/icons/hicolor/128x128/apps/badwolf.png +share/icons/hicolor/24x24/apps/badwolf.png +share/icons/hicolor/256x256/apps/badwolf.png +share/icons/hicolor/32x32/apps/badwolf.png +share/icons/hicolor/48x48/apps/badwolf.png +share/icons/hicolor/64x64/apps/badwolf.png +share/icons/hicolor/scalable/apps/badwolf.svg +share/man/man1/badwolf.1.gz +%%NLS%%@dir %%DATADIR%%/locale