diff options
author | Tim Harder <radhermit@gentoo.org> | 2013-09-10 10:32:26 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2013-09-10 10:32:26 +0000 |
commit | e9421ec2986a9c5901f8c525ff179138e00170aa (patch) | |
tree | 89ef2af409460a9a9c17b382a47407fb7db6fee4 /app-vim | |
parent | revbump -> EAPI 5, remove old (diff) | |
download | gentoo-2-e9421ec2986a9c5901f8c525ff179138e00170aa.tar.gz gentoo-2-e9421ec2986a9c5901f8c525ff179138e00170aa.tar.bz2 gentoo-2-e9421ec2986a9c5901f8c525ff179138e00170aa.zip |
Initial import (bug #482040 by hasufell).
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'app-vim')
-rw-r--r-- | app-vim/youcompleteme/ChangeLog | 12 | ||||
-rw-r--r-- | app-vim/youcompleteme/Manifest | 5 | ||||
-rw-r--r-- | app-vim/youcompleteme/metadata.xml | 8 | ||||
-rw-r--r-- | app-vim/youcompleteme/youcompleteme-20130910.ebuild | 89 | ||||
-rw-r--r-- | app-vim/youcompleteme/youcompleteme-99999999.ebuild | 89 |
5 files changed, 203 insertions, 0 deletions
diff --git a/app-vim/youcompleteme/ChangeLog b/app-vim/youcompleteme/ChangeLog new file mode 100644 index 000000000000..7084efe23347 --- /dev/null +++ b/app-vim/youcompleteme/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-vim/youcompleteme +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-vim/youcompleteme/ChangeLog,v 1.1 2013/09/10 10:32:26 radhermit Exp $ + +*youcompleteme-99999999 (10 Sep 2013) +*youcompleteme-20130910 (10 Sep 2013) + + 10 Sep 2013; Tim Harder <radhermit@gentoo.org> + +youcompleteme-20130910.ebuild, +youcompleteme-99999999.ebuild, + +metadata.xml: + Initial import (bug #482040 by hasufell). + diff --git a/app-vim/youcompleteme/Manifest b/app-vim/youcompleteme/Manifest new file mode 100644 index 000000000000..18aaa7335d20 --- /dev/null +++ b/app-vim/youcompleteme/Manifest @@ -0,0 +1,5 @@ +DIST youcompleteme-20130910.tar.xz 2340104 SHA256 00906c92ba3c0f113c73398997008d9c8b3f31d617f5da233f25174a6d488bac SHA512 c1022a27ced00e8ba8e9aa25029a0032805331cf0f80342aaaf9d7d4ec7780a098ffbd315068f19f6c98b00c4b4b43e59c7fa40070057e097ca40f6398b53b6b WHIRLPOOL 867c3f0c08473246c52377bdb9ac52b96af1d1b3a970cb087784e54082afe19e6549c54bb37f460d379b5fac8f5f7aa4bccb1e24b0984a98c08750469ff518c6 +EBUILD youcompleteme-20130910.ebuild 1984 SHA256 dc27bc235c8e6b8759df8d5ed6c925d1bf55c6daaba79ed8cbaae975275ea0bb SHA512 e7c9997e9ef2785cd9291fb1abb9f509969716f9275a8b8f16d70640062a44d3d12a844eb94e412d9e91daf0ae65febc845fb6c4954b7b11125ca22f74b90eae WHIRLPOOL 8116a8bdc309469efabe6e2264c8c8d9032c4d05aa3d1f1d862c4cc137a8f29ba6c17f846d197502a4fae0023d57d116ab282492d8bf227a683aaab89ff6c6f7 +EBUILD youcompleteme-99999999.ebuild 1984 SHA256 dc27bc235c8e6b8759df8d5ed6c925d1bf55c6daaba79ed8cbaae975275ea0bb SHA512 e7c9997e9ef2785cd9291fb1abb9f509969716f9275a8b8f16d70640062a44d3d12a844eb94e412d9e91daf0ae65febc845fb6c4954b7b11125ca22f74b90eae WHIRLPOOL 8116a8bdc309469efabe6e2264c8c8d9032c4d05aa3d1f1d862c4cc137a8f29ba6c17f846d197502a4fae0023d57d116ab282492d8bf227a683aaab89ff6c6f7 +MISC ChangeLog 376 SHA256 718b11fa63a123f7810cc6b7f65ffdafa88c660ee07a152f765296f5e42096dd SHA512 0f40d5bdc9a5b37a1110f32f71f512a1907b283b2a0cc0e038e31e810f87d60b1e4add42b1b25aab3ffb9fee8be6f8eb666cc9be59df693b4f3c1469df05d233 WHIRLPOOL 056be297e16812527ad4917817c39090514a42f2c0a013f1be84cee44197d245626e16db0f43246eff895d6295d6920ec66b71e69f5f5343924defd5157baab1 +MISC metadata.xml 276 SHA256 b4ec72c8b7d1d246c01602b5d087df5428f1fec5e00415d5d81536aadb689f19 SHA512 34603f768f01063b5911cf35d4d0d29130ecbf5e1bda8a15992a095a948409296ff2bfa3ce75735cc3c8a577959b3ffd49ccd32022c1aedb2d118dd9c4bb72a6 WHIRLPOOL 52cda40fe2f06f25183ddd54c9854527caed8c280325b36282d5d9fa1eefcf603b0cf3c56bd87cac847b53c27ec96857aa393b236407d1bd1d9d47cc4fae49dc diff --git a/app-vim/youcompleteme/metadata.xml b/app-vim/youcompleteme/metadata.xml new file mode 100644 index 000000000000..0398088bee2e --- /dev/null +++ b/app-vim/youcompleteme/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>vim</herd> +<use> + <flag name="clang">Enable semantic support for C-family languages using <pkg>sys-devel/clang</pkg></flag> +</use> +</pkgmetadata> diff --git a/app-vim/youcompleteme/youcompleteme-20130910.ebuild b/app-vim/youcompleteme/youcompleteme-20130910.ebuild new file mode 100644 index 000000000000..c3aa79496258 --- /dev/null +++ b/app-vim/youcompleteme/youcompleteme-20130910.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-vim/youcompleteme/youcompleteme-20130910.ebuild,v 1.1 2013/09/10 10:32:26 radhermit Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_6,2_7} ) +inherit multilib python-single-r1 cmake-utils vim-plugin + +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="git://github.com/Valloric/YouCompleteMe.git" + inherit git-r3 +else + KEYWORDS="~amd64 ~x86" + SRC_URI="http://dev.gentoo.org/~radhermit/vim/${P}.tar.xz" +fi + +DESCRIPTION="vim plugin: a code-completion engine for Vim" +HOMEPAGE="http://valloric.github.io/YouCompleteMe/" + +LICENSE="GPL-3" +IUSE="+clang test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + clang? ( >=sys-devel/clang-3.3 ) + || ( + app-editors/vim[python,${PYTHON_USEDEP}] + app-editors/gvim[python,${PYTHON_USEDEP}] + )" +DEPEND="${RDEPEND} + test? ( + >=dev-python/mock-1.0.1[${PYTHON_USEDEP}] + >=dev-python/nose-1.3.0[${PYTHON_USEDEP}] + )" + +CMAKE_IN_SOURCE_BUILD=1 +CMAKE_USE_DIR=${S}/cpp + +VIM_PLUGIN_HELPFILES="${PN}" + +src_prepare() { + if ! use test ; then + sed -i '/^add_subdirectory( tests )/d' cpp/ycm/CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_use clang CLANG_COMPLETER) + $(cmake-utils_use_use clang SYSTEM_LIBCLANG) + ) + cmake-utils_src_configure +} + +src_test() { + # TODO: use system gmock/gtest + cd "${S}"/cpp + emake ycm_core_tests + cd ycm/tests || die + LD_LIBRARY_PATH="${EROOT}"/usr/$(get_libdir)/llvm \ + "${S}"/cpp/ycm/tests/ycm_core_tests || die + + cd "${S}"/python/ycm + nosetests || die +} + +src_install() { + dodoc *.md + rm -r *.md *.sh COPYING.txt cpp || die + find python -name *test* -exec rm -rf {} + || die + + vim-plugin_src_install + + python_optimize "${ED}" + python_fix_shebang "${ED}" + + use clang && dosym /usr/$(get_libdir)/llvm/libclang.so /usr/share/vim/vimfiles/python/libclang.so +} + +pkg_postinst() { + vim-plugin_pkg_postinst + + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog + elog "optional dependencies:" + elog " dev-python/jedi (better python autocompletion)" + elog + fi +} diff --git a/app-vim/youcompleteme/youcompleteme-99999999.ebuild b/app-vim/youcompleteme/youcompleteme-99999999.ebuild new file mode 100644 index 000000000000..d533ad7c2c6d --- /dev/null +++ b/app-vim/youcompleteme/youcompleteme-99999999.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-vim/youcompleteme/youcompleteme-99999999.ebuild,v 1.1 2013/09/10 10:32:26 radhermit Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_6,2_7} ) +inherit multilib python-single-r1 cmake-utils vim-plugin + +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="git://github.com/Valloric/YouCompleteMe.git" + inherit git-r3 +else + KEYWORDS="~amd64 ~x86" + SRC_URI="http://dev.gentoo.org/~radhermit/vim/${P}.tar.xz" +fi + +DESCRIPTION="vim plugin: a code-completion engine for Vim" +HOMEPAGE="http://valloric.github.io/YouCompleteMe/" + +LICENSE="GPL-3" +IUSE="+clang test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + clang? ( >=sys-devel/clang-3.3 ) + || ( + app-editors/vim[python,${PYTHON_USEDEP}] + app-editors/gvim[python,${PYTHON_USEDEP}] + )" +DEPEND="${RDEPEND} + test? ( + >=dev-python/mock-1.0.1[${PYTHON_USEDEP}] + >=dev-python/nose-1.3.0[${PYTHON_USEDEP}] + )" + +CMAKE_IN_SOURCE_BUILD=1 +CMAKE_USE_DIR=${S}/cpp + +VIM_PLUGIN_HELPFILES="${PN}" + +src_prepare() { + if ! use test ; then + sed -i '/^add_subdirectory( tests )/d' cpp/ycm/CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_use clang CLANG_COMPLETER) + $(cmake-utils_use_use clang SYSTEM_LIBCLANG) + ) + cmake-utils_src_configure +} + +src_test() { + # TODO: use system gmock/gtest + cd "${S}"/cpp + emake ycm_core_tests + cd ycm/tests || die + LD_LIBRARY_PATH="${EROOT}"/usr/$(get_libdir)/llvm \ + "${S}"/cpp/ycm/tests/ycm_core_tests || die + + cd "${S}"/python/ycm + nosetests || die +} + +src_install() { + dodoc *.md + rm -r *.md *.sh COPYING.txt cpp || die + find python -name *test* -exec rm -rf {} + || die + + vim-plugin_src_install + + python_optimize "${ED}" + python_fix_shebang "${ED}" + + use clang && dosym /usr/$(get_libdir)/llvm/libclang.so /usr/share/vim/vimfiles/python/libclang.so +} + +pkg_postinst() { + vim-plugin_pkg_postinst + + if [[ -z ${REPLACING_VERSIONS} ]] ; then + elog + elog "optional dependencies:" + elog " dev-python/jedi (better python autocompletion)" + elog + fi +} |