| 1 | # Copyright 1999-2008 Gentoo Foundation |
1 | # Copyright 1999-2008 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.34 2008/09/19 08:12:48 ulm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.35 2008/10/16 09:28:58 ulm Exp $ |
| 4 | # |
4 | # |
| 5 | # Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org> |
5 | # Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org> |
| 6 | # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> |
6 | # Copyright 2003 Jeremy Maitin-Shepard <jbms@attbi.com> |
| 7 | # Copyright 2007-2008 Christian Faulhammer <opfer@gentoo.org> |
7 | # Copyright 2007-2008 Christian Faulhammer <opfer@gentoo.org> |
| 8 | # Copyright 2007-2008 Ulrich Müller <ulm@gentoo.org> |
8 | # Copyright 2007-2008 Ulrich Müller <ulm@gentoo.org> |
| … | |
… | |
| 21 | # All elisp-* functions are documented there. |
21 | # All elisp-* functions are documented there. |
| 22 | # |
22 | # |
| 23 | # If the package's source is a single (in whatever way) compressed elisp |
23 | # If the package's source is a single (in whatever way) compressed elisp |
| 24 | # file with the file name ${P}.el, then this eclass will move ${P}.el to |
24 | # file with the file name ${P}.el, then this eclass will move ${P}.el to |
| 25 | # ${PN}.el in src_unpack(). |
25 | # ${PN}.el in src_unpack(). |
|
|
26 | |
|
|
27 | # @ECLASS-VARIABLE: SITEFILE |
|
|
28 | # @DESCRIPTION: |
|
|
29 | # Name of package's site-init file. The filename must match the shell |
|
|
30 | # pattern "[1-8][0-9]*-gentoo.el"; numbers below 10 and above 89 are |
|
|
31 | # reserved for internal use. "50${PN}-gentoo.el" is a reasonable choice |
|
|
32 | # in most cases. |
| 26 | |
33 | |
| 27 | # @ECLASS-VARIABLE: DOCS |
34 | # @ECLASS-VARIABLE: DOCS |
| 28 | # @DESCRIPTION: |
35 | # @DESCRIPTION: |
| 29 | # DOCS="blah.txt ChangeLog" is automatically used to install the given |
36 | # DOCS="blah.txt ChangeLog" is automatically used to install the given |
| 30 | # files by dodoc in src_install(). |
37 | # files by dodoc in src_install(). |
| … | |
… | |
| 57 | mv ${P}.el ${PN}.el || die "mv ${P}.el ${PN}.el failed" |
64 | mv ${P}.el ${PN}.el || die "mv ${P}.el ${PN}.el failed" |
| 58 | fi |
65 | fi |
| 59 | } |
66 | } |
| 60 | |
67 | |
| 61 | elisp_src_compile() { |
68 | elisp_src_compile() { |
| 62 | elisp-compile *.el || die "elisp-compile failed" |
69 | elisp-compile *.el || die |
| 63 | } |
70 | } |
| 64 | |
71 | |
| 65 | elisp_src_install() { |
72 | elisp_src_install() { |
| 66 | elisp-install ${PN} *.el *.elc || die "elisp-install failed" |
73 | elisp-install ${PN} *.el *.elc || die |
|
|
74 | if [ -n "${SITEFILE}" ]; then |
| 67 | elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ |
75 | elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
| 68 | || die "elisp-site-file-install failed" |
76 | fi |
| 69 | if [ -n "${DOCS}" ]; then |
77 | if [ -n "${DOCS}" ]; then |
| 70 | dodoc ${DOCS} || die "dodoc failed" |
78 | dodoc ${DOCS} || die "dodoc failed" |
| 71 | fi |
79 | fi |
| 72 | } |
80 | } |
| 73 | |
81 | |