git: 85237ead741e - main - www/newsraft: New port: feed reader for terminal
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Aug 2024 06:00:39 UTC
The branch main has been updated by uzsolt: URL: https://cgit.FreeBSD.org/ports/commit/?id=85237ead741ef2d1f41167cb3fb363fd69e84d09 commit 85237ead741ef2d1f41167cb3fb363fd69e84d09 Author: Zsolt Udvari <uzsolt@FreeBSD.org> AuthorDate: 2024-08-05 05:56:40 +0000 Commit: Zsolt Udvari <uzsolt@FreeBSD.org> CommitDate: 2024-08-05 05:59:50 +0000 www/newsraft: New port: feed reader for terminal Newsraft is a feed reader with ncurses user interface. It's greatly inspired by Newsboat and tries to be its lightweight counterpart. --- www/Makefile | 1 + www/newsraft/Makefile | 30 +++++++++++++++++++++++++++++ www/newsraft/distinfo | 3 +++ www/newsraft/files/patch-tests_run-check.sh | 11 +++++++++++ www/newsraft/pkg-descr | 14 ++++++++++++++ www/newsraft/pkg-plist | 4 ++++ 6 files changed, 63 insertions(+) diff --git a/www/Makefile b/www/Makefile index 329394f33c5c..8e525a3cda62 100644 --- a/www/Makefile +++ b/www/Makefile @@ -442,6 +442,7 @@ SUBDIR += netstiff SUBDIR += netsurf SUBDIR += newsboat + SUBDIR += newsraft SUBDIR += nextcloud SUBDIR += nextcloud-appointments SUBDIR += nextcloud-calendar diff --git a/www/newsraft/Makefile b/www/newsraft/Makefile new file mode 100644 index 000000000000..3df276e2fc06 --- /dev/null +++ b/www/newsraft/Makefile @@ -0,0 +1,30 @@ +PORTNAME= newsraft +DISTVERSION= 0.25 +CATEGORIES= www +MASTER_SITES= https://codeberg.org/${PORTNAME}/${PORTNAME}/archive/ + +MAINTAINER= uzsolt@FreeBSD.org +COMMENT= Feed reader for terminal +WWW= https://codeberg.org/newsraft/newsraft + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/doc/license.txt + +LIB_DEPENDS= libcurl.so:ftp/curl \ + libexpat.so:textproc/expat2 \ + libgumbo.so:devel/gumbo \ + libyajl.so:devel/yajl + +USES= ncurses pkgconfig sqlite + +MAKEFILE= makefile +MAKE_ARGS+= CFLAGS="${CFLAGS}" +# One test fails but manually run "make check" from WRKSRC it pass +TEST_TARGET= check + +WRKSRC= ${WRKDIR}/${PORTNAME} + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include <bsd.port.mk> diff --git a/www/newsraft/distinfo b/www/newsraft/distinfo new file mode 100644 index 000000000000..60ddc9b33a80 --- /dev/null +++ b/www/newsraft/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722796728 +SHA256 (newsraft-0.25.tar.gz) = 99e587c8dcd22addd1dbd1f6f3a823af234a941009f016abbbf325ab5a6c44a0 +SIZE (newsraft-0.25.tar.gz) = 153586 diff --git a/www/newsraft/files/patch-tests_run-check.sh b/www/newsraft/files/patch-tests_run-check.sh new file mode 100644 index 000000000000..e573993795a4 --- /dev/null +++ b/www/newsraft/files/patch-tests_run-check.sh @@ -0,0 +1,11 @@ +--- tests/run-check.sh.orig 2024-05-26 22:09:20 UTC ++++ tests/run-check.sh +@@ -13,7 +13,7 @@ do + do + tests_count="$((tests_count + 1))" + rm -rf test-database* +- if ${CC:-cc} -Isrc -DTEST -o ./a.out "$test_file" -L. -lnewsraft && env LD_LIBRARY_PATH=. ./a.out; then ++ if ${CC:-cc} `pkg-config --cflags sqlite3` -Isrc -DTEST -o ./a.out "$test_file" -L. -lnewsraft && env LD_LIBRARY_PATH=. ./a.out; then + echo "[OKAY] $test_file" + okays_count="$((okays_count + 1))" + else diff --git a/www/newsraft/pkg-descr b/www/newsraft/pkg-descr new file mode 100644 index 000000000000..f00cf69a8ce7 --- /dev/null +++ b/www/newsraft/pkg-descr @@ -0,0 +1,14 @@ +Newsraft is a feed reader with ncurses user interface. It's greatly inspired by +Newsboat and tries to be its lightweight counterpart. + +Features: +* Parallel downloads +* Section-based feeds grouping +* Opening links in any program +* Viewing news from all feeds with explore mode +* Automatic updates for feeds and sections +* Per-feed settings and key bindings +* Assigning multiple actions to key bindings +* Processing feeds from command output +* Text searching by news titles and content +* Interactive news content viewing diff --git a/www/newsraft/pkg-plist b/www/newsraft/pkg-plist new file mode 100644 index 000000000000..7847e2540da7 --- /dev/null +++ b/www/newsraft/pkg-plist @@ -0,0 +1,4 @@ +bin/newsraft +share/man/man1/newsraft.1.gz +%%DATADIR%%/examples/config +%%DATADIR%%/examples/feeds