diff --git a/www/Makefile b/www/Makefile --- a/www/Makefile +++ b/www/Makefile @@ -453,6 +453,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 --- /dev/null +++ b/www/newsraft/Makefile @@ -0,0 +1,40 @@ +PORTNAME= newsraft +DISTVERSION= 0.23 +CATEGORIES= www +MASTER_SITES= https://codeberg.org/${PORTNAME}/${PORTNAME}/archive/${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}?dummy=/ + +MAINTAINER= agh@riseup.net +COMMENT= TUI news feed aggregator +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= gmake ncurses pkgconfig sqlite + +MAKEFILE= makefile +MAKE_ENV= CC="${CC}" \ + CFLAGS="${CFLAGS}" \ + EXAMPLES_DIR="${EXAMPLESDIR}" \ + LDFLAGS="${LDFLAGS}" \ + PREFIX="${PREFIX}" + +SUB_FILES= pkg-message + +WRKSRC= ${WRKDIR}/${PORTNAME} + +PLIST_FILES= bin/${PORTNAME} \ + share/man/man1/${PORTNAME}.1.gz +PORTEXAMPLES= * + +OPTIONS_DEFINE= EXAMPLES + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include diff --git a/www/newsraft/distinfo b/www/newsraft/distinfo new file mode 100644 --- /dev/null +++ b/www/newsraft/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1706407361 +SHA256 (newsraft-0.23.tar.gz) = 22c835f56ff84a4aadc86d9e56a5d8e531cc966ff6a1404f0b3f8f1a1a0655dc +SIZE (newsraft-0.23.tar.gz) = 139740 diff --git a/www/newsraft/files/patch-makefile b/www/newsraft/files/patch-makefile new file mode 100644 --- /dev/null +++ b/www/newsraft/files/patch-makefile @@ -0,0 +1,28 @@ +--- makefile.orig 2023-11-27 07:40:59 UTC ++++ makefile +@@ -1,9 +1,9 @@ + .POSIX: + .PHONY: all install install-newsraft install-man install-examples man html clean check cppcheck clang-tidy + +-CC = cc +-CFLAGS = -O3 +-LDFLAGS = ++CC ?= cc ++CFLAGS ?= -O3 ++LDFLAGS ?= + CURL_CFLAGS = `pkg-config --cflags libcurl 2>/dev/null` + CURL_LIBS = `pkg-config --libs libcurl 2>/dev/null || echo '-lcurl'` + CURSES_CFLAGS = `pkg-config --cflags ncursesw 2>/dev/null` +@@ -23,10 +23,10 @@ DESTDIR = + AUXCFLAGS = $(CURL_CFLAGS) $(CURSES_CFLAGS) $(EXPAT_CFLAGS) $(GUMBO_CFLAGS) $(SQLITE_CFLAGS) $(YAJL_CFLAGS) + LDLIBS = $(CURL_LIBS) $(CURSES_LIBS) $(EXPAT_LIBS) $(GUMBO_LIBS) $(SQLITE_LIBS) $(YAJL_LIBS) $(PTHREAD_LIBS) + DESTDIR = +-PREFIX = /usr/local ++PREFIX ?= /usr/local + BINDIR = $(PREFIX)/bin + MANDIR = $(PREFIX)/share/man +-EXAMPLES_DIR = $(PREFIX)/share/newsraft/examples ++EXAMPLES_DIR ?= $(PREFIX)/share/newsraft/examples + + all: newsraft + diff --git a/www/newsraft/files/pkg-message.in b/www/newsraft/files/pkg-message.in new file mode 100644 --- /dev/null +++ b/www/newsraft/files/pkg-message.in @@ -0,0 +1,12 @@ +[ +{ type: install + message: <