From 31d81957594ab2ce5252962124aa486d9365b132 Mon Sep 17 00:00:00 2001 From: Anton Schubert Date: Sun, 9 Apr 2017 01:11:11 +0200 Subject: [PATCH] add racer keywords --- dev-util/racer/racer-1.1.0.ebuild | 68 ------------------------------- dev-util/racer/racer-2.0.1.ebuild | 2 +- 2 files changed, 1 insertion(+), 69 deletions(-) delete mode 100644 dev-util/racer/racer-1.1.0.ebuild diff --git a/dev-util/racer/racer-1.1.0.ebuild b/dev-util/racer/racer-1.1.0.ebuild deleted file mode 100644 index 1fc67e7..0000000 --- a/dev-util/racer/racer-1.1.0.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils elisp-common - -DESCRIPTION="Rust Code Completion utility " -HOMEPAGE="https://github.com/phildawes/racer" -SRC_URI="https://github.com/phildawes/racer/archive/v${PV}.tar.gz -> ${PN}-v${PV}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE="emacs vim" - -COMMON_DEPEND="virtual/rust:* - emacs? ( - app-emacs/company-mode[ropemacs] - app-emacs/rust-mode - virtual/emacs ) - vim? ( || ( app-editors/vim app-editors/gvim ) )" -DEPEND="${COMMON_DEPEND} - dev-util/cargo" -RDEPEND="${COMMON_DEPEND}" - -src_compile() { - cargo build --release -} - -src_install() { - dobin target/release/racer - if use emacs; then - elisp-install ${PN} editors/racer.el - elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" - fi - if use vim; then - insinto /usr/share/vim/vimfiles/plugin/ - sed -i 's|\(g:racer_cmd = \).*|\1"/usr/bin/racer"|' plugin/racer.vim - doins plugin/racer.vim - fi -} - -pkg_postinst() { - elog "You most probably should fetch rust sources for best expirience." - elog "Racer will look for sources in path pointed by RUST_SRC_PATH" - elog "environment variable. You can use" - elog "% export RUST_SRC_PATH=/rust/src." - elog - if use emacs; then - elog "You should use '(setq racer-rust-src-path \"/rust/src/\")'" - elog "for emacs plugin to be able to find rust sources for racer." - elog - elisp-site-regen - fi - if use vim; then - elog "For vim you can use 'let \$RUST_SRC_PATH=\"/rust/src/\"'" - elog "if you don't want to use environment variable" - elog "You also can use \"set hidden\" or else your buffer will be" - elog "unloaded on every goto-definition" - fi -} - -pkg_postrm() { - use emacs && elisp-site-regen -} - diff --git a/dev-util/racer/racer-2.0.1.ebuild b/dev-util/racer/racer-2.0.1.ebuild index 529ff82..ba46e24 100644 --- a/dev-util/racer/racer-2.0.1.ebuild +++ b/dev-util/racer/racer-2.0.1.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/phildawes/racer/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="" +KEYWORDS="~amd64" IUSE="" COMMON_DEPEND="virtual/rust:*"