summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/yasnippet')
-rw-r--r--app-emacs/yasnippet/Manifest6
-rw-r--r--app-emacs/yasnippet/files/50yasnippet-gentoo.el4
-rw-r--r--app-emacs/yasnippet/metadata.xml10
-rw-r--r--app-emacs/yasnippet/yasnippet-0.5.10.ebuild48
-rw-r--r--app-emacs/yasnippet/yasnippet-0.6.0c.ebuild47
-rw-r--r--app-emacs/yasnippet/yasnippet-0.6.1c.ebuild47
6 files changed, 162 insertions, 0 deletions
diff --git a/app-emacs/yasnippet/Manifest b/app-emacs/yasnippet/Manifest
new file mode 100644
index 00000000000..86e367508d9
--- /dev/null
+++ b/app-emacs/yasnippet/Manifest
@@ -0,0 +1,6 @@
+DIST yasnippet-0.5.10.tar.bz2 30583 SHA256 0b09c3aff9d60b68fec15d82fe888849685fad7d10094159a336bb7073327eb6 SHA512 2533ca3c9a3f9210d43cbf871ad82fe7c6ad7d850b1c4c9ef36b299c72190cf535706e434f39b54a70611871ad6329f3386527d77c7bb14b709d7594c75ae4a5 WHIRLPOOL 7e60e4884230226748b879160b5e652e90add7de92945e692b5b105fe540727588554a6cbcf0e61c0a79d9a86d40ba17188a6c848ba5a9c6213387aa3ed20849
+DIST yasnippet-0.6.0c.tar.bz2 39844 SHA256 a62f5c1cc6b7187ec861df78858f6d8a02158f98958d51803b6c8b9368b54efd SHA512 ab60149f867ccda7a9b4f8f97b280c22d1130addb811291459df8b32b8a3ec65b4eaea7b36e1b0ffa80c6338b5094430fc9c2812bd03bc46e582321caafee375 WHIRLPOOL 009f839f7ff75415c0ad2ea1a542137739690d2874156d3e1e67adb59bb8bec2b67021852117d80cbea72dce4278316f9e4b5d931489d263416586b383073aa6
+DIST yasnippet-0.6.1c.tar.bz2 47493 SHA256 81ff65691182c59fcc53cf10ff783757d143246bc2f7a2b79c4452d144c17f05 SHA512 ea4c5850ae80e4db9a188788654a099eddc43e29371ef0cb6367e1a39d3ee9f3e9dab7201178955ae47c92bcecbb5120e0b817e47e9c88c5bcef9e561636a603 WHIRLPOOL 99c7c924935879b04bb0790abf6d9f56e8fb81d879b2803b7918c598c4c7587b76e86a2bafce49e00de35b1d592a5d397eec7114b6b42b31708aa7cebe1ad177
+DIST yasnippet-doc-0.5.10.tar.bz2 182436 SHA256 55aa4c731a91bac695cd34fd23a972dcaec957290c2a1002064e4e9f742da071 SHA512 2abdea253a23291089e34366f3cc95dbad6904ec8cf9f603e1fce0d9995ee32fd1b8b69f98f27ddd3fd33318514cb6e269f2418c8575df98240e6a3c3e19a0ed WHIRLPOOL 7c36e2013e6ef940b53c3330d690e3016e0a274fa55da02c713881e70db0091efb6cdf3bdd4516691ec267270bfbabf95b61e8d65c950b5103981b94b1295c81
+DIST yasnippet-doc-0.6.0c.tar.bz2 246554 SHA256 2e4581ac310fa8e13d7deb524c6949e0b4c8ed208e60439ebef366b87c7351c0 SHA512 3e32936e1fed8ab5ac963e9cbb68a61d80f22acde910e4a700cc4005463f0aae0fb5ce6f6f5cbdf2e8dd9bd7e39e912cac8ea05f8efca08d58a07fd35ff26160 WHIRLPOOL 386612504a8685dd98160b703ae661d90692de9dd05d8a2e0ede54068328213f37ec0d9d1179783740c5af2f22b474e3349a74face96e4fc89197c89858be017
+DIST yasnippet-doc-0.6.1c.tar.bz2 490738 SHA256 fc426b1365097c1db2d7d24139e15982c3abd792bfb8990934993f8e49688304 SHA512 c96955cac11f319107e0ea907c92860049598cbfd47b6a2e3211dc2b030face77b03aa9495d7e9d78171be87083f77268e90c6c86b0cc467a96a5bd724daf8f1 WHIRLPOOL d06b8710af363050b7c996c6d7bd0b06457326d589939cbe85bc812d44d6920d62a22449fc6a08a2806c3782ac0816e346698b6bc1b144b41eaff8f528899e3c
diff --git a/app-emacs/yasnippet/files/50yasnippet-gentoo.el b/app-emacs/yasnippet/files/50yasnippet-gentoo.el
new file mode 100644
index 00000000000..d07f448098b
--- /dev/null
+++ b/app-emacs/yasnippet/files/50yasnippet-gentoo.el
@@ -0,0 +1,4 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'yas/initialize "yasnippet" "Do necessary initialization.")
+(autoload 'yas/load-directory "yasnippet"
+ "Load snippet definition from a directory hierarchy." t)
diff --git a/app-emacs/yasnippet/metadata.xml b/app-emacs/yasnippet/metadata.xml
new file mode 100644
index 00000000000..6d71c2e5287
--- /dev/null
+++ b/app-emacs/yasnippet/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>emacs</herd>
+ <longdescription>YASnippet is a re-design and re-write of smart-snippet. It is much cleaner
+ and more powerful than smart-snippet.</longdescription>
+ <upstream>
+ <remote-id type="google-code">yasnippet</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-emacs/yasnippet/yasnippet-0.5.10.ebuild b/app-emacs/yasnippet/yasnippet-0.5.10.ebuild
new file mode 100644
index 00000000000..0806d003799
--- /dev/null
+++ b/app-emacs/yasnippet/yasnippet-0.5.10.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit elisp
+
+DESCRIPTION="Yet another snippet extension for Emacs"
+HOMEPAGE="http://code.google.com/p/yasnippet/"
+SRC_URI="http://yasnippet.googlecode.com/files/${P}.tar.bz2
+ doc? ( http://yasnippet.googlecode.com/files/${PN}-doc-${PV}.tar.bz2 )"
+
+# Homepage says MIT licence, source contains GPL-2 copyright notice
+LICENSE="MIT GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND=">=app-emacs/dropdown-list-20080316"
+RDEPEND="${DEPEND}"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_unpack() {
+ elisp_src_unpack
+
+ cd "${S}"
+ # remove inlined copy of dropdown-list
+ sed -i -e '/^;;/N;/Contents of dropdown-list\.el/,$d' yasnippet.el || die
+}
+
+src_install() {
+ elisp_src_install
+
+ insinto "${SITEETC}/${PN}"
+ doins -r snippets || die "doins failed"
+
+ if use doc; then
+ dohtml -r "${WORKDIR}"/doc/* || die "dohtml failed"
+ fi
+}
+
+pkg_postinst() {
+ elisp-site-regen
+
+ elog "Please add the following code into your .emacs to use yasnippet:"
+ elog "(yas/initialize)"
+ elog "(yas/load-directory \"${SITEETC}/${PN}/snippets\")"
+}
diff --git a/app-emacs/yasnippet/yasnippet-0.6.0c.ebuild b/app-emacs/yasnippet/yasnippet-0.6.0c.ebuild
new file mode 100644
index 00000000000..967791e14e8
--- /dev/null
+++ b/app-emacs/yasnippet/yasnippet-0.6.0c.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit elisp
+
+DESCRIPTION="Yet another snippet extension for Emacs"
+HOMEPAGE="http://code.google.com/p/yasnippet/"
+SRC_URI="http://yasnippet.googlecode.com/files/${P}.tar.bz2
+ doc? ( http://yasnippet.googlecode.com/files/${PN}-doc-${PV}.tar.bz2 )"
+
+# Homepage says MIT licence, source contains GPL-2 copyright notice
+LICENSE="MIT GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND=">=app-emacs/dropdown-list-20080316"
+RDEPEND="${DEPEND}"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_unpack() {
+ elisp_src_unpack
+
+ # remove bundled copy of dropdown-list
+ rm "${S}/dropdown-list.el" || die
+}
+
+src_install() {
+ elisp_src_install
+
+ insinto "${SITEETC}/${PN}"
+ doins -r snippets || die "doins failed"
+
+ if use doc; then
+ dohtml -r "${WORKDIR}"/doc/* || die "dohtml failed"
+ fi
+}
+
+pkg_postinst() {
+ elisp-site-regen
+
+ elog "Please add the following code into your .emacs to use yasnippet:"
+ elog "(yas/initialize)"
+ elog "(yas/load-directory \"${SITEETC}/${PN}/snippets\")"
+}
diff --git a/app-emacs/yasnippet/yasnippet-0.6.1c.ebuild b/app-emacs/yasnippet/yasnippet-0.6.1c.ebuild
new file mode 100644
index 00000000000..967791e14e8
--- /dev/null
+++ b/app-emacs/yasnippet/yasnippet-0.6.1c.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit elisp
+
+DESCRIPTION="Yet another snippet extension for Emacs"
+HOMEPAGE="http://code.google.com/p/yasnippet/"
+SRC_URI="http://yasnippet.googlecode.com/files/${P}.tar.bz2
+ doc? ( http://yasnippet.googlecode.com/files/${PN}-doc-${PV}.tar.bz2 )"
+
+# Homepage says MIT licence, source contains GPL-2 copyright notice
+LICENSE="MIT GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND=">=app-emacs/dropdown-list-20080316"
+RDEPEND="${DEPEND}"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_unpack() {
+ elisp_src_unpack
+
+ # remove bundled copy of dropdown-list
+ rm "${S}/dropdown-list.el" || die
+}
+
+src_install() {
+ elisp_src_install
+
+ insinto "${SITEETC}/${PN}"
+ doins -r snippets || die "doins failed"
+
+ if use doc; then
+ dohtml -r "${WORKDIR}"/doc/* || die "dohtml failed"
+ fi
+}
+
+pkg_postinst() {
+ elisp-site-regen
+
+ elog "Please add the following code into your .emacs to use yasnippet:"
+ elog "(yas/initialize)"
+ elog "(yas/load-directory \"${SITEETC}/${PN}/snippets\")"
+}