git: 221e48d135aa - main - www/vieb: Add new port

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Wed, 08 Nov 2023 10:58:53 UTC
The branch main has been updated by nivit:

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

commit 221e48d135aafe0a9508f4efd214495a92e4d103
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2023-11-08 10:50:14 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2023-11-08 10:50:14 +0000

    www/vieb: Add new port
    
    Vim Inspired Electron Browser - Vim bindings for the web by design
    
    Main features:
    
      - Local first adblocking, auto-complete, AMP protection, custom redirects and
        more, all without web requests
      - Privacy with strict permission system, navigator overrides, custom
        useragent, custom WebRTC policy and more
      - Accessible with custom themes, full interface & fontsize scaling, page
        zooming, spellcheck and mouse support
      - Window splitting with buffer, split, Vexplore and Ctrl-w bindings, for
        multi-window browsing
      - Map commands for completely custom keyboard sequences, keystrokes, commands
        and actions
      - Set command for runtime setting configuration exactly like Vim
      - Vim-compatible options like showcmd, timeout, colorscheme, maxmapdepth,
        spelllang, splitright, smartcase etc.
      - Container tabs with colored grouping, auto-clearing, individual cookies and
        tab restore from containers
      - Ad-blocker with cosmetic filtering, optional updater, custom lists and uses
        easylist/easyprivacy by default
      - Tabs including audio indicator, a toggle for multi-line tabs, pinned tabs,
        muted tabs and suspended tabs
    
    WWW:    https://vieb.dev
    
    Pre-built packages for the impatient ones:
    
    https://people.freebsd.org/~nivit/public_distfiles/electron25/electron25-25.9.3.pkg (dependency)
    https://people.freebsd.org/~nivit/public_distfiles/vieb/vieb-10.2.0.pkg
---
 www/Makefile                |  1 +
 www/vieb/Makefile           | 36 +++++++++++++++++++
 www/vieb/distinfo           |  5 +++
 www/vieb/files/vieb.desktop |  9 +++++
 www/vieb/files/vieb.in      |  8 +++++
 www/vieb/pkg-descr          | 23 +++++++++++++
 www/vieb/pkg-plist          | 84 +++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 166 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 4b669890cd65..f63eec28662f 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2460,6 +2460,7 @@
     SUBDIR += vdradmin-am
     SUBDIR += vertx
     SUBDIR += vger
+    SUBDIR += vieb
     SUBDIR += vigil
     SUBDIR += vimb
     SUBDIR += visitors
