summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-02-11 15:58:03 +0000
committerUlrich Müller <ulm@gentoo.org>2009-02-11 15:58:03 +0000
commitf2bd31d72ef961122dcede74041fd62f44154ce6 (patch)
tree0b7dca0aa5094a3f158e26fac3eead59c877e26c /app-emacs/scala-mode
parentminor bump (diff)
downloadgentoo-2-f2bd31d72ef961122dcede74041fd62f44154ce6.tar.gz
gentoo-2-f2bd31d72ef961122dcede74041fd62f44154ce6.tar.bz2
gentoo-2-f2bd31d72ef961122dcede74041fd62f44154ce6.zip
Initial import, bug 250688.
(Portage version: 2.2_rc23/cvs/Linux i686)
Diffstat (limited to 'app-emacs/scala-mode')
-rw-r--r--app-emacs/scala-mode/ChangeLog13
-rw-r--r--app-emacs/scala-mode/files/50scala-mode-gentoo.el5
-rw-r--r--app-emacs/scala-mode/files/scala-mode-2.7.3-fix-bytecompile.patch79
-rw-r--r--app-emacs/scala-mode/metadata.xml5
-rw-r--r--app-emacs/scala-mode/scala-mode-2.7.3.ebuild28
5 files changed, 130 insertions, 0 deletions
diff --git a/app-emacs/scala-mode/ChangeLog b/app-emacs/scala-mode/ChangeLog
new file mode 100644
index 000000000000..c5337fc74945
--- /dev/null
+++ b/app-emacs/scala-mode/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for app-emacs/scala-mode
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/scala-mode/ChangeLog,v 1.1 2009/02/11 15:58:03 ulm Exp $
+
+*scala-mode-2.7.3 (11 Feb 2009)
+
+ 11 Feb 2009; Ulrich Mueller <ulm@gentoo.org>
+ +files/50scala-mode-gentoo.el,
+ +files/scala-mode-2.7.3-fix-bytecompile.patch, +metadata.xml,
+ +scala-mode-2.7.3.ebuild:
+ Initial import. Ebuild contributed by Anders Bach Nielsen
+ <abachn@daimi.au.dk> in bug 250688, with modifications by me.
+
diff --git a/app-emacs/scala-mode/files/50scala-mode-gentoo.el b/app-emacs/scala-mode/files/50scala-mode-gentoo.el
new file mode 100644
index 000000000000..a811f290c138
--- /dev/null
+++ b/app-emacs/scala-mode/files/50scala-mode-gentoo.el
@@ -0,0 +1,5 @@
+
+;;; scala-mode site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(require 'scala-mode-auto)
diff --git a/app-emacs/scala-mode/files/scala-mode-2.7.3-fix-bytecompile.patch b/app-emacs/scala-mode/files/scala-mode-2.7.3-fix-bytecompile.patch
new file mode 100644
index 000000000000..702c106f9bcd
--- /dev/null
+++ b/app-emacs/scala-mode/files/scala-mode-2.7.3-fix-bytecompile.patch
@@ -0,0 +1,79 @@
+--- scala-mode-constants.el~ 2009-01-13 15:02:44.000000000 +0100
++++ scala-mode-constants.el 2009-02-09 16:13:41.000000000 +0100
+@@ -49,6 +49,7 @@
+
+ (provide 'scala-mode-constants)
+
++(require 'cl)
+ (require 'regexp-opt)
+
+ ;; Helper functions
+--- scala-mode-feature-tags.el~ 2009-01-13 15:02:44.000000000 +0100
++++ scala-mode-feature-tags.el 2009-02-09 16:15:31.000000000 +0100
+@@ -49,6 +49,7 @@
+
+ (provide 'scala-mode-feature-tags)
+
++(require 'cl)
+ (require 'etags)
+
+ (defgroup scala-mode-feature:tags nil
+--- scala-mode-fontlock.el~ 2009-01-13 15:02:44.000000000 +0100
++++ scala-mode-fontlock.el 2009-02-09 16:19:54.000000000 +0100
+@@ -49,7 +49,11 @@
+
+ (provide 'scala-mode-fontlock)
+
++(require 'cl)
+ (require 'font-lock)
++(require 'scala-mode-constants)
++(require 'scala-mode-lib)
++(require 'scala-mode-navigation)
+
+ (defun scala-mark-borders (funs)
+ (loop for (fun . flag) in funs
+--- scala-mode-indent.el~ 2009-01-13 15:02:44.000000000 +0100
++++ scala-mode-indent.el 2009-02-09 16:14:08.000000000 +0100
+@@ -49,6 +49,10 @@
+
+ (provide 'scala-mode-indent)
+
++(require 'cl)
++(require 'scala-mode-constants)
++(require 'scala-mode-navigation)
++
+ (defcustom scala-mode-indent:step 2
+ "Indentation step."
+ :type 'integer
+--- scala-mode-navigation.el~ 2009-01-13 15:02:44.000000000 +0100
++++ scala-mode-navigation.el 2009-02-09 16:21:24.000000000 +0100
+@@ -49,6 +49,8 @@
+
+ (provide 'scala-mode-navigation)
+
++(require 'scala-mode-constants)
++
+ (defun scala-when-looking-at* (regexp &optional thunk)
+ (let ((saved-match-data (match-data)))
+ (if (looking-at regexp)
+--- scala-mode-ui.el~ 2009-01-13 15:02:44.000000000 +0100
++++ scala-mode-ui.el 2009-02-09 16:24:27.000000000 +0100
+@@ -50,13 +50,15 @@
+ (provide 'scala-mode-ui)
+
+ (require 'easymenu)
++(require 'scala-mode-lib)
+
+ (eval-when-compile
+ (require 'scala-mode-inf))
+
+-(defcustom scala-mode-ui:prefix-key "\C-c"
+- "Key prefix for scala mode."
+- :group 'scala)
++(eval-and-compile
++ (defcustom scala-mode-ui:prefix-key "\C-c"
++ "Key prefix for scala mode."
++ :group 'scala))
+
+ (defmacro scala-mode-ui:key (key)
+ "Simple macro for appending 'scala-mode-prefix-key' to key commands"
diff --git a/app-emacs/scala-mode/metadata.xml b/app-emacs/scala-mode/metadata.xml
new file mode 100644
index 000000000000..bc306fe58224
--- /dev/null
+++ b/app-emacs/scala-mode/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>emacs</herd>
+</pkgmetadata>
diff --git a/app-emacs/scala-mode/scala-mode-2.7.3.ebuild b/app-emacs/scala-mode/scala-mode-2.7.3.ebuild
new file mode 100644
index 000000000000..e47a78162637
--- /dev/null
+++ b/app-emacs/scala-mode/scala-mode-2.7.3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/scala-mode/scala-mode-2.7.3.ebuild,v 1.1 2009/02/11 15:58:03 ulm Exp $
+
+EAPI=2
+
+inherit elisp eutils
+
+MY_P="scala-tool-support-${PV}.final"
+DESCRIPTION="Scala mode for Emacs"
+HOMEPAGE="http://www.scala-lang.org/"
+SRC_URI="http://www.scala-lang.org/downloads/distrib/files/scala-packages/${MY_P}.sbp -> ${MY_P}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="dev-lang/scala"
+
+S="${WORKDIR}/misc/scala-tool-support/emacs/"
+SITEFILE="50${PN}-gentoo.el"
+DOCS="AUTHORS FUTURE README"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-fix-bytecompile.patch"
+}