mirror of
https://github.com/TrentSPalmer/gentoo-overlay-trent.git
synced 2024-11-21 10:01:31 -08:00
add youcompleteme-20190728
This commit is contained in:
parent
e218b24c54
commit
786bb008d1
@ -1,5 +1,5 @@
|
||||
EBUILD youcompleteme-20190629.ebuild 6180 BLAKE2B f31fff596b682b28d1123b8f036158fab437147fe282e965948d0a62365ea8c406e7260962e7f28221cb6ade2a82842355b0b2fdad0128cd6d433287cd7c4a9a SHA512 32001d09321a34c5e4c4148c8f7b2f091ce4993a23e9fed338ebf9fbd0dbd326380cb5b61bd393d8a82bb9dde72acaa62a6ff0e6c0463ae7112edeb1693f6e84
|
||||
EBUILD youcompleteme-20190711.ebuild 4509 BLAKE2B 058948c4ca4775eb3f28a0050786531dab2def34db5bfb8d6db079d4afc2fa44972298671cd00ca43d42c024ecc01a22ddb35ac1717880375a593a0b4fa964ca SHA512 03acb47def96841ed78607b0416cc3e7fb06ebdf956d916fa63e4c816d658aa5f95751015e28141bf58e89ec960f05fb9d42e934aeeb749a4f588480fde1417d
|
||||
EBUILD youcompleteme-20190717.ebuild 4722 BLAKE2B 90f0337736cd40a8521d9f788189dc091c3bf6164bdbd8a053d0881302d4e23892a690c4e56ebe5841103e5ed09eb0f4e8530c7305c65596d9512ccc7c30d829 SHA512 3f1d40e845b5c53cda1ffcab4ae44634e632cf21beb7ba4571984c3680b9ccaa662d97783b13acb969ee78593e43b3258ed1b30c63be8b5c78aff458b0819fbf
|
||||
EBUILD youcompleteme-20190728.ebuild 5020 BLAKE2B a5fc3d1a67c4ac06487cef1c0659fb8bb408273523600042878c4e81d983c66ef7a235262431a0d64dd13b053623b416c44a02caad21820c6031188e19b7ef24 SHA512 3d0a4fd3702922c8d134eada91445c680ba2e2f3d6f9384385a424d1dc1086c95be051ad5981748df19bd7d9568fb22846c0ad6a8c2eb9cc9c6de4d86be90147
|
||||
MISC README.md 1017 BLAKE2B b3ceff351a191e710ae7b9d55602a1a6d1858c403b61d5bcde8c1aac2203093ee15994ced762e9fc996e4b88e65f8f73fd0fd1e27dc5b7fe032291a75b3a53fe SHA512 fb8d02d90df215addc2b13e60975a3d1e41d3cca945294ca1a3013ab337b7dcd834151aabb7712036fb13189a53e69b14a531110cc3820431416cd620404d08f
|
||||
MISC metadata.xml 572 BLAKE2B fcfb5f3b820aa0390b541f67d78976faaeaa4822b8a221991abfbfff5253e0513d857acb1b3a22ee611443a958605d9751ebea749b167c09e221b27beb9a3cc3 SHA512 9b299e8fe489b4df623609ce946341dddcc93fc51f7bec583f96931606dfcd613288ca72c6790f10769ab1521602f6ba6416893d4aed4411ed4e436b086f3887
|
||||
MISC metadata.xml 684 BLAKE2B ad2a46ec4665b4530aeca2821030dec6a7eccb020b65f61a79b58b2bff959f4964e44d81c3e2914ed344758bc1b80e18bd166ae638339d67b5360b9473804f0d SHA512 b9d20edf383cd83dfefaa2d46811c876de7b02985d5d8c86645d0e787f243710100d85adaf24311ef0c9020aace0a41083f4443134009f2b6533d8e2ba2887b9
|
||||
|
@ -8,6 +8,7 @@
|
||||
<use>
|
||||
<flag name="clang">Enable semantic support for C-family languages using <pkg>sys-devel/clang</pkg></flag>
|
||||
<flag name="go">Enable semantic support for go language using <pkg>dev-lang/go</pkg></flag>
|
||||
<flag name="nodejs">Enable semantic support for nodejs language using <pkg>net-libs/nodejs</pkg></flag>
|
||||
<flag name="tern">Enable semantic support for nodejs language using <pkg>net-libs/nodejs</pkg></flag>
|
||||
<flag name="typescript">Enable semantic support for typescript language using <pkg>net-libs/nodejs</pkg></flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -10,33 +10,25 @@ inherit eutils cmake-utils git-r3 multilib python-single-r1 vim-plugin
|
||||
DESCRIPTION="vim plugin: a code-completion engine for Vim"
|
||||
HOMEPAGE="https://github.com/Valloric/YouCompleteMe"
|
||||
EGIT_REPO_URI="https://github.com/Valloric/YouCompleteMe"
|
||||
EGIT_COMMIT="d556a43c1af6a4e4075e875934e250f589df0dee"
|
||||
EGIT_COMMIT="afa2ea03d03e6793d34704e4c75f2846ecbffd52"
|
||||
SRC_URI=""
|
||||
EGIT_SUBMODULES=(
|
||||
'third_party/ycmd'
|
||||
'third_party/OmniSharpServer'
|
||||
'cecil'
|
||||
'NRefactory'
|
||||
'third_party/racerd'
|
||||
'third_party/go/src/github.com/mdempsky/gocode'
|
||||
'third_party/go/src/github.com/rogpeppe/godef'
|
||||
'third_party/go/src/golang.org/x/tools'
|
||||
)
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="clang +doc test mono go rust nodejs +neovim"
|
||||
IUSE="clang +doc test go tern +neovim typescript"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
COMMON_DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
clang? ( >=sys-devel/clang-7.0:= )
|
||||
mono? ( dev-lang/mono )
|
||||
go? ( dev-lang/go )
|
||||
rust? ( dev-lang/rust
|
||||
app-vim/rust-vim
|
||||
)
|
||||
nodejs? ( net-libs/nodejs )
|
||||
tern? ( net-libs/nodejs )
|
||||
typescript? ( net-libs/nodejs )
|
||||
neovim? ( app-editors/neovim[python] )
|
||||
dev-libs/boost[python,threads,${PYTHON_USEDEP}]
|
||||
|| (
|
||||
@ -99,33 +91,25 @@ src_configure() {
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
if use rust;
|
||||
then
|
||||
cd "${S}"/third_party/ycmd/third_party/racerd || die "no dir third_party/racerd"
|
||||
cargo build --release || die "cargo build failed"
|
||||
fi
|
||||
|
||||
if use mono;
|
||||
then
|
||||
cd "${S}/third_party/ycmd/third_party/OmniSharpServer" || die "failed cd to OmniSharpServer"
|
||||
xbuild /property:Configuration=Release || die "xbuild command failed"
|
||||
fi
|
||||
|
||||
if use go;
|
||||
then
|
||||
export GOPATH="$GOPATH:${S}/third_party/ycmd/third_party/go"
|
||||
cd "${S}/third_party/ycmd/third_party/go/src/github.com/mdempsky/gocode" || die "failed cd to gocode"
|
||||
# export GOPATH="$GOPATH:${S}/third_party/ycmd/third_party/go"
|
||||
cd "${S}/third_party/ycmd/third_party/go/src/golang.org/x/tools/cmd/gopls" || die "failed cd to gopls"
|
||||
go build || die "failed to go build gocode GOPATH is $GOPATH"
|
||||
cd "${S}/third_party/ycmd/third_party/go/src/github.com/rogpeppe/godef" || die "failed cd to godef"
|
||||
go build || die "failed to go build godef GOPATH is $GOPATH"
|
||||
fi
|
||||
|
||||
if use nodejs;
|
||||
if use tern;
|
||||
then
|
||||
cd "${S}/third_party/ycmd/third_party/tern_runtime" || die "no dir third_party/tern_runtime"
|
||||
npm install --production --python=python3 || die "npm install failed"
|
||||
fi
|
||||
|
||||
if use typescript;
|
||||
then
|
||||
mkdir -p "${S}/third_party/ycmd/third_party/tsserver" || die "no dir third_party/tsserver"
|
||||
npm install -g --prefix third_party/tsserver typescript --python=python3
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
src_test() {
|
||||
@ -143,43 +127,10 @@ src_test() {
|
||||
|
||||
src_install() {
|
||||
|
||||
if use rust;
|
||||
then
|
||||
cd "${S}/third_party/ycmd/third_party/racerd" || die "racerd target wasn't built"
|
||||
for f in $(ls -a | tail -n +3 | grep -v target)
|
||||
do
|
||||
rm -rf "${f}"
|
||||
done
|
||||
cd "${S}/third_party/ycmd/third_party/racerd/target/release" || die "racerd target wasn't built"
|
||||
for f in $(ls -a | tail -n +3 | grep -v '^racerd$')
|
||||
do
|
||||
rm -rf "${f}"
|
||||
done
|
||||
fi
|
||||
|
||||
if use mono;
|
||||
then
|
||||
cd "${S}/third_party/ycmd/third_party/OmniSharpServer"
|
||||
for f in $(ls -a | tail -n +3 | grep -v '^OmniSharp$')
|
||||
do
|
||||
rm -rf "${f}"
|
||||
done
|
||||
cd "${S}/third_party/ycmd/third_party/OmniSharpServer/OmniSharp"
|
||||
for f in $(ls -a | tail -n +3 | grep -v '^bin$')
|
||||
do
|
||||
rm -rf "${f}"
|
||||
done
|
||||
fi
|
||||
|
||||
if use go;
|
||||
then
|
||||
cd "${S}/third_party/ycmd/third_party/go/src/github.com/mdempsky/gocode"
|
||||
for f in $(ls -a | tail -n +3 | grep -v '^gocode$')
|
||||
do
|
||||
rm -rf "${f}"
|
||||
done
|
||||
cd "${S}/third_party/ycmd/third_party/go/src/github.com/rogpeppe/godef"
|
||||
for f in $(ls -a | tail -n +3 | grep -v '^godef$')
|
||||
cd "${S}/third_party/ycmd/third_party/go/src/golang.org/x/tools/cmd/gopls"
|
||||
for f in $(ls -a | tail -n +3 | grep -v '^gopls$')
|
||||
do
|
||||
rm -rf "${f}"
|
||||
done
|
||||
@ -187,8 +138,10 @@ src_install() {
|
||||
|
||||
cd "${S}"
|
||||
use doc && dodoc *.md third_party/ycmd/*.md
|
||||
rm -r *.md *.sh *.py* *.ini *.yml COPYING.txt third_party/ycmd/cpp third_party/ycmd/ci third_party/ycmd/examples/samples || die
|
||||
rm -r third_party/ycmd/{*.md,*.sh,*.yml,.coveragerc,.gitignore,.gitmodules,.travis.yml,build.*,*.txt,run_tests.*,*.ini,update*} || die
|
||||
# rm -r *.md *.sh *.py* *.ini *.yml COPYING.txt third_party/ycmd/cpp third_party/ycmd/ci third_party/ycmd/examples/samples || die
|
||||
rm -r *.md *.sh *.py* *.ini *.yml COPYING.txt third_party/ycmd/examples/samples || die
|
||||
# rm -r third_party/ycmd/{*.md,*.sh,*.yml,.coveragerc,.gitignore,.gitmodules,.travis.yml,build.*,*.txt,run_tests.*,*.ini,update*} || die
|
||||
rm -r third_party/ycmd/{*.md,*.sh,*.yml,.coveragerc,.gitignore,.gitmodules,build.*,*.txt,run_tests.*,*.ini,update*} || die
|
||||
find python -name *test* -exec rm -rf {} + || die
|
||||
find third_party/ycmd/third_party -name test -exec rm -rf {} + || die
|
||||
egit_clean
|
||||
@ -196,13 +149,18 @@ src_install() {
|
||||
|
||||
vim-plugin_src_install
|
||||
|
||||
use mono || rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/third_party/OmniSharpServer"
|
||||
use rust || rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/third_party/racerd"
|
||||
use rust || rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/ycmd/completers/rust"
|
||||
use go || rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/ycmd/completers/go"
|
||||
use go || rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/third_party/go"
|
||||
use nodejs || rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/third_party/tern_runtime"
|
||||
use nodejs || rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/ycmd/completers/javascript"
|
||||
if ! use tern;
|
||||
then
|
||||
if ! use typescript;
|
||||
then
|
||||
rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/third_party/tern_runtime"
|
||||
rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/ycmd/completers/javascript"
|
||||
fi
|
||||
fi
|
||||
# use tern || rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/third_party/tern_runtime"
|
||||
# use nodejs || rm -rf "${D}/usr/share/vim/vimfiles/third_party/ycmd/ycmd/completers/javascript"
|
||||
find "${D}" -name .gitignore -exec rm -rf {} + || die
|
||||
find "${D}" -name .travis.yml -exec rm -rf {} + || die
|
||||
find "${D}" -name README.rst -exec rm -rf {} + || die
|
Loading…
Reference in New Issue
Block a user