summaryrefslogtreecommitdiff
path: root/lang/amber/Makefile
blob: f3ddfcec7eb7fb17910969056166f16f1d8c57ed (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
PORTNAME=	amber
DISTVERSION=	0.3.3-alpha
CATEGORIES=	lang
PKGNAMESUFFIX=	-language

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Amber: the programming language compiled to bash
WWW=		https://amber-lang.com

LICENSE=	GPLv3

RUN_DEPENDS=	bash:shells/bash

USES=		cargo

USE_GITHUB=	yes
GH_ACCOUNT=	Ph0enixKM
GH_PROJECT=	Amber

CARGO_CRATES=	anstream-0.6.14 \
		anstyle-1.0.7 \
		anstyle-parse-0.2.4 \
		anstyle-query-1.0.3 \
		anstyle-wincon-3.0.3 \
		bitflags-2.5.0 \
		capitalize-0.1.0 \
		cfg-if-1.0.0 \
		clap-4.5.4 \
		clap_builder-4.5.2 \
		clap_derive-4.5.4 \
		clap_lex-0.7.0 \
		colorchoice-1.0.1 \
		colored-2.1.0 \
		either-1.12.0 \
		errno-0.3.9 \
		fastrand-2.1.0 \
		heck-0.5.0 \
		heraclitus-compiler-1.5.8 \
		is_terminal_polyfill-1.70.0 \
		itertools-0.11.0 \
		lazy_static-1.4.0 \
		libc-0.2.155 \
		linux-raw-sys-0.4.14 \
		pad-0.1.6 \
		proc-macro2-1.0.84 \
		quote-1.0.36 \
		rustix-0.38.34 \
		similar-string-1.4.3 \
		strsim-0.11.1 \
		syn-2.0.66 \
		tempfile-3.10.1 \
		unicode-ident-1.0.12 \
		unicode-width-0.1.12 \
		utf8parse-0.2.1 \
		windows-sys-0.48.0 \
		windows-sys-0.52.0 \
		windows-targets-0.48.5 \
		windows-targets-0.52.5 \
		windows_aarch64_gnullvm-0.48.5 \
		windows_aarch64_gnullvm-0.52.5 \
		windows_aarch64_msvc-0.48.5 \
		windows_aarch64_msvc-0.52.5 \
		windows_i686_gnu-0.48.5 \
		windows_i686_gnu-0.52.5 \
		windows_i686_gnullvm-0.52.5 \
		windows_i686_msvc-0.48.5 \
		windows_i686_msvc-0.52.5 \
		windows_x86_64_gnu-0.48.5 \
		windows_x86_64_gnu-0.52.5 \
		windows_x86_64_gnullvm-0.48.5 \
		windows_x86_64_gnullvm-0.52.5 \
		windows_x86_64_msvc-0.48.5 \
		windows_x86_64_msvc-0.52.5

PLIST_FILES=	bin/${PORTNAME}

post-patch:
	@${REINPLACE_CMD} -e 's|"/bin/bash"|"${LOCALBASE}/bin/bash"|' ${WRKSRC}/src/compiler.rs

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

.include <bsd.port.mk>