git: db51a0e68e00 - main - www/offpunk: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Oct 2023 14:15:33 UTC
The branch main has been updated by jbo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=db51a0e68e0021198ae21c1c7de9b5b03d346108
commit db51a0e68e0021198ae21c1c7de9b5b03d346108
Author: Martin Neubauer <m.ne@gmx.net>
AuthorDate: 2023-10-04 11:18:20 +0000
Commit: Joel Bodenmann <jbo@FreeBSD.org>
CommitDate: 2023-10-30 14:14:50 +0000
www/offpunk: Add new port
Offline-first gemini/web/gopher/rss reader and browser.
PR: 273554
Approved by: zirias (mentor)
Differential Revision: https://reviews.freebsd.org/D42071
---
www/Makefile | 1 +
www/offpunk/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++
www/offpunk/distinfo | 3 +++
www/offpunk/pkg-descr | 5 +++++
4 files changed, 51 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index f62f73e7c81f..483a002035ed 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -492,6 +492,7 @@
SUBDIR += npm-node20
SUBDIR += oauth2-proxy
SUBDIR += obhttpd
+ SUBDIR += offpunk
SUBDIR += oneshot
SUBDIR += onionbalance
SUBDIR += onionshare
diff --git a/www/offpunk/Makefile b/www/offpunk/Makefile
new file mode 100644
index 000000000000..41bd3486fd6b
--- /dev/null
+++ b/www/offpunk/Makefile
@@ -0,0 +1,42 @@
+PORTNAME= offpunk
+PORTVERSION= 1.10
+DISTVERSIONPREFIX= v
+CATEGORIES= www python
+MASTER_SITES= https://git.sr.ht/~lioploum/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
+
+MAINTAINER= m.ne@gmx.net
+COMMENT= Offline-first gemini/web/gopher/rss reader and browser
+WWW= https://sr.ht/~lioploum/offpunk/
+
+LICENSE= BSD2CLAUSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>0:devel/py-flit-core@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}cryptography>0:security/py-cryptography@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}feedparser>0:textproc/py-feedparser@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}readability-lxml>0:www/py-readability-lxml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
+
+USES= python shebangfix
+USE_PYTHON= autoplist pep517
+SHEBANG_FILES= offpunk.py
+
+NO_ARCH= yes
+
+OPTIONS_DEFINE= CHAFA CHARDET SETPROCTITLE TIMG XSEL
+
+CHAFA_DESC= Allows to display pictures in your console
+CHARDET_DESC= Detect the character encoding on Gopher
+SETPROCTITLE_DESC= Change the process name to "offpunk"
+TIMG_DESC= Slower alternative to chafa for inline images
+XSEL_DESC= Allows to go to the URL copied in the clipboard
+
+CHAFA_RUN_DEPENDS= chafa>=1.3.2>0:graphics/chafa
+CHARDET_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>0:textproc/py-chardet@${PY_FLAVOR}
+SETPROCTITLE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setproctitle>0:devel/py-setproctitle@${PY_FLAVOR}
+TIMG_RUN_DEPENDS= timg>=1.3.2>0:graphics/timg
+XSEL_RUN_DEPENDS= xsel-conrad>0:x11/xsel-conrad
+
+.include <bsd.port.mk>
diff --git a/www/offpunk/distinfo b/www/offpunk/distinfo
new file mode 100644
index 000000000000..ad13874c7c73
--- /dev/null
+++ b/www/offpunk/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1691366454
+SHA256 (offpunk-v1.10.tar.gz) = 1715e819cbf1475943b16aba18a157a26bc8da5184dc6c5b1f1bbcf8e5455eea
+SIZE (offpunk-v1.10.tar.gz) = 210865
diff --git a/www/offpunk/pkg-descr b/www/offpunk/pkg-descr
new file mode 100644
index 000000000000..eb864ee56e81
--- /dev/null
+++ b/www/offpunk/pkg-descr
@@ -0,0 +1,5 @@
+A command-line and offline-first smolnet browser/feed reader for Gemini, Gopher,
+Spartan and Web.
+
+The goal of Offpunk is to be able to synchronise your content once (a day, a
+week, a month) and then browse/organise it while staying disconnected.