summaryrefslogtreecommitdiff
path: root/textproc/bat/Makefile
blob: 914c343b4e9391f66464e00b63b83b06a98426ed (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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# $NetBSD: Makefile,v 1.19 2021/04/21 11:42:46 adam Exp $

DISTNAME=	bat-0.18.0
PKGREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_GITHUB:=sharkdp/}
GITHUB_TAG=	v${PKGVERSION_NOREV}
DIST_SUBDIR=	${PKGBASE}
EXTRACT_USING=	bsdtar

MAINTAINER=	fox@NetBSD.org
HOMEPAGE=	https://github.com/sharkdp/bat/
COMMENT=	Clone of cat with syntax highlighting
LICENSE=	apache-2.0

USE_LANGUAGES=	c

CARGO_CRATE_DEPENDS+=	adler-0.2.3
CARGO_CRATE_DEPENDS+=	aho-corasick-0.7.15
CARGO_CRATE_DEPENDS+=	ansi_colours-1.0.2
CARGO_CRATE_DEPENDS+=	ansi_term-0.11.0
CARGO_CRATE_DEPENDS+=	ansi_term-0.12.1
CARGO_CRATE_DEPENDS+=	assert_cmd-1.0.3
CARGO_CRATE_DEPENDS+=	atty-0.2.14
CARGO_CRATE_DEPENDS+=	autocfg-1.0.1
CARGO_CRATE_DEPENDS+=	base64-0.13.0
CARGO_CRATE_DEPENDS+=	bincode-1.3.1
CARGO_CRATE_DEPENDS+=	bit-set-0.5.2
CARGO_CRATE_DEPENDS+=	bit-vec-0.6.3
CARGO_CRATE_DEPENDS+=	bitflags-1.2.1
CARGO_CRATE_DEPENDS+=	bstr-0.2.15
CARGO_CRATE_DEPENDS+=	bugreport-0.3.0
CARGO_CRATE_DEPENDS+=	byteorder-1.4.2
CARGO_CRATE_DEPENDS+=	cc-1.0.66
CARGO_CRATE_DEPENDS+=	cfg-if-1.0.0
CARGO_CRATE_DEPENDS+=	chrono-0.4.19
CARGO_CRATE_DEPENDS+=	clap-2.33.3
CARGO_CRATE_DEPENDS+=	clircle-0.3.0
CARGO_CRATE_DEPENDS+=	console-0.14.0
CARGO_CRATE_DEPENDS+=	content_inspector-0.2.4
CARGO_CRATE_DEPENDS+=	crc32fast-1.2.1
CARGO_CRATE_DEPENDS+=	difference-2.0.0
CARGO_CRATE_DEPENDS+=	dirs-next-2.0.0
CARGO_CRATE_DEPENDS+=	dirs-sys-next-0.1.2
CARGO_CRATE_DEPENDS+=	doc-comment-0.3.3
CARGO_CRATE_DEPENDS+=	dtoa-0.4.7
CARGO_CRATE_DEPENDS+=	encode_unicode-0.3.6
CARGO_CRATE_DEPENDS+=	encoding-0.2.33
CARGO_CRATE_DEPENDS+=	encoding-index-japanese-1.20141219.5
CARGO_CRATE_DEPENDS+=	encoding-index-korean-1.20141219.5
CARGO_CRATE_DEPENDS+=	encoding-index-simpchinese-1.20141219.5
CARGO_CRATE_DEPENDS+=	encoding-index-singlebyte-1.20141219.5
CARGO_CRATE_DEPENDS+=	encoding-index-tradchinese-1.20141219.5
CARGO_CRATE_DEPENDS+=	encoding_index_tests-0.1.4
CARGO_CRATE_DEPENDS+=	error-chain-0.12.4
CARGO_CRATE_DEPENDS+=	fancy-regex-0.3.5
CARGO_CRATE_DEPENDS+=	flate2-1.0.20
CARGO_CRATE_DEPENDS+=	float-cmp-0.8.0
CARGO_CRATE_DEPENDS+=	fnv-1.0.7
CARGO_CRATE_DEPENDS+=	form_urlencoded-1.0.0
CARGO_CRATE_DEPENDS+=	getrandom-0.2.2
CARGO_CRATE_DEPENDS+=	git2-0.13.15
CARGO_CRATE_DEPENDS+=	glob-0.3.0
CARGO_CRATE_DEPENDS+=	globset-0.4.6
CARGO_CRATE_DEPENDS+=	hashbrown-0.9.1
CARGO_CRATE_DEPENDS+=	hermit-abi-0.1.18
CARGO_CRATE_DEPENDS+=	idna-0.2.1
CARGO_CRATE_DEPENDS+=	indexmap-1.6.1
CARGO_CRATE_DEPENDS+=	instant-0.1.9
CARGO_CRATE_DEPENDS+=	itoa-0.4.7
CARGO_CRATE_DEPENDS+=	jobserver-0.1.21
CARGO_CRATE_DEPENDS+=	lazy_static-1.4.0
CARGO_CRATE_DEPENDS+=	lazycell-1.3.0
CARGO_CRATE_DEPENDS+=	libc-0.2.86
CARGO_CRATE_DEPENDS+=	libgit2-sys-0.12.18+1.1.0
CARGO_CRATE_DEPENDS+=	libz-sys-1.1.2
CARGO_CRATE_DEPENDS+=	line-wrap-0.1.1
CARGO_CRATE_DEPENDS+=	linked-hash-map-0.5.4
CARGO_CRATE_DEPENDS+=	lock_api-0.4.2
CARGO_CRATE_DEPENDS+=	log-0.4.14
CARGO_CRATE_DEPENDS+=	matches-0.1.8
CARGO_CRATE_DEPENDS+=	memchr-2.3.4
CARGO_CRATE_DEPENDS+=	miniz_oxide-0.4.3
CARGO_CRATE_DEPENDS+=	nix-0.19.1
CARGO_CRATE_DEPENDS+=	normalize-line-endings-0.3.0
CARGO_CRATE_DEPENDS+=	num-integer-0.1.44
CARGO_CRATE_DEPENDS+=	num-traits-0.2.14
CARGO_CRATE_DEPENDS+=	once_cell-1.5.2
CARGO_CRATE_DEPENDS+=	onig-6.1.1
CARGO_CRATE_DEPENDS+=	onig_sys-69.6.0
CARGO_CRATE_DEPENDS+=	parking_lot-0.11.1
CARGO_CRATE_DEPENDS+=	parking_lot_core-0.8.3
CARGO_CRATE_DEPENDS+=	path_abs-0.5.0
CARGO_CRATE_DEPENDS+=	percent-encoding-2.1.0
CARGO_CRATE_DEPENDS+=	pest-2.1.3
CARGO_CRATE_DEPENDS+=	pkg-config-0.3.19
CARGO_CRATE_DEPENDS+=	plist-1.1.0
CARGO_CRATE_DEPENDS+=	ppv-lite86-0.2.10
CARGO_CRATE_DEPENDS+=	predicates-1.0.7
CARGO_CRATE_DEPENDS+=	predicates-core-1.0.2
CARGO_CRATE_DEPENDS+=	predicates-tree-1.0.2
CARGO_CRATE_DEPENDS+=	proc-macro2-1.0.24
CARGO_CRATE_DEPENDS+=	quote-1.0.9
CARGO_CRATE_DEPENDS+=	rand-0.8.3
CARGO_CRATE_DEPENDS+=	rand_chacha-0.3.0
CARGO_CRATE_DEPENDS+=	rand_core-0.6.2
CARGO_CRATE_DEPENDS+=	rand_hc-0.3.0
CARGO_CRATE_DEPENDS+=	redox_syscall-0.2.5
CARGO_CRATE_DEPENDS+=	redox_users-0.4.0
CARGO_CRATE_DEPENDS+=	regex-1.4.3
CARGO_CRATE_DEPENDS+=	regex-automata-0.1.9
CARGO_CRATE_DEPENDS+=	regex-syntax-0.6.22
CARGO_CRATE_DEPENDS+=	remove_dir_all-0.5.3
CARGO_CRATE_DEPENDS+=	ryu-1.0.5
CARGO_CRATE_DEPENDS+=	safemem-0.3.3
CARGO_CRATE_DEPENDS+=	same-file-1.0.6
CARGO_CRATE_DEPENDS+=	scopeguard-1.1.0
CARGO_CRATE_DEPENDS+=	semver-0.11.0
CARGO_CRATE_DEPENDS+=	semver-parser-0.10.2
CARGO_CRATE_DEPENDS+=	serde-1.0.123
CARGO_CRATE_DEPENDS+=	serde_derive-1.0.123
CARGO_CRATE_DEPENDS+=	serde_json-1.0.62
CARGO_CRATE_DEPENDS+=	serde_yaml-0.8.17
CARGO_CRATE_DEPENDS+=	serial_test-0.5.1
CARGO_CRATE_DEPENDS+=	serial_test_derive-0.5.1
CARGO_CRATE_DEPENDS+=	shell-words-1.0.0
CARGO_CRATE_DEPENDS+=	smallvec-1.6.1
CARGO_CRATE_DEPENDS+=	snailquote-0.3.0
CARGO_CRATE_DEPENDS+=	std_prelude-0.2.12
CARGO_CRATE_DEPENDS+=	strsim-0.8.0
CARGO_CRATE_DEPENDS+=	syn-1.0.60
CARGO_CRATE_DEPENDS+=	syntect-4.5.0
CARGO_CRATE_DEPENDS+=	sys-info-0.7.0
CARGO_CRATE_DEPENDS+=	tempfile-3.2.0
CARGO_CRATE_DEPENDS+=	term_size-0.3.2
CARGO_CRATE_DEPENDS+=	terminal_size-0.1.16
CARGO_CRATE_DEPENDS+=	textwrap-0.11.0
CARGO_CRATE_DEPENDS+=	thiserror-1.0.23
CARGO_CRATE_DEPENDS+=	thiserror-impl-1.0.23
CARGO_CRATE_DEPENDS+=	thread_local-1.1.3
CARGO_CRATE_DEPENDS+=	tinyvec-1.1.1
CARGO_CRATE_DEPENDS+=	tinyvec_macros-0.1.0
CARGO_CRATE_DEPENDS+=	treeline-0.1.0
CARGO_CRATE_DEPENDS+=	ucd-trie-0.1.3
CARGO_CRATE_DEPENDS+=	unicode-bidi-0.3.4
CARGO_CRATE_DEPENDS+=	unicode-normalization-0.1.17
CARGO_CRATE_DEPENDS+=	unicode-width-0.1.8
CARGO_CRATE_DEPENDS+=	unicode-xid-0.2.1
CARGO_CRATE_DEPENDS+=	unicode_categories-0.1.1
CARGO_CRATE_DEPENDS+=	url-2.2.0
CARGO_CRATE_DEPENDS+=	vcpkg-0.2.11
CARGO_CRATE_DEPENDS+=	vec_map-0.8.2
CARGO_CRATE_DEPENDS+=	version_check-0.9.2
CARGO_CRATE_DEPENDS+=	wait-timeout-0.2.0
CARGO_CRATE_DEPENDS+=	walkdir-2.3.1
CARGO_CRATE_DEPENDS+=	wasi-0.10.2+wasi-snapshot-preview1
CARGO_CRATE_DEPENDS+=	wild-2.0.4
CARGO_CRATE_DEPENDS+=	winapi-0.3.9
CARGO_CRATE_DEPENDS+=	winapi-i686-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+=	winapi-util-0.1.5
CARGO_CRATE_DEPENDS+=	winapi-x86_64-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+=	xml-rs-0.8.3
CARGO_CRATE_DEPENDS+=	yaml-rust-0.4.5

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/target/release/bat ${DESTDIR}${PREFIX}/bin
	cd ${WRKSRC}/target/release && \
		${FIND} . -name bat.1 \
			-type f \
			-exec ${INSTALL_MAN} '{}' ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 \;

.include "../../lang/clang/buildlink3.mk"
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"