blob: 198c3d0e7a1eca01fdfcb717ba37b3be0648418e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/yow/yow-21.4_p20020329.ebuild,v 1.9 2011/12/27 13:38:35 ulm Exp $
EAPI=4
inherit elisp
XE_PV="1.15"
DESCRIPTION="Zippy the pinhead data base"
HOMEPAGE="http://www.gnu.org/software/emacs/"
# We used to take the file from the GNU Emacs 21.4 tarball, but 20 MB for one
# 53 kB file is wasteful. So we take it from app-xemacs/cookie and patch it.
SRC_URI="http://ftp.xemacs.org/pub/xemacs/packages/cookie-${XE_PV}-pkg.tar.gz
mirror://gentoo/${PN}-${XE_PV}-${PV}.patch.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
S="${WORKDIR}"
ELISP_PATCHES="${PN}-${XE_PV}-${PV}.patch"
SITEFILE="50${PN}-gentoo.el"
src_compile() { :; }
src_install() {
insinto "${SITEETC}/${PN}"
doins etc/yow.lines
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
}
pkg_postinst() {
elisp-site-regen
elog "To add a menu-bar item for \"yow\" (as it used to be in Emacs 21),"
elog "add the following lines to your ~/.emacs file:"
elog
elog " (define-key-after menu-bar-games-menu [yow]"
elog " '(menu-item \"Random Quotation\" yow"
elog " :help \"Display a random Zippy quotation\"))"
}
|