diff options
-rw-r--r-- | app-emacs/company-mode/ChangeLog | 8 | ||||
-rw-r--r-- | app-emacs/company-mode/company-mode-0.4.3.ebuild | 37 | ||||
-rw-r--r-- | app-emacs/company-mode/metadata.xml | 2 |
3 files changed, 45 insertions, 2 deletions
diff --git a/app-emacs/company-mode/ChangeLog b/app-emacs/company-mode/ChangeLog index c9a0abf97af7..0b1175a1137f 100644 --- a/app-emacs/company-mode/ChangeLog +++ b/app-emacs/company-mode/ChangeLog @@ -1,12 +1,16 @@ # ChangeLog for app-emacs/company-mode # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emacs/company-mode/ChangeLog,v 1.7 2009/06/03 16:30:45 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emacs/company-mode/ChangeLog,v 1.8 2009/08/25 19:41:27 ulm Exp $ + +*company-mode-0.4.3 (25 Aug 2009) + + 25 Aug 2009; Ulrich Mueller <ulm@gentoo.org> +company-mode-0.4.3.ebuild: + Version bump, bug 272457. Add "ropemacs" USE flag. 03 Jun 2009; Christian Faulhammer <fauli@gentoo.org> -company-mode-0.3.1.ebuild: clean up - *company-mode-0.4.2 (25 Apr 2009) 25 Apr 2009; Ulrich Mueller <ulm@gentoo.org> diff --git a/app-emacs/company-mode/company-mode-0.4.3.ebuild b/app-emacs/company-mode/company-mode-0.4.3.ebuild new file mode 100644 index 000000000000..1f3e72a0d8f0 --- /dev/null +++ b/app-emacs/company-mode/company-mode-0.4.3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emacs/company-mode/company-mode-0.4.3.ebuild,v 1.1 2009/08/25 19:41:27 ulm Exp $ + +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="semantic" + +# 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="semantic? ( app-emacs/cedet ) + || ( app-emacs/nxml-mode >=virtual/emacs-23 )" +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 pysmell ropemacs semantic; do + has ${backend} ${IUSE} && use ${backend} && continue + elog "Removing ${backend} backend" + rm "company-${backend}.el" || die + done +} diff --git a/app-emacs/company-mode/metadata.xml b/app-emacs/company-mode/metadata.xml index 94a72c765714..687b6508909b 100644 --- a/app-emacs/company-mode/metadata.xml +++ b/app-emacs/company-mode/metadata.xml @@ -3,6 +3,8 @@ <pkgmetadata> <herd>emacs</herd> <use> + <flag name='ropemacs'>Install backend for ropemacs + (<pkg>app-emacs/pymacs</pkg>)</flag> <flag name='semantic'>Install backend for semantic (<pkg>app-emacs/cedet</pkg>)</flag> </use> |