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://github.com/capitaomorte/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"
27 # remove inlined copy of dropdown-list
28 sed -i -e '/^;;/N;/Contents of dropdown-list\.el/,$d' yasnippet.el || die
34 insinto "${SITEETC}/${PN}"
35 doins -r snippets || die "doins failed"
38 dohtml -r "${WORKDIR}"/doc/* || die "dohtml failed"
45 elog "Please add the following code into your .emacs to use yasnippet:"
46 elog "(yas/initialize)"
47 elog "(yas/load-directory \"${SITEETC}/${PN}/snippets\")"