blob: 7151240a5284f8255dd5d93479c0fd19dedd89cc (
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
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cargo optfeature
DESCRIPTION="A friendly language for building type-safe, scalable systems!"
HOMEPAGE="https://gleam.run https://github.com/gleam-lang/gleam"
SRC_URI="
https://github.com/gleam-lang/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://dev.gentoo.org/~matthew/distfiles/${PN}-1.4.0-crates.tar.xz
"
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 CC0-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB openssl"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="dev-lang/erlang:*"
PATCHES=( "${FILESDIR}"/${PN}-1.4.0-rust178-compat.patch )
# rust does not use *FLAGS from make.conf, silence portage warning
# update with proper path to binaries this crate installs, omit leading /
QA_FLAGS_IGNORED="usr/bin/${PN}"
src_install() {
dodoc CHANGELOG.md
cargo_src_install --path compiler-cli
}
pkg_postinst() {
optfeature "erlang package support" dev-util/rebar:3
optfeature "javascript runtime" net-libs/nodejs
}
|