import ports/www/newsraft, ok tracey@

Newsraft is a feed reader with ncurses user interface. It is greatly
inspired by Newsboat and tries to be its lightweight counterpart.
This commit is contained in:
sthen 2022-09-10 19:48:32 +00:00
parent de678503b2
commit 0ebd396fa2
6 changed files with 67 additions and 0 deletions

30
www/newsraft/Makefile Normal file
View File

@ -0,0 +1,30 @@
COMMENT= lightweight feed reader for text terminals
DISTNAME= newsraft-0.9
WRKDIST= ${WRKDIR}/newsraft
CATEGORIES= www
HOMEPAGE= https://codeberg.org/grisha/newsraft
# MIT
PERMIT_PACKAGE= Yes
WANTLIB += c curl curses expat gumbo pthread sqlite3 yajl
MASTER_SITES= https://codeberg.org/grisha/newsraft/archive/
BUILD_DEPENDS= textproc/scdoc
LIB_DEPENDS= databases/sqlite3 \
net/curl \
devel/libyajl \
www/gumbo
NO_TEST= Yes
MAKE_FILE= makefile
MAKE_FLAGS= CC="${CC}" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.mk>

2
www/newsraft/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (newsraft-0.9.tar.gz) = qusrVAuT+B/prHN1dE8C1uvKgFnPJ7c9fEVUN1Kn4EE=
SIZE (newsraft-0.9.tar.gz) = 74458

View File

@ -0,0 +1,18 @@
Index: makefile
--- makefile.orig
+++ makefile
@@ -29,11 +29,11 @@ install-newsraft: newsraft
install -Dm755 newsraft $(DESTDIR)$(PREFIX)/bin/newsraft
install-doc: doc
- install -Dm644 newsraft.1 $(DESTDIR)$(PREFIX)/share/man/man1/newsraft.1
+ install -Dm644 newsraft.1 $(DESTDIR)$(PREFIX)/man/man1/newsraft.1
install-examples:
- install -Dm644 examples/feeds $(DESTDIR)$(PREFIX)/share/newsraft/examples/feeds
- install -Dm644 examples/config $(DESTDIR)$(PREFIX)/share/newsraft/examples/config
+ install -Dm644 examples/feeds $(DESTDIR)$(PREFIX)/share/examples/newsraft/feeds
+ install -Dm644 examples/config $(DESTDIR)$(PREFIX)/share/examples/newsraft/config
newsraft: $(OBJECTS)
$(CC) -std=c99 $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS)

2
www/newsraft/pkg/DESCR Normal file
View File

@ -0,0 +1,2 @@
Newsraft is a feed reader with ncurses user interface. It is greatly
inspired by Newsboat and tries to be its lightweight counterpart.

6
www/newsraft/pkg/PLIST Normal file
View File

@ -0,0 +1,6 @@
@bin bin/newsraft
@man man/man1/newsraft.1
share/doc/pkg-readmes/${PKGSTEM}
share/examples/newsraft/
share/examples/newsraft/config
share/examples/newsraft/feeds

9
www/newsraft/pkg/README Normal file
View File

@ -0,0 +1,9 @@
+-------------------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------
To use newsraft, copy the example configuration and feeds files
to $XDG_CONFIG_HOME or your home directory and modify as required:
$ mkdir -p ~/.config/newsraft
$ cp ${TRUEPREFIX}/share/examples/newsraft/{config,feeds} ~/.config/newsraft/