blob: 3294d684c6e61574b96d547698cbd685510a7482 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
NEED_EMACS=22
inherit elisp
DESCRIPTION="In-buffer completion front-end"
HOMEPAGE="http://nschum.de/src/emacs/company-mode/"
SRC_URI="http://nschum.de/src/emacs/${PN}/company-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="oddmuse semantic"
DEPEND="oddmuse? ( app-emacs/oddmuse )
semantic? ( app-emacs/cedet )"
RDEPEND="${DEPEND}"
S="${WORKDIR}"
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
# Disable backends that require extra dependencies, unless they are
# selected by the respective USE flag
local backend
for backend in oddmuse semantic; do
if ! use ${backend}; then
einfo "Disabling ${backend} backend"
rm company-${backend}.el || die
sed -i -e "s/company-${backend} *//" company.el || die
fi
done
}
|