summaryrefslogtreecommitdiff
path: root/www/newsboat/Makefile
blob: 5025202be23d415f20aae1003d35ec5e1587e575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Created by: arved
# $FreeBSD$

PORTNAME=	newsboat
PORTVERSION=	2.16.1
PORTREVISION=	2
CATEGORIES=	www
MASTER_SITES=	https://newsboat.org/releases/${PORTVERSION}/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	mt@markoturk.info
COMMENT=	RSS feed reader for the text console

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	a2x:textproc/asciidoc
LIB_DEPENDS=	libstfl.so:devel/stfl \
		libcurl.so:ftp/curl \
		libjson-c.so:devel/json-c

USES=		cargo compiler:c++11-lang gettext gmake gnome iconv:translit \
		ncurses pkgconfig shebangfix sqlite ssl tar:xz
USE_CXXSTD=	gnu++11
USE_GNOME=	libxml2

SHEBANG_FILES=	contrib/bookmark-evernote.sh contrib/feedgrabber.rb \
		contrib/getpocket.com/send-to-pocket.sh contrib/heise.rb \
		contrib/slashdot.rb

MAKE_ARGS=	CARGO=${CARGO_CARGO_BIN} mandir=${PREFIX}/man prefix=${PREFIX}
MAKE_ENV=	${CARGO_ENV}

CARGO_BUILD=		no
CARGO_INSTALL=		no
CARGO_TARGET_DIR=	${WRKSRC}/target
CARGO_CRATES=	aho-corasick-0.6.9 \
		argon2rs-0.2.5 \
		arrayvec-0.4.10 \
		autocfg-0.1.2 \
		backtrace-0.3.13 \
		backtrace-sys-0.1.28 \
		bit-set-0.5.1 \
		bit-vec-0.5.1 \
		bitflags-1.0.4 \
		blake2-rfc-0.2.18 \
		cc-1.0.29 \
		cfg-if-0.1.6 \
		chrono-0.4.6 \
		clap-2.33.0 \
		cloudabi-0.0.3 \
		constant_time_eq-0.1.3 \
		curl-sys-0.4.5 \
		dirs-1.0.4 \
		failure-0.1.5 \
		failure_derive-0.1.5 \
		fnv-1.0.6 \
		fuchsia-cprng-0.1.1 \
		gettext-rs-0.4.1 \
		gettext-sys-0.19.8 \
		idna-0.1.5 \
		kernel32-sys-0.2.2 \
		lazy_static-0.2.11 \
		lazy_static-1.2.0 \
		libc-0.2.50 \
		libz-sys-1.0.17 \
		locale_config-0.2.2 \
		lock_api-0.1.5 \
		matches-0.1.8 \
		memchr-2.1.3 \
		nodrop-0.1.13 \
		nom-4.2.3 \
		num-integer-0.1.39 \
		num-traits-0.2.6 \
		once_cell-0.1.8 \
		openssl-sys-0.9.46 \
		parking_lot-0.7.1 \
		parking_lot_core-0.4.0 \
		percent-encoding-1.0.1 \
		pkg-config-0.3.14 \
		proc-macro2-0.4.27 \
		proptest-0.7.2 \
		quick-error-1.2.2 \
		quote-0.6.11 \
		rand-0.4.6 \
		rand-0.5.6 \
		rand-0.6.5 \
		rand_chacha-0.1.1 \
		rand_core-0.3.1 \
		rand_core-0.4.0 \
		rand_hc-0.1.0 \
		rand_isaac-0.1.1 \
		rand_jitter-0.1.3 \
		rand_os-0.1.2 \
		rand_pcg-0.1.1 \
		rand_xorshift-0.1.1 \
		rdrand-0.4.0 \
		redox_syscall-0.1.51 \
		redox_users-0.2.0 \
		regex-0.2.11 \
		regex-1.1.0 \
		regex-syntax-0.4.2 \
		regex-syntax-0.5.6 \
		regex-syntax-0.6.5 \
		remove_dir_all-0.5.1 \
		rustc-demangle-0.1.13 \
		rustc_version-0.2.3 \
		rusty-fork-0.2.1 \
		scoped_threadpool-0.1.9 \
		scopeguard-0.3.3 \
		semver-0.9.0 \
		semver-parser-0.7.0 \
		smallvec-0.6.8 \
		syn-0.15.26 \
		synstructure-0.10.1 \
		tempfile-3.0.6 \
		textwrap-0.11.0 \
		thread_local-0.3.6 \
		time-0.1.42 \
		ucd-util-0.1.3 \
		unicode-bidi-0.3.4 \
		unicode-normalization-0.1.8 \
		unicode-segmentation-1.2.1 \
		unicode-width-0.1.5 \
		unicode-xid-0.1.0 \
		unreachable-1.0.0 \
		url-1.7.2 \
		utf8-ranges-1.0.2 \
		vcpkg-0.2.6 \
		version_check-0.1.5 \
		void-1.0.2 \
		wait-timeout-0.1.5 \
		winapi-0.2.8 \
		winapi-0.3.6 \
		winapi-build-0.1.1 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-x86_64-pc-windows-gnu-0.4.0

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's,fail "ncursesw",true,; s,fail "libcrypto",true,' \
		-e 's,fail "libssl",true,' \
		${WRKSRC}/config.sh
	@${REINPLACE_CMD} -e 's|-liconv|${ICONV_LIB} -lcrypto -lncursesw|;s|-Werror||' \
		${WRKSRC}/Makefile
# Tries to run git to export GIT_HASH env variable.  This is not
# needed for release versions per rust/libnewsboat/src/utils.rs
	@${RM} ${WRKSRC}/rust/libnewsboat/build.rs

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*boat

.include <bsd.port.mk>