summaryrefslogtreecommitdiff
blob: 29d1fe64b9e1e446869b8d2228821170cf20c4be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
}