mirror of
				https://github.com/TrentSPalmer/gentoo-overlay-trent.git
				synced 2025-11-04 01:58:24 -08:00 
			
		
		
		
	add oh-my-zsh-20221005
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
EBUILD youcompleteme-20220711.ebuild 4198 BLAKE2B 3ec79c92d09c28a9adb39f15ad713e544f5b6383c5876d4df7ad4ef63f2b8fa497fd6e04bccd90610489ac5d23fb6982373644fb4000ab38269da641663bc31e SHA512 217d0d18d6db02068ac622848c587ecf54864934d7442d981349ec16ceb419dcafa91a65a1b76ca8b0a3356ce63e8e98f9101c91fefdbd34fc671703279932f0
 | 
			
		||||
EBUILD youcompleteme-20220819.ebuild 4198 BLAKE2B dc2245052ff85dad994ecdb111127b645ac848242aaf947d572b6639577f3c80770da67ca19e6cf1e27e168b79c4bdfd47b43b6fce3c2654e6648602274a6720 SHA512 d1f6d0cb207bd99d4945b8378dc9a13abf84b3330c14d883e4c6d21a769aa75fcc477aac6c2ab6efff43e522270014f7a88ffec0635a824206a68c027cac4ab1
 | 
			
		||||
EBUILD youcompleteme-20220824.ebuild 4198 BLAKE2B 7becbd022b98be07b22f78795b8400fc2e887744ae9142140dd9601c2af8354adbf341171355d0a1f3a9b8b29864084107161bf7d382ac2e67db58a64e4872d5 SHA512 0553f362b4a43fdef17ae4ee4936347c059b6d2a0a78c23c141325a41b472f4462929206b857bd4d8fc32718f5aaebb290379080d3ef0915068f59871e6e9340
 | 
			
		||||
EBUILD youcompleteme-20220829.ebuild 4198 BLAKE2B bac80e19b29df89c33c4ff0b0daae64bcbb62b2af86a1ca45037b9fb457f3d0ff92937c03180df208882ad687f814683ac802d34367ba7f03f52a83a162bea0c SHA512 89ec1afd22aeaf30fcc6af87cd39ff437270bc141a3a3845ab6cd7069836a547a97e21586b13175a88fd409f4ca2acb1bcf622ed0a4843660f6df0815645468d
 | 
			
		||||
MISC README.md 1017 BLAKE2B b3ceff351a191e710ae7b9d55602a1a6d1858c403b61d5bcde8c1aac2203093ee15994ced762e9fc996e4b88e65f8f73fd0fd1e27dc5b7fe032291a75b3a53fe SHA512 fb8d02d90df215addc2b13e60975a3d1e41d3cca945294ca1a3013ab337b7dcd834151aabb7712036fb13189a53e69b14a531110cc3820431416cd620404d08f
 | 
			
		||||
MISC metadata.xml 684 BLAKE2B ad2a46ec4665b4530aeca2821030dec6a7eccb020b65f61a79b58b2bff959f4964e44d81c3e2914ed344758bc1b80e18bd166ae638339d67b5360b9473804f0d SHA512 b9d20edf383cd83dfefaa2d46811c876de7b02985d5d8c86645d0e787f243710100d85adaf24311ef0c9020aace0a41083f4443134009f2b6533d8e2ba2887b9
 | 
			
		||||
 
 | 
			
		||||
@@ -1,155 +0,0 @@
 | 
			
		||||
# Copyright 1999-2021 Gentoo Foundation
 | 
			
		||||
# Distributed under the terms of the GNU General Public License v2
 | 
			
		||||
 | 
			
		||||
EAPI=7
 | 
			
		||||
 | 
			
		||||
PYTHON_COMPAT=( python3_10 )
 | 
			
		||||
 | 
			
		||||
inherit eutils cmake 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="d35df6136146b12f3a78f8b8fbdaf55f4e2ee462"
 | 
			
		||||
SRC_URI=""
 | 
			
		||||
EGIT_SUBMODULES=(
 | 
			
		||||
	'third_party/ycmd'
 | 
			
		||||
	)
 | 
			
		||||
 | 
			
		||||
LICENSE="GPL-3"
 | 
			
		||||
SLOT="0"
 | 
			
		||||
KEYWORDS="~amd64 ~x86"
 | 
			
		||||
IUSE="clang +doc test go tern +neovim typescript"
 | 
			
		||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 | 
			
		||||
 | 
			
		||||
