summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-06-19 12:14:12 +0000
committerUlrich Müller <ulm@gentoo.org>2008-06-19 12:14:12 +0000
commit1ed547a00b546db5eb14791794fd11f1a647f82a (patch)
treebffd61279105773a49fbb92e7eda05a1b2d0839b
parentInitial import, from Emacs overlay. Bug 214667. (diff)
downloadgentoo-2-1ed547a00b546db5eb14791794fd11f1a647f82a.tar.gz
gentoo-2-1ed547a00b546db5eb14791794fd11f1a647f82a.tar.bz2
gentoo-2-1ed547a00b546db5eb14791794fd11f1a647f82a.zip
Initial import, from Emacs overlay. Bug 214667.
(Portage version: 2.2_pre8/cvs/Linux 2.6.25-gentoo-r4 i686)
-rw-r--r--app-emacs/yasnippet/ChangeLog11
-rw-r--r--app-emacs/yasnippet/Manifest6
-rw-r--r--app-emacs/yasnippet/files/50yasnippet-gentoo.el7
-rw-r--r--app-emacs/yasnippet/metadata.xml9
-rw-r--r--app-emacs/yasnippet/yasnippet-0.5.5.ebuild48
5 files changed, 81 insertions, 0 deletions
diff --git a/app-emacs/yasnippet/ChangeLog b/app-emacs/yasnippet/ChangeLog
new file mode 100644
index 000000000000..9afb7bbc7bbe
--- /dev/null
+++ b/app-emacs/yasnippet/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-emacs/yasnippet
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/yasnippet/ChangeLog,v 1.1 2008/06/19 12:14:11 ulm Exp $
+
+*yasnippet-0.5.5 (19 Jun 2008)
+
+ 19 Jun 2008; Ulrich Mueller <ulm@gentoo.org> +files/50yasnippet-gentoo.el,
+ +metadata.xml, +yasnippet-0.5.5.ebuild:
+ Initial import, from Emacs overlay. Ebuild contributed by MATSUYAMA Tomohiro
+ <matsuyama@ariel-networks.com>, bug 214667.
+
diff --git a/app-emacs/yasnippet/Manifest b/app-emacs/yasnippet/Manifest
new file mode 100644
index 000000000000..a66dc3d1793c
--- /dev/null
+++ b/app-emacs/yasnippet/Manifest
@@ -0,0 +1,6 @@
+AUX 50yasnippet-gentoo.el 249 RMD160 b28496f99abad7795b8dbedd799b0b46c3acc3e8 SHA1 6b1a238ad05aa75633143e37b646d5fbfde2099d SHA256 36aedd7a123c4228fcbe2bce95989baf02b35bb60b299a17c9ad6c554c76fa51
+DIST yasnippet-0.5.5.tar.bz2 20332 RMD160 a9c5daf3c684fae94aaf250dc9a0591483c7671d SHA1 35bc357c8170625f2d260a195b1a9b7c52e83ae0 SHA256 03ded5c31edea6e3a95a3dabe1859c3b69591cb951f59719d0057efcbf2c4c29
+DIST yasnippet-doc-0.5.5.tar.bz2 106760 RMD160 3e18deb2002adcde1537dbd9a34d49035f9cc368 SHA1 2c5fe6b545ddc6e216db84964bcc289616a54707 SHA256 289d8e17cc2b39aa41ad2dad74d04de3c3309f005fec8fff6a546468bc45f5d5
+EBUILD yasnippet-0.5.5.ebuild 1139 RMD160 5b49d83dfad17ca85ab69d861cc937184a257a7a SHA1 5060cac16fc8c0e70174c78894c4ead5c44f83ca SHA256 058411e058b964539648f926ca01e2f721a3bbfa54badf95823f04b554b225c5
+MISC ChangeLog 397 RMD160 05f825d648ca238c95aa08780dc238157016757e SHA1 180b74d605fbbb22eae48efde86b07aebf6295b1 SHA256 6af6c9cd6e289047269c044e81160ff5027632d8d6ed369318bb0ec7ddab82a8
+MISC metadata.xml 312 RMD160 5d9cc87a75757e5eecdf006020538f38ca84ce65 SHA1 5a34cfccb600d05758fad3a395c9936483c2bde9 SHA256 496b704992e6a3a34d1a4ad6090b1e4e7d6c0f968e049f3f509f362f9eeef537
diff --git a/app-emacs/yasnippet/files/50yasnippet-gentoo.el b/app-emacs/yasnippet/files/50yasnippet-gentoo.el
new file mode 100644
index 000000000000..5d7f23af726b
--- /dev/null
+++ b/app-emacs/yasnippet/files/50yasnippet-gentoo.el
@@ -0,0 +1,7 @@
+
+;;; yasnippet site-lisp configuration
+
+(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 000000000000..82f842ab329f
--- /dev/null
+++ b/app-emacs/yasnippet/metadata.xml
@@ -0,0 +1,9 @@
+<?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>
+</pkgmetadata>
diff --git a/app-emacs/yasnippet/yasnippet-0.5.5.ebuild b/app-emacs/yasnippet/yasnippet-0.5.5.ebuild
new file mode 100644
index 000000000000..33704c08ea47
--- /dev/null
+++ b/app-emacs/yasnippet/yasnippet-0.5.5.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/yasnippet/yasnippet-0.5.5.ebuild,v 1.1 2008/06/19 12:14:11 ulm Exp $
+
+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\")"
+}