| 1 |
# Copyright 1999-2003 Gentoo Technologies, Inc.
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /home/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.9 2003/10/06 06:38:33 mkennedy Exp $
|
| 4 |
#
|
| 5 |
# Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org>
|
| 6 |
# Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
|
| 7 |
#
|
| 8 |
# This eclass sets the site-lisp directory for emacs-related packages.
|
| 9 |
|
| 10 |
inherit elisp-common
|
| 11 |
ECLASS=elisp
|
| 12 |
INHERITED="$INHERITED $ECLASS"
|
| 13 |
|
| 14 |
# SRC_URI should be set to wherever the primary app-emacs/ maintainer
|
| 15 |
# keeps the local elisp mirror, since most app-emacs packages are
|
| 16 |
# upstream as a single .el file.
|
| 17 |
|
| 18 |
# Note: This is no longer necessary.
|
| 19 |
|
| 20 |
SRC_URI="http://cvs.gentoo.org/~mkennedy/app-emacs/${P}.el.bz2"
|
| 21 |
if [ "${SIMPLE_ELISP}" = 't' ]; then
|
| 22 |
S="${WORKDIR}/"
|
| 23 |
#else
|
| 24 |
# Use default value
|
| 25 |
# S="${WORKDIR}/${P}"
|
| 26 |
fi
|
| 27 |
|
| 28 |
DEPEND="virtual/emacs"
|
| 29 |
IUSE=""
|
| 30 |
|
| 31 |
elisp_src_unpack() {
|
| 32 |
unpack ${A}
|
| 33 |
if [ "${SIMPLE_ELISP}" = 't' ]
|
| 34 |
then
|
| 35 |
cd ${S} && mv ${P}.el ${PN}.el
|
| 36 |
fi
|
| 37 |
}
|
| 38 |
|
| 39 |
elisp_src_compile() {
|
| 40 |
elisp-compile *.el || die
|
| 41 |
}
|
| 42 |
|
| 43 |
elisp_src_install() {
|
| 44 |
elisp-install ${PN} *.el *.elc
|
| 45 |
elisp-site-file-install ${FILESDIR}/${SITEFILE}
|
| 46 |
}
|
| 47 |
|
| 48 |
elisp_pkg_postinst() {
|
| 49 |
elisp-site-regen
|
| 50 |
}
|
| 51 |
|
| 52 |
elisp_pkg_postrm() {
|
| 53 |
elisp-site-regen
|
| 54 |
}
|
| 55 |
|
| 56 |
EXPORT_FUNCTIONS src_unpack src_compile src_install \
|
| 57 |
pkg_postinst pkg_postrm
|
| 58 |
|
| 59 |
# Local Variables: ***
|
| 60 |
# mode: shell-script ***
|
| 61 |
# tab-width: 4 ***
|
| 62 |
# indent-tabs-mode: t ***
|
| 63 |
# End: ***
|