summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-04-08 16:21:00 +0000
committerUlrich Müller <ulm@gentoo.org>2009-04-08 16:21:00 +0000
commitc577a25d08f3263e96c1742da69407a9e52e5cea (patch)
treeeff3320ab73b55a392a4cd9db62e67fe241e4b8a /app-emacs/company-mode
parentNew package, dependency of sci-biology/bioperl (diff)
downloadgentoo-2-c577a25d08f3263e96c1742da69407a9e52e5cea.tar.gz
gentoo-2-c577a25d08f3263e96c1742da69407a9e52e5cea.tar.bz2
gentoo-2-c577a25d08f3263e96c1742da69407a9e52e5cea.zip
Initial import, from Emacs overlay, bug 226031.
(Portage version: 2.2_rc28/cvs/Linux i686)
Diffstat (limited to 'app-emacs/company-mode')
-rw-r--r--app-emacs/company-mode/ChangeLog11
-rw-r--r--app-emacs/company-mode/company-mode-0.2.1.ebuild36
-rw-r--r--app-emacs/company-mode/files/50company-mode-gentoo.el2
-rw-r--r--app-emacs/company-mode/metadata.xml9
4 files changed, 58 insertions, 0 deletions
diff --git a/app-emacs/company-mode/ChangeLog b/app-emacs/company-mode/ChangeLog
new file mode 100644
index 000000000000..4ad670aef768
--- /dev/null
+++ b/app-emacs/company-mode/ChangeLog
@@ -0,0 +1,11 @@
+# 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.1 2009/04/08 16:20:59 ulm Exp $
+
+*company-mode-0.2.1 (08 Apr 2009)
+
+ 08 Apr 2009; Ulrich Mueller <ulm@gentoo.org>
+ +files/50company-mode-gentoo.el, +metadata.xml,
+ +company-mode-0.2.1.ebuild:
+ Initial import, from Emacs overlay, bug 226031. Ebuild contributed by me.
+
diff --git a/app-emacs/company-mode/company-mode-0.2.1.ebuild b/app-emacs/company-mode/company-mode-0.2.1.ebuild
new file mode 100644
index 000000000000..9c9527a4da9c
--- /dev/null
+++ b/app-emacs/company-mode/company-mode-0.2.1.ebuild
@@ -0,0 +1,36 @@
+# 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.2.1.ebuild,v 1.1 2009/04/08 16:20:59 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"
+
+DEPEND="semantic? ( app-emacs/cedet )"
+ #oddmuse? ( app-emacs/oddmuse )
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+SITEFILE="50${PN}-gentoo.el"
+
+src_configure() {
+ # Disable backends that require extra dependencies, unless they are
+ # selected by the respective USE flag
+ local backend
+ for backend in oddmuse semantic; do
+ [ "${backend}" = semantic ] && use "${backend}" && continue
+ elog "Disabling ${backend} backend"
+ rm "company-${backend}.el" || die
+ sed -i -e "s/company-${backend} *//" company.el || die
+ done
+}
diff --git a/app-emacs/company-mode/files/50company-mode-gentoo.el b/app-emacs/company-mode/files/50company-mode-gentoo.el
new file mode 100644
index 000000000000..cd85457fe91e
--- /dev/null
+++ b/app-emacs/company-mode/files/50company-mode-gentoo.el
@@ -0,0 +1,2 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'company-mode "company" nil t)
diff --git a/app-emacs/company-mode/metadata.xml b/app-emacs/company-mode/metadata.xml
new file mode 100644
index 000000000000..94a72c765714
--- /dev/null
+++ b/app-emacs/company-mode/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>emacs</herd>
+<use>
+ <flag name='semantic'>Install backend for semantic
+ (<pkg>app-emacs/cedet</pkg>)</flag>
+</use>
+</pkgmetadata>