update to newsraft-0.12, based on a diff from Juan Picca

This commit is contained in:
sthen 2022-11-28 16:24:12 +00:00
parent 9e314f293e
commit 5137c5c1e0
4 changed files with 7 additions and 22 deletions

View File

@ -1,6 +1,6 @@
COMMENT= lightweight feed reader for text terminals
DISTNAME= newsraft-0.11
DISTNAME= newsraft-0.12
WRKDIST= ${WRKDIR}/newsraft
CATEGORIES= www
@ -26,5 +26,7 @@ MAKE_FILE= makefile
MAKE_FLAGS= CC="${CC}" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FAKE_FLAGS= MANDIR=${PREFIX}/man \
EXAMPLES_DIR=${PREFIX}/share/examples/newsraft
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (newsraft-0.11.tar.gz) = N7sB3Ua9pgzzcD2UJkYAPxZUSMRHbnwXk1S1sEIJA0Q=
SIZE (newsraft-0.11.tar.gz) = 76318
SHA256 (newsraft-0.12.tar.gz) = bxmMlZyOXrTOb6DDx46Zgp8VlYVXRrDEzsPpv9BgQGw=
SIZE (newsraft-0.12.tar.gz) = 76081

View File

@ -1,18 +0,0 @@
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)

View File

@ -3,7 +3,8 @@
+-------------------------------------------------------------------------------
To use newsraft, copy the example configuration and feeds files
to $XDG_CONFIG_HOME or your home directory and modify as required:
to $XDG_CONFIG_HOME/newsraft (typically ~/.config) and modify
as required:
$ mkdir -p ~/.config/newsraft
$ cp ${TRUEPREFIX}/share/examples/newsraft/{config,feeds} ~/.config/newsraft/