COMMON_DEPEND="
 | 
			
		||||
	${PYTHON_DEPS}
 | 
			
		||||
	clang? ( >=sys-devel/clang-7.0:= )
 | 
			
		||||
	go?   ( dev-go/gopls )
 | 
			
		||||
	tern? ( net-libs/nodejs )
 | 
			
		||||
	typescript? ( net-libs/nodejs )
 | 
			
		||||
	neovim? (
 | 
			
		||||
		>=app-editors/neovim-0.5.0
 | 
			
		||||
		dev-python/pynvim
 | 
			
		||||
	)
 | 
			
		||||
	dev-libs/boost[python]
 | 
			
		||||
	|| (
 | 
			
		||||
		app-editors/vim[python]
 | 
			
		||||
		app-editors/gvim[python]
 | 
			
		||||
	)
 | 
			
		||||
"
 | 
			
		||||
 | 
			
		||||
RDEPEND="
 | 
			
		||||
	${COMMON_DEPEND}
 | 
			
		||||
	dev-python/bottle
 | 
			
		||||
	dev-python/regex
 | 
			
		||||
	dev-python/sh
 | 
			
		||||
	dev-python/numpydoc
 | 
			
		||||
	>=dev-python/jedi-0.12.1
 | 
			
		||||
	dev-python/parso
 | 
			
		||||
	dev-python/watchdog
 | 
			
		||||
"
 | 
			
		||||
DEPEND="
 | 
			
		||||
	${COMMON_DEPEND}
 | 
			
		||||
	test? (
 | 
			
		||||
		>=dev-python/mock-1.0.1
 | 
			
		||||
		>=dev-python/nose-1.3.0
 | 
			
		||||
		dev-cpp/gmock
 | 
			
		||||
		dev-cpp/gtest
 | 
			
		||||
	)
 | 
			
		||||
"
 | 
			
		||||
 | 
			
		||||
CMAKE_IN_SOURCE_BUILD=1
 | 
			
		||||
CMAKE_USE_DIR=${S}/third_party/ycmd/cpp
 | 
			
		||||
 | 
			
		||||
VIM_PLUGIN_HELPFILES="${PN}"
 | 
			
		||||
 | 
			
		||||
src_prepare() {
 | 
			
		||||
	default
 | 
			
		||||
 | 
			
		||||
	if ! use test ; then
 | 
			
		||||
		sed -i '/^add_subdirectory( tests )/d' third_party/ycmd/cpp/ycm/CMakeLists.txt || die
 | 
			
		||||
	fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
src_configure() {
 | 
			
		||||
	local mycmakeargs=(
 | 
			
		||||
		-DUSE_CLANG_COMPLETER="$(usex clang)"
 | 
			
		||||
		-DUSE_SYSTEM_LIBCLANG="$(usex clang)"
 | 
			
		||||
		-DUSE_SYSTEM_BOOST=ON
 | 
			
		||||
		-DUSE_SYSTEM_GMOCK=ON
 | 
			
		||||
		-DUSE_PYTHON2=OFF
 | 
			
		||||
	)
 | 
			
		||||
	cmake-utils_src_configure
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
src_compile() {
 | 
			
		||||
	cmake-utils_src_compile
 | 
			
		||||
 | 
			
		||||
	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() {
 | 
			
		||||
	cd "${S}/third_party/ycmd/cpp/ycm/tests"
 | 
			
		||||
	LD_LIBRARY_PATH="${EROOT}"/usr/$(get_libdir)/llvm \
 | 
			
		||||
		./ycm_core_tests || die
 | 
			
		||||
 | 
			
		||||
	cd "${S}"/python/ycm
 | 
			
		||||
 | 
			
		||||
	local dirs=( "${S}"/third_party/*/ "${S}"/third_party/ycmd/third_party/*/ )
 | 
			
		||||
	local -x PYTHONPATH=${PYTHONPATH}:$(IFS=:; echo "${dirs[*]}")
 | 
			
		||||
 | 
			
		||||
	nosetests --verbose || die
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
src_install() {
 | 
			
		||||
 | 
			
		||||
	if use go;
 | 
			
		||||
	then
 | 
			
		||||
		mkdir -p "${S}/third_party/ycmd/third_party/go/bin"
 | 
			
		||||
		ln -s /usr/bin/gopls  "${S}/third_party/ycmd/third_party/go/bin/gopls"
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	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 *.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
 | 
			
		||||
	# use clang && (rm third_party/ycmd/third_party/clang/lib/libclang.so* || die)
 | 
			
		||||
 | 
			
		||||
	vim-plugin_src_install
 | 
			
		||||
 | 
			
		||||
	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"
 | 
			
		||||
	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
 | 
			
		||||
 | 
			
		||||
	python_optimize "${ED}"
 | 
			
		||||
	python_fix_shebang "${ED}"
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user