febuild/dev-util/emmylua_ls/emmylua_ls-9999.ebuild

51 lines
895 B
Bash
Executable File

# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
"
inherit cargo
DESCRIPTION="A modern lua lsp"
HOMEPAGE="https://github.com/EmmyLuaLs/emmylua-analyzer-rust"
if [[ ${PV} == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/EmmyLuaLs/emmylua-analyzer-rust.git"
else
SRC_URI="
https://github.com/aeghn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
KEYWORDS="~amd64 ~ppc64"
fi
# LICENSE=""
SLOT="0"
IUSE=""
BDEPEND="
"
# Rust packages ignore CFLAGS and LDFLAGS so let's silence the QA warnings
# QA_FLAGS_IGNORED="usr/bin/btm"
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
git-r3_src_unpack
cargo_live_src_unpack
else
cargo_src_unpack
fi
}
src_install() {
cargo_src_install --path ./crates/emmylua_ls
}