pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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.



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Tue Jan 1 15:30:38 2019 +0200
Changeset:	3464e6df8b0697659afe9d385d1c07bdf6a4cb85

Modified Files:
	Makefile
Added Files:
	newsboat213/DESCR
	newsboat213/Makefile
	newsboat213/PLIST
	newsboat213/distinfo
	newsboat213/patches/patch-config.sh
	newsboat213/patches/patch-newsboat.cpp

Log Message:
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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3464e6df8b0697659afe9d385d1c07bdf6a4cb85

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                               |  1 +
 newsboat213/DESCR                      |  9 +++++++
 newsboat213/Makefile                   | 43 ++++++++++++++++++++++++++++++++++
 newsboat213/PLIST                      | 29 +++++++++++++++++++++++
 newsboat213/distinfo                   |  8 +++++++
 newsboat213/patches/patch-config.sh    | 17 ++++++++++++++
 newsboat213/patches/patch-newsboat.cpp | 20 ++++++++++++++++
 7 files changed, 127 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 6dbbd26c31..46f55f147b 100644
--- a/Makefile
+++ b/Makefile
@@ -2281,6 +2281,7 @@ SUBDIR+=	netwmpager
 SUBDIR+=	netwox
 SUBDIR+=	netx
 SUBDIR+=	newsboat
+SUBDIR+=	newsboat213
 SUBDIR+=	nicotine+
 SUBDIR+=	nightfall
 SUBDIR+=	nih-current
diff --git a/newsboat213/DESCR b/newsboat213/DESCR
new file mode 100644
index 0000000000..71e62e11c6
--- /dev/null
+++ b/newsboat213/DESCR
@@ -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.
diff --git a/newsboat213/Makefile b/newsboat213/Makefile
new file mode 100644
index 0000000000..5b9ddb9022
--- /dev/null
+++ b/newsboat213/Makefile
@@ -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@localhost
+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"
diff --git a/newsboat213/PLIST b/newsboat213/PLIST
new file mode 100644
index 0000000000..a00814e7f1
--- /dev/null
+++ b/newsboat213/PLIST
@@ -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
diff --git a/newsboat213/distinfo b/newsboat213/distinfo
new file mode 100644
index 0000000000..af5be5a31d
--- /dev/null
+++ b/newsboat213/distinfo
@@ -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
diff --git a/newsboat213/patches/patch-config.sh b/newsboat213/patches/patch-config.sh
new file mode 100644
index 0000000000..6fd4f5099e
--- /dev/null
+++ b/newsboat213/patches/patch-config.sh
@@ -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" || \
diff --git a/newsboat213/patches/patch-newsboat.cpp b/newsboat213/patches/patch-newsboat.cpp
new file mode 100644
index 0000000000..72fde75145
--- /dev/null
+++ b/newsboat213/patches/patch-newsboat.cpp
@@ -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()


Home | Main Index | Thread Index | Old Index