diff --git a/www/vieb/Makefile b/www/vieb/Makefile
new file mode 100644
index 000000000000..ce92102476e2
--- /dev/null
+++ b/www/vieb/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	vieb
+DISTVERSION=	10.2.0
+CATEGORIES=	www
+MASTER_SITES=	https://github.com/Jelmerro/Vieb/releases/download/${PORTVERSION}/ \
+		LOCAL/nivit/${PORTNAME}/:images
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
+		${PORTNAME}-images-${PORTVERSION}${EXTRACT_SUFX}:images
+
+MAINTAINER=	nivit@FreeBSD.org
+COMMENT=	Vim Inspired Electron Browser
+WWW=		https://vieb.dev
+
+LICENSE=	GPLv3+
+
+USES=		desktop-file-utils electronfix:25
+
+NO_BUILD=	yes
+SUB_FILES=	${PORTNAME}
+
+ELECTRONFIX_MAIN_EXECUTABLE=	${PORTNAME}
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${PATCHDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}/
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}
+.for size in 16 32 48 64 128 256 512 1024
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}x${size}/apps
+	cd ${WRKDIR}/${PORTNAME}-images-${PORTVERSION} && \
+	${INSTALL_DATA} icons/${size}x${size}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}x${size}/apps/${PORTNAME}.png
+.endfor
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
+	cd ${WRKDIR}/${PORTNAME}-images-${PORTVERSION} && \
+	${INSTALL_DATA} ${PORTNAME}.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
+
+.include <bsd.port.mk>
diff --git a/www/vieb/distinfo b/www/vieb/distinfo
new file mode 100644
index 000000000000..d5b98359a7a7
--- /dev/null
+++ b/www/vieb/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1699434195
+SHA256 (vieb-10.2.0.tar.gz) = 9cd749f2a2da03ecf05434ce9cc4f10496bb64c6746de64a18151d02676b46ab
+SIZE (vieb-10.2.0.tar.gz) = 94327485
+SHA256 (vieb-images-10.2.0.tar.gz) = ba25e06e1a64a7d371cb77516bd9de59051b670b910c86d083e53e85390ccdf6
+SIZE (vieb-images-10.2.0.tar.gz) = 970335
diff --git a/www/vieb/files/vieb.desktop b/www/vieb/files/vieb.desktop
new file mode 100644
index 000000000000..b896d8613852
--- /dev/null
+++ b/www/vieb/files/vieb.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Categories=Network;WebBrowser;
+Comment=Vieb Inspired Electron Browser
+Exec=vieb %U
+Icon=vieb
+MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;
+Name=Vieb
+Terminal=false
+Type=Application
diff --git a/www/vieb/files/vieb.in b/www/vieb/files/vieb.in
new file mode 100644
index 000000000000..c93fe56b7c2b
--- /dev/null
+++ b/www/vieb/files/vieb.in
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+# workaround Chromium bug https://bugs.chromium.org/p/chromium/issues/detail?id=918234
+if [ "$DBUS_SESSION_BUS_ADDRESS" = "" ]; then                                   
+    export DBUS_SESSION_BUS_ADDRESS="autolaunch:"                               
+fi
+
+exec %%DATADIR%%/vieb "$@"
diff --git a/www/vieb/pkg-descr b/www/vieb/pkg-descr
new file mode 100644
index 000000000000..2fa922bc2834
--- /dev/null
+++ b/www/vieb/pkg-descr
@@ -0,0 +1,23 @@
+Vim Inspired Electron Browser - Vim bindings for the web by design
+
+Main features:
+
+  - Local first adblocking, auto-complete, AMP protection, custom redirects and
+    more, all without web requests
+  - Privacy with strict permission system, navigator overrides, custom
+    useragent, custom WebRTC policy and more
+  - Accessible with custom themes, full interface & fontsize scaling, page
+    zooming, spellcheck and mouse support
+  - Window splitting with buffer, split, Vexplore and Ctrl-w bindings, for
+    multi-window browsing
+  - Map commands for completely custom keyboard sequences, keystrokes, commands
+    and actions
+  - Set command for runtime setting configuration exactly like Vim
+  - Vim-compatible options like showcmd, timeout, colorscheme, maxmapdepth,
+    spelllang, splitright, smartcase etc.
+  - Container tabs with colored grouping, auto-clearing, individual cookies and
+    tab restore from containers
+  - Ad-blocker with cosmetic filtering, optional updater, custom lists and uses
+    easylist/easyprivacy by default
+  - Tabs including audio indicator, a toggle for multi-line tabs, pinned tabs,
+    muted tabs and suspended tabs
diff --git a/www/vieb/pkg-plist b/www/vieb/pkg-plist
new file mode 100644
index 000000000000..04684af55189
--- /dev/null
+++ b/www/vieb/pkg-plist
@@ -0,0 +1,84 @@
+bin/vieb
+share/applications/vieb.desktop
+share/icons/hicolor/1024x1024/apps/vieb.png
+share/icons/hicolor/128x128/apps/vieb.png
+share/icons/hicolor/16x16/apps/vieb.png
+share/icons/hicolor/256x256/apps/vieb.png
+share/icons/hicolor/32x32/apps/vieb.png
+share/icons/hicolor/48x48/apps/vieb.png
+share/icons/hicolor/512x512/apps/vieb.png
+share/icons/hicolor/64x64/apps/vieb.png
+share/icons/hicolor/scalable/apps/vieb.svg
+%%DATADIR%%/LICENSE.electron.txt
+%%DATADIR%%/LICENSES.chromium.html
+%%DATADIR%%/chrome_100_percent.pak
+%%DATADIR%%/chrome_200_percent.pak
+%%DATADIR%%/chrome_crashpad_handler
+%%DATADIR%%/chromedriver
+%%DATADIR%%/icudtl.dat
+%%DATADIR%%/libEGL.so
+%%DATADIR%%/libGLESv2.so
+%%DATADIR%%/libffmpeg.so
+%%DATADIR%%/libvk_swiftshader.so
+%%DATADIR%%/libvulkan.so
+%%DATADIR%%/locales/af.pak
+%%DATADIR%%/locales/am.pak
+%%DATADIR%%/locales/ar.pak
+%%DATADIR%%/locales/bg.pak
+%%DATADIR%%/locales/bn.pak
+%%DATADIR%%/locales/ca.pak
+%%DATADIR%%/locales/cs.pak
+%%DATADIR%%/locales/da.pak
+%%DATADIR%%/locales/de.pak
+%%DATADIR%%/locales/el.pak
+%%DATADIR%%/locales/en-GB.pak
+%%DATADIR%%/locales/en-US.pak
+%%DATADIR%%/locales/es-419.pak
+%%DATADIR%%/locales/es.pak
+%%DATADIR%%/locales/et.pak
+%%DATADIR%%/locales/fa.pak
+%%DATADIR%%/locales/fi.pak
+%%DATADIR%%/locales/fil.pak
+%%DATADIR%%/locales/fr.pak
+%%DATADIR%%/locales/gu.pak
+%%DATADIR%%/locales/he.pak
+%%DATADIR%%/locales/hi.pak
+%%DATADIR%%/locales/hr.pak
+%%DATADIR%%/locales/hu.pak
+%%DATADIR%%/locales/id.pak
+%%DATADIR%%/locales/it.pak
+%%DATADIR%%/locales/ja.pak
+%%DATADIR%%/locales/kn.pak
+%%DATADIR%%/locales/ko.pak
+%%DATADIR%%/locales/lt.pak
+%%DATADIR%%/locales/lv.pak
+%%DATADIR%%/locales/ml.pak
+%%DATADIR%%/locales/mr.pak
+%%DATADIR%%/locales/ms.pak
+%%DATADIR%%/locales/nb.pak
+%%DATADIR%%/locales/nl.pak
+%%DATADIR%%/locales/pl.pak
+%%DATADIR%%/locales/pt-BR.pak
+%%DATADIR%%/locales/pt-PT.pak
+%%DATADIR%%/locales/ro.pak
+%%DATADIR%%/locales/ru.pak
+%%DATADIR%%/locales/sk.pak
+%%DATADIR%%/locales/sl.pak
+%%DATADIR%%/locales/sr.pak
+%%DATADIR%%/locales/sv.pak
+%%DATADIR%%/locales/sw.pak
+%%DATADIR%%/locales/ta.pak
+%%DATADIR%%/locales/te.pak
+%%DATADIR%%/locales/th.pak
+%%DATADIR%%/locales/tr.pak
+%%DATADIR%%/locales/uk.pak
+%%DATADIR%%/locales/ur.pak
+%%DATADIR%%/locales/vi.pak
+%%DATADIR%%/locales/zh-CN.pak
+%%DATADIR%%/locales/zh-TW.pak
+%%DATADIR%%/resources.pak
+%%DATADIR%%/resources/app.asar
+%%DATADIR%%/snapshot_blob.bin
+%%DATADIR%%/v8_context_snapshot.bin
+%%DATADIR%%/vieb
+%%DATADIR%%/vk_swiftshader_icd.json