/[gentoo-x86]/eclass/elisp.eclass
Gentoo

Contents of /eclass/elisp.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (hide annotations) (download)
Mon Apr 16 15:41:02 2007 UTC (7 years, 5 months ago) by opfer
Branch: MAIN
Changes since 1.17: +37 -194 lines
And again

1 opfer 1.17 # Copyright 1999-2007 Gentoo Foundation
2 mkennedy 1.1 # Distributed under the terms of the GNU General Public License v2
3 opfer 1.17 # $Header: $
4 vapier 1.4 #
5 opfer 1.17 # Copyright 2007 Christian Faulhammer <opfer@gentoo.org>
6     # Copyright 2002-2007 Matthew Kennedy <mkennedy@gentoo.org>
7 mkennedy 1.9 # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com>
8 vapier 1.4 #
9 opfer 1.18 # This eclass sets the site-lisp directory for emacs-related packages.
10 opfer 1.17 #
11 opfer 1.18 # Emacs support for other than pure elisp packages is handled by
12     # elisp-common.eclass where you won't have a dependency on Emacs
13     # itself. All elisp-* functions are documented there.
14 opfer 1.17 #
15 opfer 1.18 # Setting SIMPLE_ELISP=t in an ebuild means, that the package's source
16     # is a single (in whatever way) compressed elisp file with the file name
17     # ${PN}-${PV}. The consequences:
18 opfer 1.17 #
19 opfer 1.18 # 1.) ${S} is redefined
20     # 2.) ${PN}-${PV}.el is moved to ${PN} in the system.
21 opfer 1.17 #
22 mkennedy 1.1
23 opfer 1.18 inherit elisp-common
24    
25     # SRC_URI should be set to wherever the primary app-emacs/ maintainer
26     # keeps the local elisp mirror, since most app-emacs packages are
27     # upstream as a single .el file.
28    
29     if [ "${SIMPLE_ELISP}" = 't' ]; then
30     S="${WORKDIR}/"
31     fi
32    
33     DEPEND="virtual/emacs"
34     IUSE=""
35 mkennedy 1.1
36 opfer 1.18 elisp_src_unpack() {
37     unpack ${A}
38     if [ "${SIMPLE_ELISP}" = 't' ]
39     then
40     cd "${S}" && mv ${P}.el ${PN}.el
41     fi
42 mkennedy 1.5 }
43    
44 opfer 1.18 elisp_src_compile() {
45     elisp-compile *.el || die
46 mkennedy 1.5 }
47    
48 opfer 1.18 elisp_src_install() {
49     elisp-install ${PN} *.el *.elc
50     elisp-site-file-install "${FILESDIR}/${SITEFILE}"
51 mkennedy 1.5 }
52    
53 opfer 1.18 elisp_pkg_postinst() {
54     elisp-site-regen
55 mkennedy 1.5 }
56    
57 opfer 1.18 elisp_pkg_postrm() {
58     elisp-site-regen
59 mkennedy 1.5 }
60 mkennedy 1.9
61 opfer 1.18 EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm

  ViewVC Help
Powered by ViewVC 1.1.20