git: 82f95fc81d78 - main - www/rdrview: CLI tool to extract the main content from a webpage
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Oct 2025 13:56:58 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=82f95fc81d78fe1a48bba2fc280a05c43a4069be
commit 82f95fc81d78fe1a48bba2fc280a05c43a4069be
Author: Piotr Smyrak <ps.ports@smyrak.com>
AuthorDate: 2025-10-20 14:36:57 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-10-22 13:56:42 +0000
www/rdrview: CLI tool to extract the main content from a webpage
rdrview is a command line tool to extract the main content from a webpage.
It's an adaptation of Mozilla readibility.js to a C program that works in
a Capsicum sandbox.
WWW: https://github.com/eafer/rdrview/
PR: 289983
---
www/Makefile | 1 +
www/rdrview/Makefile | 35 +++++++++++++++++++++++++++++++++++
www/rdrview/distinfo | 3 +++
www/rdrview/pkg-descr | 3 +++
4 files changed, 42 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index e33143bac4db..8a0a86640272 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2039,6 +2039,7 @@
SUBDIR += quark
SUBDIR += qutebrowser
SUBDIR += radicale
+ SUBDIR += rdrview
SUBDIR += rearx
SUBDIR += reddsaver
SUBDIR += redmine51
diff --git a/www/rdrview/Makefile b/www/rdrview/Makefile
new file mode 100644
index 000000000000..54405f77e67f
--- /dev/null
+++ b/www/rdrview/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= rdrview
+DISTVERSIONPREFIX=v
+DISTVERSION= 0.1.4
+CATEGORIES= www
+
+MAINTAINER= ps.ports@smyrak.com
+COMMENT= CLI tool to extract the main content from a webpage
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libcurl.so:ftp/curl \
+ libiconv.so:converters/libiconv \
+ libxml2.so:textproc/libxml2
+
+USES= gmake
+
+USE_GITHUB= yes
+GH_ACCOUNT= eafer
+
+MAKE_ARGS= CC=${CC} \
+ GIT_COMMIT=${DISTVERSIONFULL}
+ALL_TARGET= ${PORTNAME}
+
+PLIST_FILES= bin/rdrview \
+ share/man/man1/rdrview.1.gz
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/rdrview ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/rdrview.1 ${STAGEDIR}${PREFIX}/share/man/man1/
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/www/rdrview/distinfo b/www/rdrview/distinfo
new file mode 100644
index 000000000000..a32845fe9b72
--- /dev/null
+++ b/www/rdrview/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760969475
+SHA256 (eafer-rdrview-v0.1.4_GH0.tar.gz) = a1a7197c7a8a813630b77fa4485fe8808f67c4c1c8aed3b0ea89eaf6f9bd84e1
+SIZE (eafer-rdrview-v0.1.4_GH0.tar.gz) = 4685772
diff --git a/www/rdrview/pkg-descr b/www/rdrview/pkg-descr
new file mode 100644
index 000000000000..c825fab0cf40
--- /dev/null
+++ b/www/rdrview/pkg-descr
@@ -0,0 +1,3 @@
+rdrview is a command line tool to extract the main content from a webpage.
+It's an adaptation of Mozilla readibility.js to a C program that works in
+a Capsicum sandbox.