summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-06-30 15:04:49 +0200
committerHans de Graaff <graaff@gentoo.org>2017-06-30 15:05:21 +0200
commit5c6de1a295268373b125e6c99952a9e78dcc7c5d (patch)
tree63170e8e81d1b058cbc553c8fe451305d31c91b8 /app-emacs
parentdev-libs/beignet: remove old (diff)
downloadgentoo-5c6de1a295268373b125e6c99952a9e78dcc7c5d.tar.gz
gentoo-5c6de1a295268373b125e6c99952a9e78dcc7c5d.tar.bz2
gentoo-5c6de1a295268373b125e6c99952a9e78dcc7c5d.zip
app-emacs/puppet-mode: Initial import of 0.3
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/puppet-mode/Manifest1
-rw-r--r--app-emacs/puppet-mode/files/50puppet-mode-gentoo.el6
-rw-r--r--app-emacs/puppet-mode/files/puppet-mode-0.3-version.patch20
-rw-r--r--app-emacs/puppet-mode/metadata.xml8
-rw-r--r--app-emacs/puppet-mode/puppet-mode-0.3.ebuild26
5 files changed, 61 insertions, 0 deletions
diff --git a/app-emacs/puppet-mode/Manifest b/app-emacs/puppet-mode/Manifest
new file mode 100644
index 000000000000..dd9c034ea33e
--- /dev/null
+++ b/app-emacs/puppet-mode/Manifest
@@ -0,0 +1 @@
+DIST puppet-mode-0.3.tar.gz 25617 SHA256 71ebcb4bf518f9aca404260186b97556fb52060bc56edb77ab1881d64543174d SHA512 16ba5f71a1ec6c40b1eddf2acf5c1aa1968526b959279e1cac0cfac947f82f404fc35978ce12f5851309f293e2c92f054a718ade97d156528d505dcda58434e8 WHIRLPOOL cb48404309236b6778e6a81b17cc4ad0870438eb87c4c66b208ddceae2c88370af7702565cfa2f2ddf15308cdef61bba69c9c2cf86b43847227cdc334197a19f
diff --git a/app-emacs/puppet-mode/files/50puppet-mode-gentoo.el b/app-emacs/puppet-mode/files/50puppet-mode-gentoo.el
new file mode 100644
index 000000000000..64c38ae5a31d
--- /dev/null
+++ b/app-emacs/puppet-mode/files/50puppet-mode-gentoo.el
@@ -0,0 +1,6 @@
+
+;;; puppet-mode site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'puppet-mode "puppet-mode" "Major mode for editing puppet manifests")
+(add-to-list 'auto-mode-alist '("\\.pp$" . puppet-mode))
diff --git a/app-emacs/puppet-mode/files/puppet-mode-0.3-version.patch b/app-emacs/puppet-mode/files/puppet-mode-0.3-version.patch
new file mode 100644
index 000000000000..513329dec1a2
--- /dev/null
+++ b/app-emacs/puppet-mode/files/puppet-mode-0.3-version.patch
@@ -0,0 +1,20 @@
+--- a/puppet-mode.el.~1~ 2014-03-13 16:30:50.000000000 +0100
++++ b/puppet-mode.el 2017-06-30 14:38:22.749240233 +0200
+@@ -72,8 +72,6 @@
+
+
+ ;;;; Requirements
+-(require 'pkg-info)
+-
+ (require 'cl-lib)
+ (require 'rx)
+ (require 'align)
+@@ -165,7 +163,7 @@
+ if called interactively, or if SHOW-VERSION is non-nil, otherwise
+ just return nil."
+ (interactive (list t))
+- (let ((version (pkg-info-version-info 'puppet-mode)))
++ (let ((version "@VERSION@"))
+ (when show-version
+ (message "Puppet Mode version: %s" version))
+ version))
diff --git a/app-emacs/puppet-mode/metadata.xml b/app-emacs/puppet-mode/metadata.xml
new file mode 100644
index 000000000000..c438baf3b326
--- /dev/null
+++ b/app-emacs/puppet-mode/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-emacs/puppet-mode/puppet-mode-0.3.ebuild b/app-emacs/puppet-mode/puppet-mode-0.3.ebuild
new file mode 100644
index 000000000000..29d1fe64b9e1
--- /dev/null
+++ b/app-emacs/puppet-mode/puppet-mode-0.3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit elisp
+
+DESCRIPTION="Emacs major mode for editing Puppet manifests"
+HOMEPAGE="https://github.com/voxpupuli/puppet-mode"
+SRC_URI="https://github.com/voxpupuli/puppet-mode/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~x86"
+
+DOCS="CHANGES.rst README.rst"
+SITEFILE="50${PN}-gentoo.el"
+ELISP_PATCHES=( "${FILESDIR}/${PN}-0.3-version.patch" )
+
+RDEPEND="!!<app-admin/puppet-5[emacs]"
+
+src_prepare() {
+ elisp_src_prepare
+
+ sed -i -e 's/@VERSION@/'${PV}'/' puppet-mode.el || die
+}