summaryrefslogtreecommitdiff
path: root/editors/parinfer-rust/Makefile
blob: 16c67883cef0b85ee40c74b8a72b1801e6d642cf (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
# $FreeBSD$

PORTNAME=	parinfer-rust
DISTVERSIONPREFIX=	v
DISTVERSION=	0.3.1
PORTREVISION=	4
CATEGORIES=	editors

MAINTAINER=	tobik@FreeBSD.org
COMMENT=	Infer parentheses for Clojure, Lisp, and Scheme

LICENSE=	ISCL
LICENSE_FILE=	${WRKSRC}/LICENSE.md

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	eraserhd
USE_LDCONFIG=	yes

CARGO_CRATES=	base-x-0.2.2 \
		discard-1.0.3 \
		dtoa-0.4.2 \
		getopts-0.2.18 \
		itoa-0.4.1 \
		libc-0.2.49 \
		proc-macro2-0.2.3 \
		proc-macro2-0.3.8 \
		quote-0.4.2 \
		quote-0.5.2 \
		serde-1.0.55 \
		serde_derive-1.0.55 \
		serde_json-1.0.17 \
		stdweb-0.4.5 \
		stdweb-derive-0.4.0 \
		stdweb-internal-macros-0.1.0 \
		syn-0.12.15 \
		syn-0.13.10 \
		unicode-segmentation-1.2.1 \
		unicode-width-0.1.5 \
		unicode-xid-0.1.0 \
		winapi-0.3.6 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-x86_64-pc-windows-gnu-0.4.0

PLIST_FILES=	bin/parinfer-rust \
		lib/libparinfer_rust.so \
		share/kak/rc/extra/parinfer.kak \
		share/vim/vimfiles/doc/parinfer.txt \
		share/vim/vimfiles/plugin/parinfer.vim

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/parinfer-rust
	${INSTALL_LIB} ${CARGO_TARGET_DIR}/*/libparinfer_rust.so \
		${STAGEDIR}${PREFIX}/lib
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/kak/rc/extra \
		${STAGEDIR}${PREFIX}/share/vim/vimfiles/doc \
		${STAGEDIR}${PREFIX}/share/vim/vimfiles/plugin
	${INSTALL_DATA} ${WRKSRC}/rc/parinfer.kak \
		${STAGEDIR}${PREFIX}/share/kak/rc/extra
	${INSTALL_DATA} ${WRKSRC}/doc/parinfer.txt \
		${STAGEDIR}${PREFIX}/share/vim/vimfiles/doc
	${INSTALL_DATA} ${WRKSRC}/plugin/parinfer.vim \
		${STAGEDIR}${PREFIX}/share/vim/vimfiles/plugin

.include <bsd.port.mk>