1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Yet another snippet extension for Emacs"
8 HOMEPAGE="https://code.google.com/p/yasnippet/"
9 SRC_URI="https://yasnippet.googlecode.com/files/${P}.tar.bz2
10 doc? ( https://yasnippet.googlecode.com/files/${PN}-doc-${PV}.tar.bz2 )"
12 # Homepage says MIT licence, source contains GPL-2 copyright notice
15 KEYWORDS="~amd64 ~x86"
18 DEPEND=">=app-emacs/dropdown-list-20080316"
21 SITEFILE="50${PN}-gentoo.el"
26 # remove bundled copy of dropdown-list
27 rm "${S}/dropdown-list.el" || die
33 insinto "${SITEETC}/${PN}"
34 doins -r snippets || die "doins failed"
37 dohtml -r "${WORKDIR}"/doc/* || die "dohtml failed"
44 elog "Please add the following code into your .emacs to use yasnippet:"
45 elog "(yas/initialize)"
46 elog "(yas/load-directory \"${SITEETC}/${PN}/snippets\")"