newsboat213: import newsboat-2.13 as wip/newsboat213

Newsboat is a fork of Newsbeuter, an RSS/Atom feed reader for the
text console.  It runs on Linux, FreeBSD, Mac OS X and other
Unix-like operating systems.  Newsboat's great configurability and
vast number of features make it a perfect choice for people that
need a slick and fast feed reader that can be completely controlled
via keyboard.  It's the Mutt of RSS feed readers.

This is the last release of newsboat which does not depend on
lang/rust to build.
This commit is contained in:
Yorick Hardy 2019-01-01 15:30:38 +02:00
parent 16bcfef404
commit 3464e6df8b
7 changed files with 127 additions and 0 deletions

View File

@ -2281,6 +2281,7 @@ SUBDIR+= netwmpager
SUBDIR+= netwox
SUBDIR+= netx
SUBDIR+= newsboat
SUBDIR+= newsboat213
SUBDIR+= nicotine+
SUBDIR+= nightfall
SUBDIR+= nih-current

9
newsboat213/DESCR Normal file
View File

@ -0,0 +1,9 @@
Newsboat is a fork of Newsbeuter, an RSS/Atom feed reader for the
text console. It runs on Linux, FreeBSD, Mac OS X and other
Unix-like operating systems. Newsboat's great configurability and
vast number of features make it a perfect choice for people that
need a slick and fast feed reader that can be completely controlled
via keyboard. It's the Mutt of RSS feed readers.
This is the last release of newsboat which does not depend on
lang/rust to build.

43
newsboat213/Makefile Normal file
View File

@ -0,0 +1,43 @@
# $NetBSD$
DISTNAME= newsboat-2.13
CATEGORIES= news
MASTER_SITES= https://newsboat.org/releases/2.13/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://newsboat.org/
COMMENT= RSS/Atom feed reader for the text console
LICENSE= mit
USE_LANGUAGES= c c++
USE_TOOLS+= gmake pkg-config msgfmt
USE_CURSES= wide
REPLACE_PERL+= txt2h.pl
BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
BUILD_TARGET= all doc
FAKE_NCURSES= yes
INSTALL_MAKE_FLAGS+= prefix=${PREFIX} mandir=${PREFIX}/${PKGMANDIR}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
SUBST_CLASSES+= makefile
SUBST_STAGE.makefile= pre-build
SUBST_MESSAGE.makefile= Fixing distribution Makefile...
SUBST_FILES.makefile= ${MAKE_FILE}
SUBST_SED.makefile= -e 's/^ifneq.*//; s/^endif.*//'
.endif
.include "../../converters/libiconv/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/stfl/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../textproc/json-c/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

29
newsboat213/PLIST Normal file
View File

@ -0,0 +1,29 @@
@comment $NetBSD$
bin/newsboat
bin/podboat
man/man1/newsboat.1
man/man1/podboat.1
share/doc/newsboat/docbook-xsl.css
share/doc/newsboat/examples/config
share/doc/newsboat/faq.html
share/doc/newsboat/newsboat.html
share/locale/ca/LC_MESSAGES/newsboat.mo
share/locale/de/LC_MESSAGES/newsboat.mo
share/locale/es/LC_MESSAGES/newsboat.mo
share/locale/es_ES/LC_MESSAGES/newsboat.mo
share/locale/fr/LC_MESSAGES/newsboat.mo
share/locale/hu/LC_MESSAGES/newsboat.mo
share/locale/it/LC_MESSAGES/newsboat.mo
share/locale/ja/LC_MESSAGES/newsboat.mo
share/locale/nb/LC_MESSAGES/newsboat.mo
share/locale/nl/LC_MESSAGES/newsboat.mo
share/locale/pl/LC_MESSAGES/newsboat.mo
share/locale/pt_BR/LC_MESSAGES/newsboat.mo
share/locale/ru/LC_MESSAGES/newsboat.mo
share/locale/sk/LC_MESSAGES/newsboat.mo
share/locale/sv/LC_MESSAGES/newsboat.mo
share/locale/tr/LC_MESSAGES/newsboat.mo
share/locale/uk/LC_MESSAGES/newsboat.mo
share/locale/zh/LC_MESSAGES/newsboat.mo
share/locale/zh_TW/LC_MESSAGES/newsboat.mo
@pkgdir man/man1

8
newsboat213/distinfo Normal file
View File

@ -0,0 +1,8 @@
$NetBSD$
SHA1 (newsboat-2.13.tar.xz) = cf50d04a69b360864cf9ae31b831fa2bfd281971
RMD160 (newsboat-2.13.tar.xz) = 3c6d62fef4221bc6aecb9685f1530ed074454f38
SHA512 (newsboat-2.13.tar.xz) = f7ce9717540e1c38809a44d531d28b26d5f9759479d311c127adec1ed6f3f6e8ad68799559ed31e9ecde7a988a683b0c9f58ff10e8dd4b2de60d75b7f8efe3da
Size (newsboat-2.13.tar.xz) = 460076 bytes
SHA1 (patch-config.sh) = 3451c0ad9507c76950860f9d9992791199851819
SHA1 (patch-newsboat.cpp) = 3ef8b249ba1c25f1a3fb99a742b73706b06e4688

View File

@ -0,0 +1,17 @@
$NetBSD$
Remove overly "smart" detection script for ncurses. This doesn't work on NetBSD.
If libstfl is linked against the system-wide curses, you can't later link against
ncurses. Newsboat can use the ncursesw compat offered by NetBSD 6.x native curses.
--- config.sh.orig 2017-12-25 17:49:35.000000000 +0000
+++ config.sh
@@ -106,6 +106,8 @@ check_pkg "stfl" || fail "stfl"
if [ `uname -s` = "Darwin" ]; then
check_custom "ncurses5.4" "ncurses5.4-config" || fail "ncurses5.4"
+elif [ `uname -s` = "NetBSD" ]; then
+ echo "Assuming native NetBSD curses should be used"
elif [ `uname -s` != "OpenBSD" ]; then
check_pkg "ncursesw" || \
check_custom "ncursesw5" "ncursesw5-config" || \

View File

@ -0,0 +1,20 @@
$NetBSD$
Everything works, but native curses has no curses_version(), so rip out that bit.
--- newsboat.cpp.orig 2018-09-22 16:56:08.000000000 +0000
+++ newsboat.cpp
@@ -134,9 +134,13 @@ void print_version(const std::string& ar
#if defined(__GNUC__) && defined(__VERSION__)
ss << "Compiler: g++ " << __VERSION__ << std::endl;
#endif
+#if defined(__NetBSD__)
+ std::cout << "Native NetBSD curses" << std::endl;
+#else
ss << "ncurses: " << curses_version()
<< " (compiled with " << NCURSES_VERSION << ")"
<< std::endl;
+#endif
ss << "libcurl: " << curl_version() << " (compiled with "
<< LIBCURL_VERSION << ")" << std::endl;
ss << "SQLite: " << sqlite3_libversion()