aboutsummaryrefslogtreecommitdiff
path: root/www/newsboat/Makefile
blob: f9ed2849e2e9fb5cc04f4038b2456c0f4efd28ea (plain) (blame)
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
# Created by: arved

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

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

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	asciidoctor:textproc/rubygem-asciidoctor
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 python:env shebangfix sqlite ssl tar:xz
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 doc/examples/example-exec-script.py \
		contrib/image-preview/nbparser contrib/exportOPMLWithTags.py

MAKE_ARGS=	CARGO=${CARGO_CARGO_BIN} prefix=${PREFIX}
MAKE_ENV=	${CARGO_ENV}

CARGO_BUILD=		no
CARGO_INSTALL=		no
CARGO_TARGET_DIR=	${WRKSRC}/target
CARGO_CRATES=	addr2line-0.13.0 \
		adler-0.2.3 \
		aho-corasick-0.7.13 \
		arrayvec-0.5.1 \
		autocfg-1.0.1 \
		backtrace-0.3.50 \
		bit-set-0.5.2 \
		bit-vec-0.6.2 \
		bitflags-1.2.1 \
		bitvec-0.19.4 \
		block-0.1.6 \
		byteorder-1.3.4 \
		cc-1.0.60 \
		cfg-if-0.1.10 \
		chrono-0.4.19 \
		clap-2.33.3 \
		codespan-reporting-0.9.5 \
		curl-sys-0.4.39+curl-7.74.0 \
		cxx-0.5.10 \
		cxx-build-0.5.10 \
		cxxbridge-flags-0.5.10 \
		cxxbridge-macro-0.5.10 \
		fnv-1.0.7 \
		form_urlencoded-1.0.0 \
		funty-1.0.1 \
		getrandom-0.1.15 \
		gettext-rs-0.5.0 \
		gettext-sys-0.19.9 \
		gimli-0.22.0 \
		idna-0.2.0 \
		lazy_static-1.4.0 \
		lexical-core-0.7.4 \
		libc-0.2.81 \
		libz-sys-1.1.2 \
		link-cplusplus-1.0.4 \
		locale_config-0.3.0 \
		malloc_buf-0.0.6 \
		matches-0.1.8 \
		memchr-2.3.3 \
		miniz_oxide-0.4.2 \
		natord-1.0.9 \
		nom-6.0.1 \
		num-integer-0.1.43 \
		num-traits-0.2.12 \
		objc-0.2.7 \
		objc-foundation-0.1.1 \
		objc_id-0.1.1 \
		object-0.20.0 \
		once_cell-1.5.2 \
		openssl-sys-0.9.58 \
		percent-encoding-2.1.0 \
		pkg-config-0.3.18 \
		ppv-lite86-0.2.9 \
		proc-macro2-1.0.24 \
		proptest-0.10.1 \
		quick-error-1.2.3 \
		quote-1.0.7 \
		radium-0.5.3 \
		rand-0.7.3 \
		rand_chacha-0.2.2 \
		rand_core-0.5.1 \
		rand_hc-0.2.0 \
		rand_xorshift-0.2.0 \
		redox_syscall-0.1.57 \
		regex-1.3.9 \
		regex-syntax-0.6.18 \
		remove_dir_all-0.5.3 \
		rustc-demangle-0.1.16 \
		rusty-fork-0.3.0 \
		ryu-1.0.5 \
		scratch-1.0.0 \
		section_testing-0.0.4 \
		static_assertions-1.1.0 \
		syn-1.0.48 \
		tap-1.0.0 \
		tempfile-3.1.0 \
		termcolor-1.1.0 \
		textwrap-0.11.0 \
		thread_local-1.0.1 \
		time-0.1.44 \
		tinyvec-0.3.4 \
		unicode-bidi-0.3.4 \
		unicode-normalization-0.1.13 \
		unicode-width-0.1.8 \
		unicode-xid-0.2.1 \
		url-2.2.0 \
		vcpkg-0.2.10 \
		version_check-0.9.2 \
		wait-timeout-0.2.0 \
		wasi-0.9.0+wasi-snapshot-preview1 \
		wasi-0.10.0+wasi-snapshot-preview1 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.5 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		wyz-0.2.0 \
		xdg-2.2.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 -l${NCURSES_IMPL}|;s|-Werror||' \
		${WRKSRC}/Makefile

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

.include <bsd.port.mk>