diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2017-11-13 13:10:51 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2017-11-13 13:10:51 +0000 |
commit | 07dc729c522b40c9dfe210a0f51709f55613c362 (patch) | |
tree | 935c30a1e43623a7735bfe3f7068300d4664c840 /www/newsboat | |
parent | 726eb11fa2d68f9e48f4cf307837a2e3e7480dd7 (diff) | |
download | ports-07dc729c522b40c9dfe210a0f51709f55613c362.tar.gz ports-07dc729c522b40c9dfe210a0f51709f55613c362.zip |
Notes
Diffstat (limited to 'www/newsboat')
-rw-r--r-- | www/newsboat/Makefile | 49 | ||||
-rw-r--r-- | www/newsboat/distinfo | 3 | ||||
-rw-r--r-- | www/newsboat/files/patch-include-matcher.h | 13 | ||||
-rw-r--r-- | www/newsboat/files/patch-rss-rsspp_internatl.h | 13 | ||||
-rw-r--r-- | www/newsboat/pkg-descr | 3 | ||||
-rw-r--r-- | www/newsboat/pkg-plist | 21 |
6 files changed, 102 insertions, 0 deletions
diff --git a/www/newsboat/Makefile b/www/newsboat/Makefile new file mode 100644 index 000000000000..2a32c9306189 --- /dev/null +++ b/www/newsboat/Makefile @@ -0,0 +1,49 @@ +# Created by: arved +# $FreeBSD$ + +PORTNAME= newsboat +PORTVERSION= 2.10.1 +CATEGORIES= www + +MAINTAINER= mt@markoturk.info +COMMENT= RSS feed reader for the text console + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libstfl.so:devel/stfl \ + libcurl.so:ftp/curl \ + libjson-c.so:devel/json-c + +OPTIONS_DEFINE= PODCAST +OPTIONS_DEFAULT=PODCAST +OPTIONS_SUB= yes +PODCAST_DESC= Podcast client (podbeuter) + +USE_GITHUB= yes +DISTVERSIONPREFIX= r +USES= compiler:c++11-lib gettext gmake iconv:translit ncurses perl5 \ + pkgconfig sqlite shebangfix ssl +USE_CXXSTD= gnu++11 +USE_PERL5= build +SHEBANG_FILES= txt2h.pl +USE_GNOME= libxml2 + +.include <bsd.port.pre.mk> + +post-patch: + ${REINPLACE_CMD} -e "s,share/man,man,; \ + /^prefix/s|=.*|=${PREFIX}|; /^CXX=/d; \ + s|/usr/local|${LOCALBASE}|" \ + ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e 's,<ncursesw/ncurses.h>,<ncurses.h>,' \ + ${WRKSRC}/src/controller.cpp ${WRKSRC}/src/view.cpp + ${REINPLACE_CMD} -e 's,fail "ncursesw",true,; s,fail "libcrypto",true,' \ + ${WRKSRC}/config.sh + ${REINPLACE_CMD} -e 's|-liconv|${ICONV_LIB} -lcrypto -lncursesw|;s|-Werror||' \ + ${WRKSRC}/Makefile + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*boat + +.include <bsd.port.post.mk> diff --git a/www/newsboat/distinfo b/www/newsboat/distinfo new file mode 100644 index 000000000000..acb718c73f19 --- /dev/null +++ b/www/newsboat/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1510573019 +SHA256 (newsboat-newsboat-r2.10.1_GH0.tar.gz) = 82d5e3e2a6dab845aac0bf72580f46c2756375d49214905a627284e5bc32e327 +SIZE (newsboat-newsboat-r2.10.1_GH0.tar.gz) = 500250 diff --git a/www/newsboat/files/patch-include-matcher.h b/www/newsboat/files/patch-include-matcher.h new file mode 100644 index 000000000000..b95e2c1844a4 --- /dev/null +++ b/www/newsboat/files/patch-include-matcher.h @@ -0,0 +1,13 @@ +--- include/matcher.h.orig 2014-02-02 16:00:13.000000000 +0100 ++++ include/matcher.h 2014-02-02 16:00:19.000000000 +0100 +@@ -3,6 +3,10 @@ + + #include <FilterParser.h> + ++#ifdef _LIBCPP_VERSION ++namespace std { namespace tr1 = std; } ++#endif ++ + namespace newsbeuter { + + class matchable { diff --git a/www/newsboat/files/patch-rss-rsspp_internatl.h b/www/newsboat/files/patch-rss-rsspp_internatl.h new file mode 100644 index 000000000000..6d83d39e986d --- /dev/null +++ b/www/newsboat/files/patch-rss-rsspp_internatl.h @@ -0,0 +1,13 @@ +--- rss/rsspp_internal.h.orig 2014-02-02 15:53:54.000000000 +0100 ++++ rss/rsspp_internal.h 2014-02-02 15:52:36.000000000 +0100 +@@ -9,6 +9,10 @@ + #include <rsspp.h> + #include <tr1/memory> + ++#ifdef _LIBCPP_VERSION ++namespace std { namespace tr1 = std; } ++#endif ++ + #define CONTENT_URI "http://purl.org/rss/1.0/modules/content/" + #define RDF_URI "http://www.w3.org/1999/02/22-rdf-syntax-ns#" + #define ITUNES_URI "http://www.itunes.com/dtds/podcast-1.0.dtd" diff --git a/www/newsboat/pkg-descr b/www/newsboat/pkg-descr new file mode 100644 index 000000000000..53b35ea948ee --- /dev/null +++ b/www/newsboat/pkg-descr @@ -0,0 +1,3 @@ +Newsbeuter is an RSS feed reader for the text console. + +WWW: http://newsbeuter.org/ diff --git a/www/newsboat/pkg-plist b/www/newsboat/pkg-plist new file mode 100644 index 000000000000..5ec21b832dd4 --- /dev/null +++ b/www/newsboat/pkg-plist @@ -0,0 +1,21 @@ +bin/newsboat +%%PODCAST%%bin/podboat +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/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 +share/doc/newsboat/examples/config |