summaryrefslogtreecommitdiff
path: root/app-emacs/puppet-mode
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/puppet-mode')
-rw-r--r--app-emacs/puppet-mode/Manifest5
-rw-r--r--app-emacs/puppet-mode/files/50puppet-mode-1-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-r1.ebuild24
5 files changed, 63 insertions, 0 deletions
diff --git a/app-emacs/puppet-mode/Manifest b/app-emacs/puppet-mode/Manifest
new file mode 100644
index 000000000000..eae71a736637
--- /dev/null
+++ b/app-emacs/puppet-mode/Manifest
@@ -0,0 +1,5 @@
+AUX 50puppet-mode-1-gentoo.el 217 SHA256 e70f8d26e2523d2d118a4944d11540807b48f59d75d878e6fa6aac606ece9a91 SHA512 3fbe7045df9ac9d30520020d4df454a03f02989bbcaa4bae0c632f86f6e6d3fd2eeb3bed84d864077c2b85b65586406525fa621a262ec363f53d714a093f6d1a WHIRLPOOL 60d02a9b70d418cb453d08c17fbeb1133a6ddd924ba18565e30f7c655f5abeebf71af6f17797d3045483ae8775c905efdc11396f4f9829ab2c6b95fbafc2584f
+AUX puppet-mode-0.3-version.patch 547 SHA256 0376e20d6bf18b85b5e6cf23eb1e436bc4aef9def61c4f36202c6130e22440d5 SHA512 623496493b6f920700e042c69099060b9e89cec3a04281af0d8fb7b32c57cfa9b70833935f1ec723c4e877545ac0962b9c70054891084b50c6eb2ad8bb1eb9f2 WHIRLPOOL a3b28369632fb4329016cab82e33b646990f7289e185e85617c69a8d517c3ee865909977abd3ac79a0cc8d37b9c63fcf862bcb5034a9809a7012d05f5f08ed88
+DIST puppet-mode-0.3.tar.gz 25617 SHA256 71ebcb4bf518f9aca404260186b97556fb52060bc56edb77ab1881d64543174d SHA512 16ba5f71a1ec6c40b1eddf2acf5c1aa1968526b959279e1cac0cfac947f82f404fc35978ce12f5851309f293e2c92f054a718ade97d156528d505dcda58434e8 WHIRLPOOL cb48404309236b6778e6a81b17cc4ad0870438eb87c4c66b208ddceae2c88370af7702565cfa2f2ddf15308cdef61bba69c9c2cf86b43847227cdc334197a19f
+EBUILD puppet-mode-0.3-r1.ebuild 615 SHA256 0be1c098794d7fd611055cffe13bfe1a9c1db9c136ff8992bee1e9690cef2fed SHA512 08277cc121d6b01c43cb0c624e18ea414da600f7d7b6066ad8781e16dd585eea8961755ebc0e955f22d651179bc2744ce95b8e2b5515df3afdf64ec0fb13fb13 WHIRLPOOL 0d44bd7d7167ad1a6e6fe217a970c1aa22554ba3af1646684b1a1ba3035c50a87b01fd3b699a9f8361247a521d8a2695241e03fcfc2f9e6ab4360c6dbf55b79b
+MISC metadata.xml 259 SHA256 4d59c14917cb31648858cb06bc3c7f224cf1c3906dc3166f8f0d8b8e02970928 SHA512 9a5c456aae7919a4cdbb10b67a27c232daf2ec6db4202e04ba6d5873242fc982a659410443dd6fb4498d42af00b495acc51a6a2cbe12aeab91b585dfac7233a3 WHIRLPOOL 08c68f505a8cc685c52f3a54a07582b64ff7c0b4682c8f9333286fbb5caf4a8d406933c7937fe8c9611f456b5a549ee100657a1c9dc766c8965772f277bf31fb
diff --git a/app-emacs/puppet-mode/files/50puppet-mode-1-gentoo.el b/app-emacs/puppet-mode/files/50puppet-mode-1-gentoo.el
new file mode 100644
index 000000000000..64c38ae5a31d
--- /dev/null
+++ b/app-emacs/puppet-mode/files/50puppet-mode-1-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-r1.ebuild b/app-emacs/puppet-mode/puppet-mode-0.3-r1.ebuild
new file mode 100644
index 000000000000..023cd0fdc71a
--- /dev/null
+++ b/app-emacs/puppet-mode/puppet-mode-0.3-r1.ebuild
@@ -0,0 +1,24 @@
+# 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 ~arm ~hppa ~ppc ~ppc64 ~x86"
+
+DOCS="CHANGES.rst README.rst"
+SITEFILE="50${PN}-1-gentoo.el"
+ELISP_PATCHES=( "${FILESDIR}/${PN}-0.3-version.patch" )
+
+src_prepare() {
+ elisp_src_prepare
+
+ sed -i -e 's/@VERSION@/'${PV}'/' puppet-mode.el || die
+}