diff options
Diffstat (limited to 'app-emacs/template')
-rw-r--r-- | app-emacs/template/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/template/files/50template-gentoo.el | 20 | ||||
-rw-r--r-- | app-emacs/template/metadata.xml | 8 | ||||
-rw-r--r-- | app-emacs/template/template-3.1c-r1.ebuild | 31 |
4 files changed, 60 insertions, 0 deletions
diff --git a/app-emacs/template/Manifest b/app-emacs/template/Manifest new file mode 100644 index 000000000000..69101a66716e --- /dev/null +++ b/app-emacs/template/Manifest @@ -0,0 +1 @@ +DIST template-3.1c.tar.gz 37903 SHA256 d71885ec8d230a5a7cc909f052b97ed7cc30423ca0e2647392424dfd10459845 SHA512 d9fee39b67ff986d7c2dccbd09af3ce208f0e1a616a406fefefe4a6399f69a3527fa5609e87d41f7ceec5bf95818a62cb8da62994b28945998f8a9074821914c WHIRLPOOL 57043085455aefc5a378fa0d48525d823345932d67c34ceee1c5106481d468c1e9fb8559d511f4184d326e71bd46b9416d92f0c080de04607f559da34c163683 diff --git a/app-emacs/template/files/50template-gentoo.el b/app-emacs/template/files/50template-gentoo.el new file mode 100644 index 000000000000..3da76196f42e --- /dev/null +++ b/app-emacs/template/files/50template-gentoo.el @@ -0,0 +1,20 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'template-single-comment "template" + "Decorate the comment in the current line with dashes and alike." t) +(autoload 'template-block-comment "template" + "Decorate the current block of comment-only lines with dashes and alike." t) +(autoload 'template-update-header "template" + "Replace old file name in header with current file name." t) +(autoload 'template-expand-template "template" + "Expand template file TEMPLATE and insert result in current buffer." t) +(autoload 'template-new-file "template" + "Open a new file FILE by using a TEMPLATE." t) +(autoload 'template-initialize "template" + "Initialized package template. See variable `template-initialize'." t) + +(setq template-default-directories + (list (if (and (not (file-directory-p "~/.templates/")) + (file-directory-p "~/lib/templates")) + (expand-file-name "~/lib/templates/") + (expand-file-name "~/.templates/")) + "@SITEETC@/templates")) diff --git a/app-emacs/template/metadata.xml b/app-emacs/template/metadata.xml new file mode 100644 index 000000000000..62541310d2d2 --- /dev/null +++ b/app-emacs/template/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>emacs</herd> +<upstream> + <remote-id type="sourceforge">emacs-template</remote-id> +</upstream> +</pkgmetadata> diff --git a/app-emacs/template/template-3.1c-r1.ebuild b/app-emacs/template/template-3.1c-r1.ebuild new file mode 100644 index 000000000000..21420649b812 --- /dev/null +++ b/app-emacs/template/template-3.1c-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit elisp + +DESCRIPTION="Use templates, decorate comments, auto-update buffers" +HOMEPAGE="http://emacs-template.sourceforge.net/" +SRC_URI="mirror://sourceforge/emacs-template/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/${PN}" +SITEFILE="50${PN}-gentoo.el" + +src_compile() { + elisp-compile lisp/*.el +} + +src_install() { + elisp-install ${PN} lisp/*.{el,elc} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + + insinto "${SITEETC}/${PN}" + doins -r templates + dodoc README lisp/ChangeLog +} |