summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/wikipedia-mode')
-rw-r--r--app-emacs/wikipedia-mode/Manifest1
-rw-r--r--app-emacs/wikipedia-mode/files/50wikipedia-mode-gentoo.el7
-rw-r--r--app-emacs/wikipedia-mode/files/wikipedia-mode-0.5-require-outline-magic.patch6
-rw-r--r--app-emacs/wikipedia-mode/metadata.xml15
-rw-r--r--app-emacs/wikipedia-mode/wikipedia-mode-0.5-r1.ebuild25
5 files changed, 54 insertions, 0 deletions
diff --git a/app-emacs/wikipedia-mode/Manifest b/app-emacs/wikipedia-mode/Manifest
new file mode 100644
index 00000000000..65e3b4332fc
--- /dev/null
+++ b/app-emacs/wikipedia-mode/Manifest
@@ -0,0 +1 @@
+DIST wikipedia-mode-0.5.el.bz2 14243 SHA256 61941b617f74a6c0da72190e1c83b4b46601062273b70d773c2b0eed1670467f SHA512 d10ddfb13e45fae347fe286df919bd9840ea0c2b38e903b451a9c3b6b6ab768566021d12b898bdc7236d034a89ba582dc8d22827bd3b4d80a0363ab323bd045d WHIRLPOOL bccb1917c2f8230f1d76e0ce28e41fd9fe7ad51c5a66ee26313d525e34e11810b1c6904ddff35851d2c4c1a81cec590fed0730ec1758b7d641c18907df820a9e
diff --git a/app-emacs/wikipedia-mode/files/50wikipedia-mode-gentoo.el b/app-emacs/wikipedia-mode/files/50wikipedia-mode-gentoo.el
new file mode 100644
index 00000000000..1c302088ec7
--- /dev/null
+++ b/app-emacs/wikipedia-mode/files/50wikipedia-mode-gentoo.el
@@ -0,0 +1,7 @@
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'wikipedia-mode "wikipedia-mode"
+ "Major mode for editing documents in Wikipedia markup." t)
+
+(add-to-list 'auto-mode-alist '("\\.wiki\\'" . wikipedia-mode))
+(add-to-list 'auto-mode-alist '("/[a-z]+\\.wikipedia\\.org" . wikipedia-mode))
diff --git a/app-emacs/wikipedia-mode/files/wikipedia-mode-0.5-require-outline-magic.patch b/app-emacs/wikipedia-mode/files/wikipedia-mode-0.5-require-outline-magic.patch
new file mode 100644
index 00000000000..caefca75763
--- /dev/null
+++ b/app-emacs/wikipedia-mode/files/wikipedia-mode-0.5-require-outline-magic.patch
@@ -0,0 +1,6 @@
+--- wikipedia-mode.el~
++++ wikipedia-mode.el
+@@ -386,2 +386,3 @@
+ (require 'font-lock)
++(require 'outline-magic)
+
diff --git a/app-emacs/wikipedia-mode/metadata.xml b/app-emacs/wikipedia-mode/metadata.xml
new file mode 100644
index 00000000000..526fe57e893
--- /dev/null
+++ b/app-emacs/wikipedia-mode/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>emacs</herd>
+<longdescription>
+ An Emacs major mode for editing articles in Wikipedia and other wikis
+ running MediaWiki software offline. This mode tweaks Emacs's behavior in
+ several ways to make it easier to edit MediaWiki articles. In particular,
+ wikipedia-mode provides syntax highlighting for MediaWiki markup.
+</longdescription>
+<use>
+ <flag name='outline-magic'>Enable support for outline-mode extensions
+ (<pkg>app-emacs/outline-magic</pkg>)</flag>
+</use>
+</pkgmetadata>
diff --git a/app-emacs/wikipedia-mode/wikipedia-mode-0.5-r1.ebuild b/app-emacs/wikipedia-mode/wikipedia-mode-0.5-r1.ebuild
new file mode 100644
index 00000000000..44a2c1448b8
--- /dev/null
+++ b/app-emacs/wikipedia-mode/wikipedia-mode-0.5-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit elisp eutils
+
+DESCRIPTION="Mode for editing Wikipedia articles off-line"
+HOMEPAGE="http://www.emacswiki.org/emacs/WikipediaMode"
+SRC_URI="mirror://gentoo/${P}.el.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="outline-magic"
+
+DEPEND="outline-magic? ( app-emacs/outline-magic )"
+RDEPEND="${DEPEND}"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ use outline-magic && epatch "${FILESDIR}/${P}-require-outline-magic.patch"
+}