Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-vim/youcompleteme/
Date: Tue, 25 Feb 2020 10:05:38
Message-Id: 1582625132.0a5106931968bcc93143617b9308b308ecb0ef7e.zlogene@gentoo
1 commit: 0a5106931968bcc93143617b9308b308ecb0ef7e
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 25 10:05:03 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 25 10:05:32 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a510693
7
8 app-vim/youcompleteme: remove last-rited pkg
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11
12 app-vim/youcompleteme/Manifest | 1 -
13 app-vim/youcompleteme/metadata.xml | 11 --
14 .../youcompleteme/youcompleteme-20130910.ebuild | 88 ---------------
15 .../youcompleteme/youcompleteme-99999999.ebuild | 118 ---------------------
16 4 files changed, 218 deletions(-)
17
18 diff --git a/app-vim/youcompleteme/Manifest b/app-vim/youcompleteme/Manifest
19 deleted file mode 100644
20 index fd4d350cda7..00000000000
21 --- a/app-vim/youcompleteme/Manifest
22 +++ /dev/null
23 @@ -1 +0,0 @@
24 -DIST youcompleteme-20130910.tar.xz 2340104 BLAKE2B 1d50eae1e53d1acc3e9599ade6c5686602cf28997574dcf128b1ed1f812548c51e0c5ad45547ec12fc44d7391ce539c7cd8785ae823978ce18b870dd794f07a2 SHA512 c1022a27ced00e8ba8e9aa25029a0032805331cf0f80342aaaf9d7d4ec7780a098ffbd315068f19f6c98b00c4b4b43e59c7fa40070057e097ca40f6398b53b6b
25
26 diff --git a/app-vim/youcompleteme/metadata.xml b/app-vim/youcompleteme/metadata.xml
27 deleted file mode 100644
28 index 1b0669747ed..00000000000
29 --- a/app-vim/youcompleteme/metadata.xml
30 +++ /dev/null
31 @@ -1,11 +0,0 @@
32 -<?xml version="1.0" encoding="UTF-8"?>
33 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 -<pkgmetadata>
35 - <maintainer type="project">
36 - <email>vim@g.o</email>
37 - <name>Gentoo Vim Project</name>
38 - </maintainer>
39 - <use>
40 - <flag name="clang">Enable semantic support for C-family languages using <pkg>sys-devel/clang</pkg></flag>
41 - </use>
42 -</pkgmetadata>
43
44 diff --git a/app-vim/youcompleteme/youcompleteme-20130910.ebuild b/app-vim/youcompleteme/youcompleteme-20130910.ebuild
45 deleted file mode 100644
46 index 29e5f6c9426..00000000000
47 --- a/app-vim/youcompleteme/youcompleteme-20130910.ebuild
48 +++ /dev/null
49 @@ -1,88 +0,0 @@
50 -# Copyright 1999-2020 Gentoo Authors
51 -# Distributed under the terms of the GNU General Public License v2
52 -
53 -EAPI=5
54 -
55 -PYTHON_COMPAT=( python2_7 )
56 -
57 -inherit eutils multilib python-single-r1 cmake-utils vim-plugin
58 -
59 -if [[ ${PV} == 9999* ]] ; then
60 - EGIT_REPO_URI="https://github.com/Valloric/YouCompleteMe.git"
61 - inherit git-r3
62 -else
63 - KEYWORDS="~amd64 ~x86"
64 - SRC_URI="https://dev.gentoo.org/~radhermit/vim/${P}.tar.xz"
65 -fi
66 -
67 -DESCRIPTION="vim plugin: a code-completion engine for Vim"
68 -HOMEPAGE="https://valloric.github.io/YouCompleteMe/"
69 -
70 -LICENSE="GPL-3"
71 -IUSE="+clang test"
72 -RESTRICT="!test? ( test )"
73 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
74 -
75 -RDEPEND="${PYTHON_DEPS}
76 - clang? ( >=sys-devel/clang-3.3 )
77 - || (
78 - app-editors/vim[python,${PYTHON_SINGLE_USEDEP}]
79 - app-editors/gvim[python,${PYTHON_SINGLE_USEDEP}]
80 - )"
81 -DEPEND="${RDEPEND}
82 - test? (
83 - $(python_gen_cond_dep '
84 - >=dev-python/mock-1.0.1[${PYTHON_MULTI_USEDEP}]
85 - >=dev-python/nose-1.3.0[${PYTHON_MULTI_USEDEP}]
86 - ')
87 - )"
88 -
89 -CMAKE_IN_SOURCE_BUILD=1
90 -CMAKE_USE_DIR=${S}/cpp
91 -
92 -VIM_PLUGIN_HELPFILES="${PN}"
93 -
94 -src_prepare() {
95 - if ! use test ; then
96 - sed -i '/^add_subdirectory( tests )/d' cpp/ycm/CMakeLists.txt || die
97 - fi
98 -}
99 -
100 -src_configure() {
101 - local mycmakeargs=(
102 - $(cmake-utils_use_use clang CLANG_COMPLETER)
103 - $(cmake-utils_use_use clang SYSTEM_LIBCLANG)
104 - )
105 - cmake-utils_src_configure
106 -}
107 -
108 -src_test() {
109 - # TODO: use system gtest
110 - cd "${S}"/cpp || die
111 - emake ycm_core_tests
112 - cd ycm/tests || die
113 - LD_LIBRARY_PATH="${EROOT}"/usr/$(get_libdir)/llvm \
114 - "${S}"/cpp/ycm/tests/ycm_core_tests || die
115 -
116 - cd "${S}"/python/ycm || die
117 - nosetests --verbose || die
118 -}
119 -
120 -src_install() {
121 - dodoc *.md
122 - rm -r *.md *.sh COPYING.txt cpp || die
123 - find python -name *test* -exec rm -rf {} + || die
124 - rm python/libclang.so || die
125 -
126 - vim-plugin_src_install
127 -
128 - python_optimize "${ED}"
129 - python_fix_shebang "${ED}"
130 -}
131 -
132 -pkg_postinst() {
133 - vim-plugin_pkg_postinst
134 -
135 - [[ -z ${REPLACING_VERSIONS} ]] && \
136 - optfeature "better python autocompletion" dev-python/jedi
137 -}
138
139 diff --git a/app-vim/youcompleteme/youcompleteme-99999999.ebuild b/app-vim/youcompleteme/youcompleteme-99999999.ebuild
140 deleted file mode 100644
141 index 54e1ec4e106..00000000000
142 --- a/app-vim/youcompleteme/youcompleteme-99999999.ebuild
143 +++ /dev/null
144 @@ -1,118 +0,0 @@
145 -# Copyright 1999-2020 Gentoo Authors
146 -# Distributed under the terms of the GNU General Public License v2
147 -
148 -EAPI=5
149 -
150 -PYTHON_COMPAT=( python2_7 )
151 -
152 -inherit eutils multilib python-single-r1 cmake-utils vcs-clean vim-plugin
153 -
154 -if [[ ${PV} == 9999* ]] ; then
155 - EGIT_REPO_URI="https://github.com/Valloric/YouCompleteMe.git"
156 - inherit git-r3
157 -else
158 - KEYWORDS="~amd64 ~x86"
159 - SRC_URI="https://dev.gentoo.org/~radhermit/vim/${P}.tar.xz"
160 -fi
161 -
162 -DESCRIPTION="vim plugin: a code-completion engine for Vim"
163 -HOMEPAGE="https://valloric.github.io/YouCompleteMe/"
164 -
165 -LICENSE="GPL-3"
166 -IUSE="+clang test"
167 -RESTRICT="!test? ( test )"
168 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
169 -
170 -COMMON_DEPEND="
171 - ${PYTHON_DEPS}
172 - clang? ( >=sys-devel/clang-3.3 )
173 - $(python_gen_cond_dep '
174 - dev-libs/boost[python,threads,${PYTHON_MULTI_USEDEP}]
175 - ')
176 - || (
177 - app-editors/vim[python,${PYTHON_SINGLE_USEDEP}]
178 - app-editors/gvim[python,${PYTHON_SINGLE_USEDEP}]
179 - )
180 -"
181 -RDEPEND="
182 - ${COMMON_DEPEND}
183 - $(python_gen_cond_dep '
184 - dev-python/bottle[${PYTHON_MULTI_USEDEP}]
185 - virtual/python-futures[${PYTHON_MULTI_USEDEP}]
186 - dev-python/jedi[${PYTHON_MULTI_USEDEP}]
187 - dev-python/requests[${PYTHON_MULTI_USEDEP}]
188 - dev-python/sh[${PYTHON_MULTI_USEDEP}]
189 - dev-python/waitress[${PYTHON_MULTI_USEDEP}]
190 - ')
191 -"
192 -DEPEND="
193 - ${COMMON_DEPEND}
194 - test? (
195 - $(python_gen_cond_dep '
196 - >=dev-python/mock-1.0.1[${PYTHON_MULTI_USEDEP}]
197 - >=dev-python/nose-1.3.0[${PYTHON_MULTI_USEDEP}]
198 - ')
199 - >=dev-cpp/gtest-1.8.0
200 - )
201 -"
202 -
203 -CMAKE_IN_SOURCE_BUILD=1
204 -CMAKE_USE_DIR=${S}/third_party/ycmd/cpp
205 -
206 -VIM_PLUGIN_HELPFILES="${PN}"
207 -
208 -src_prepare() {
209 - if ! use test; then
210 - sed -i '/^add_subdirectory( tests )/d' third_party/ycmd/cpp/ycm/CMakeLists.txt || die
211 - fi
212 -
213 - for third_party_module in requests pythonfutures; do
214 - if [[ -d "${third_party_module}" ]]; then
215 - rm -r "${S}"/third_party/${third_party_module} || die "Failed to remove third party module ${third_party_module}"
216 - fi
217 - done
218 -
219 - # Argparse is included in python 2.7
220 - for third_party_module in argparse bottle jedi waitress sh requests; do
221 - if [[ -d "${third_party_module}" ]]; then
222 - rm -r "${S}"/third_party/ycmd/third_party/${third_party_module} || die "Failed to remove third party module ${third_party_module}"
223 - fi
224 - done
225 -}
226 -
227 -src_configure() {
228 - local mycmakeargs=(
229 - $(cmake-utils_use_use clang CLANG_COMPLETER)
230 - $(cmake-utils_use_use clang SYSTEM_LIBCLANG)
231 - -DUSE_SYSTEM_BOOST=ON
232 - -DUSE_SYSTEM_GMOCK=ON
233 - )
234 - cmake-utils_src_configure
235 -}
236 -
237 -src_test() {
238 - cd "${S}/third_party/ycmd/cpp/ycm/tests" || die
239 - LD_LIBRARY_PATH="${EROOT}"/usr/$(get_libdir)/llvm \
240 - ./ycm_core_tests || die
241 -
242 - cd "${S}"/python/ycm || die
243 -
244 - local dirs=( "${S}"/third_party/*/ "${S}"/third_party/ycmd/third_party/*/ )
245 - local -x PYTHONPATH=${PYTHONPATH}:$(IFS=:; echo "${dirs[*]}")
246 -
247 - nosetests --verbose || die
248 -}
249 -
250 -src_install() {
251 - dodoc *.md third_party/ycmd/*.md
252 - rm -r *.md *.sh COPYING.txt third_party/ycmd/cpp || die
253 - rm -r third_party/ycmd/{*.md,*.sh} || die
254 - find python -name *test* -exec rm -rf {} + || die
255 - egit_clean
256 - rm third_party/ycmd/libclang.so* || die
257 -
258 - vim-plugin_src_install
259 -
260 - python_optimize "${ED}"
261 - python_fix_shebang "${ED}"
262 -}