38 lines
991 B
Bash
38 lines
991 B
Bash
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=5
|
|
|
|
inherit elisp
|
|
|
|
DESCRIPTION="In-buffer completion front-end"
|
|
HOMEPAGE="https://company-mode.github.com/"
|
|
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="ropemacs"
|
|
|
|
# Note: company-mode supports many backends, and we refrain from including
|
|
# them all in RDEPEND. Only depend on things that are needed at build time.
|
|
DEPEND="ropemacs? ( app-emacs/pymacs )"
|
|
RDEPEND="${DEPEND}
|
|
ropemacs? ( dev-python/ropemacs )"
|
|
|
|
SITEFILE="50${PN}-gentoo.el"
|
|
DOCS="README.md NEWS.md"
|
|
|
|
src_prepare() {
|
|
# Disable backends that require extra dependencies, unless they are
|
|
# selected by the respective USE flag
|
|
|
|
elog "Removing pysmell backend"
|
|
rm company-pysmell.el || die
|
|
|
|
if ! use ropemacs; then
|
|
elog "Removing ropemacs backend, as requested by USE=-ropemacs"
|
|
rm company-ropemacs.el || die
|
|
fi
|
|
}
|