forked from tastytea/overlay
dev-util/lua-language-server: drop 3.6.4, 3.6.5
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
528e2f4f2d
commit
3c8af31fc1
|
@ -1,4 +1,2 @@
|
|||
DIST lua-language-server-3.6.4.zip 32188348 BLAKE2B 4d249af12cdf151d77b7af1c63cff2de103d7cf80416422bf3cf9fbb6031546963f59dcf1d39f8b8dbe41a3cde29dbdf04ba9fc5760cb310575ebdc0494ec604 SHA512 9f47becc9ade0f205d28ad75abeb5895b06486a21c3afa2b16331c34db25fce70a20a80599f48aa0ba485bad75316e1c0d4080f8bb49eaeb30ccc6eff7b12d13
|
||||
DIST lua-language-server-3.6.5.zip 32322824 BLAKE2B cb8bb5c8d7acc66d09b441a2a77669be76a3a86ade7d929fe35f587cc9af574495053b8a542e75b2ff84083b142515b38377c4d75a0c7287bae97ec42591454e SHA512 14944fc40adb380a975fd531db1b59717816fc5611601d88f591dae1fd5dfc2b343e966805c571863e3c60e8c29993f7488c41e19fcbdb784d2c2cb1eda9c79d
|
||||
DIST lua-language-server-3.6.6.zip 32324475 BLAKE2B 240149ac50a7024f4135d9ad25246058e7160ebee8cf2613b65ba25bc44fdd65101763fbcbfce12c666927200ec64887783ad16d0daccc326177d168334189df SHA512 4dc60fe7bfbf17df1bdac2566fc8bdb16750cf8ea0220ba3c3eb787baa544f79f7fa3d08f519b45b5143cc793f2fe2063ef46a7ba3f3b0d2069d1bd8f72cc83b
|
||||
DIST lua-language-server-3.6.7.zip 32326158 BLAKE2B 9a83a23c280cd4610396ac67501d19f557dd5d5eb8018a5a48a01c6f699d9e6ad90f87cb9eabd605c921793e5cd3625a67069a792813a2e562a8a0693344d112 SHA512 033f352581dd2f94bf5df13e1ba861e15dc75246e9bf4668700cc700d98e82ebc3593b8f0fcbcd69dbef472fd6dbb84704d8a0068832832c3241a824ca9dca51
|
||||
|
|
|
@ -1,65 +0,0 @@
|
|||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# TODO: unbundle deps, set flags correctly, verbose luamake, less sed hacks
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua{5-{1,3,4},jit} )
|
||||
|
||||
inherit lua-single ninja-utils prefix toolchain-funcs
|
||||
|
||||
DESCRIPTION="A language server that offers Lua language support"
|
||||
HOMEPAGE="https://github.com/sumneko/lua-language-server"
|
||||
SRC_URI="https://github.com/sumneko/${PN}/releases/download/${PV}/${P}-submodules.zip -> ${P}.zip"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="${LUA_DEPS}"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
dev-util/ninja
|
||||
"
|
||||
|
||||
QA_PREBUILT="/opt/lua-language-server/bin/lua-language-server"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "s/^cc = gcc$/cc = $(tc-getCC)/" \
|
||||
3rd/luamake/compile/ninja/linux.ninja || die
|
||||
sed -i "/require \"make.detect_platform\"/a lm.cc = '$(tc-getCC)'" \
|
||||
make.lua || die
|
||||
sed -i "s/flags = \"-Wall -Werror\"/flags = \"-Wall ${CXXFLAGS}\"/" \
|
||||
make/code_format.lua || die
|
||||
|
||||
prefixify_ro "${FILESDIR}"/wrapper.sh
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eninja -C 3rd/luamake -f compile/ninja/linux.ninja $(usex test '' 'luamake')
|
||||
./3rd/luamake/luamake $(usex test '' 'all') || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${T}"/wrapper.sh ${PN}
|
||||
|
||||
into /opt/${PN}
|
||||
dobin bin/${PN}
|
||||
|
||||
insinto /opt/${PN}/bin
|
||||
doins bin/main.lua
|
||||
|
||||
insinto /opt/${PN}
|
||||
doins -r debugger.lua main.lua locale meta script
|
||||
|
||||
einstalldocs
|
||||
}
|
|
@ -1,65 +0,0 @@
|
|||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# TODO: unbundle deps, set flags correctly, verbose luamake, less sed hacks
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua{5-{1,3,4},jit} )
|
||||
|
||||
inherit lua-single ninja-utils prefix toolchain-funcs
|
||||
|
||||
DESCRIPTION="A language server that offers Lua language support"
|
||||
HOMEPAGE="https://github.com/sumneko/lua-language-server"
|
||||
SRC_URI="https://github.com/sumneko/${PN}/releases/download/${PV}/${P}-submodules.zip -> ${P}.zip"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="${LUA_DEPS}"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
dev-util/ninja
|
||||
"
|
||||
|
||||
QA_PREBUILT="/opt/lua-language-server/bin/lua-language-server"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "s/^cc = gcc$/cc = $(tc-getCC)/" \
|
||||
3rd/luamake/compile/ninja/linux.ninja || die
|
||||
sed -i "/require \"make.detect_platform\"/a lm.cc = '$(tc-getCC)'" \
|
||||
make.lua || die
|
||||
sed -i "s/flags = \"-Wall -Werror\"/flags = \"-Wall ${CXXFLAGS}\"/" \
|
||||
make/code_format.lua || die
|
||||
|
||||
prefixify_ro "${FILESDIR}"/wrapper.sh
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eninja -C 3rd/luamake -f compile/ninja/linux.ninja $(usex test '' 'luamake')
|
||||
./3rd/luamake/luamake $(usex test '' 'all') || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${T}"/wrapper.sh ${PN}
|
||||
|
||||
into /opt/${PN}
|
||||
dobin bin/${PN}
|
||||
|
||||
insinto /opt/${PN}/bin
|
||||
doins bin/main.lua
|
||||
|
||||
insinto /opt/${PN}
|
||||
doins -r debugger.lua main.lua locale meta script
|
||||
|
||||
einstalldocs
|
||||
}
|
Loading…
Reference in New Issue
Block a user