summaryrefslogtreecommitdiff
path: root/sysutils/diskus/Makefile
blob: 7f7c82a1c5a045f769fa54b21640dcd193ad7bd8 (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
PORTNAME=	diskus
DISTVERSIONPREFIX=	v
DISTVERSION=	0.7.0
PORTREVISION=	12
CATEGORIES=	sysutils

MAINTAINER=	sec.research.2005@gmail.com
COMMENT=	Mminimal, fast alternative to 'du -sh'
WWW=		https://github.com/sharkdp/diskus/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE-MIT

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	sharkdp

CARGO_CRATES=	ansi_term-0.11.0 \
		arrayvec-0.4.12 \
		atty-0.2.14 \
		autocfg-1.0.1 \
		bitflags-1.3.2 \
		cfg-if-1.0.0 \
		clap-2.33.3 \
		crossbeam-channel-0.5.1 \
		crossbeam-deque-0.8.1 \
		crossbeam-epoch-0.9.5 \
		crossbeam-utils-0.8.5 \
		either-1.6.1 \
		fuchsia-cprng-0.1.1 \
		hermit-abi-0.1.19 \
		humansize-1.1.1 \
		itoa-0.4.8 \
		lazy_static-1.4.0 \
		libc-0.2.107 \
		memoffset-0.6.4 \
		nodrop-0.1.14 \
		num-format-0.4.0 \
		num_cpus-1.13.0 \
		rand-0.4.6 \
		rand_core-0.3.1 \
		rand_core-0.4.2 \
		rayon-1.5.1 \
		rayon-core-1.9.1 \
		rdrand-0.4.0 \
		remove_dir_all-0.5.3 \
		scopeguard-1.1.0 \
		strsim-0.8.0 \
		tempdir-0.3.7 \
		term_size-0.3.2 \
		textwrap-0.11.0 \
		unicode-width-0.1.9 \
		vec_map-0.8.2 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-x86_64-pc-windows-gnu-0.4.0

PLIST_FILES=	bin/diskus \
							man/man1/${PORTNAME}.1.gz
PORTDOCS=	*.md
OPTIONS_DEFINE=	DOCS

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/diskus
	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/man1
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>