summaryrefslogtreecommitdiff
path: root/devel/bingrep/Makefile
blob: 21557acb7ec830ffc2e3a344715bda24438e03a3 (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
# $FreeBSD$

PORTNAME=	bingrep
DISTVERSIONPREFIX=	v
DISTVERSION=	0.8.5
CATEGORIES=	devel

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Grep through binaries

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	m4b

CARGO_CRATES=	aho-corasick-0.7.15 \
		ansi_term-0.11.0 \
		anyhow-1.0.38 \
		arrayref-0.3.6 \
		arrayvec-0.5.2 \
		atty-0.2.14 \
		autocfg-1.0.1 \
		base64-0.13.0 \
		bitflags-1.2.1 \
		blake2b_simd-0.5.11 \
		bstr-0.2.14 \
		byteorder-1.4.2 \
		cfg-if-0.1.10 \
		cfg-if-1.0.0 \
		clap-2.33.3 \
		constant_time_eq-0.1.5 \
		cpp_demangle-0.3.2 \
		crossbeam-utils-0.8.1 \
		csv-1.1.5 \
		csv-core-0.1.10 \
		dirs-1.0.5 \
		encode_unicode-0.3.6 \
		env_logger-0.8.2 \
		fuchsia-cprng-0.1.1 \
		getrandom-0.1.16 \
		glob-0.3.0 \
		goblin-0.3.1 \
		heck-0.3.2 \
		hermit-abi-0.1.18 \
		hexplay-0.2.1 \
		humantime-2.1.0 \
		itoa-0.4.7 \
		lazy_static-1.4.0 \
		libc-0.2.82 \
		log-0.4.13 \
		memchr-2.3.4 \
		memrange-0.1.3 \
		metagoblin-0.4.0 \
		plain-0.2.3 \
		prettytable-rs-0.8.0 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro2-1.0.24 \
		quote-1.0.8 \
		rand-0.3.23 \
		rand-0.4.6 \
		rand_core-0.3.1 \
		rand_core-0.4.2 \
		rdrand-0.4.0 \
		redox_syscall-0.1.57 \
		redox_users-0.3.5 \
		regex-1.4.3 \
		regex-automata-0.1.9 \
		regex-syntax-0.6.22 \
		rust-argon2-0.8.3 \
		rustc-demangle-0.1.18 \
		rustc-serialize-0.3.24 \
		ryu-1.0.5 \
		scroll-0.10.2 \
		scroll_derive-0.10.4 \
		serde-1.0.119 \
		strsim-0.8.0 \
		structopt-0.3.21 \
		structopt-derive-0.4.14 \
		syn-1.0.58 \
		term-0.5.2 \
		termcolor-0.3.6 \
		termcolor-1.1.2 \
		textwrap-0.11.0 \
		theban_interval_tree-0.7.1 \
		thread_local-1.1.0 \
		time-0.1.44 \
		unicode-segmentation-1.7.1 \
		unicode-width-0.1.8 \
		unicode-xid-0.2.1 \
		vec_map-0.8.2 \
		version_check-0.9.2 \
		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 \
		wincolor-0.1.6

PLIST_FILES=	bin/bingrep

PORTDOCS=	README.md
PORTEXAMPLES=	etc/*.png

OPTIONS_DEFINE=	DOCS EXAMPLES

EXAMPLES_PLIST_FILES=	\
	${EXAMPLESDIR}/archive.png \
	${EXAMPLESDIR}/elf_table1.png \
	${EXAMPLESDIR}/elf_table2.png \
	${EXAMPLESDIR}/mach.png \
	${EXAMPLESDIR}/ranges.png

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	(cd ${WRKSRC}/etc && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

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

.include <bsd.port.mk>