| 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.36 2008/11/16 10:23:42 ulm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.37 2009/02/07 11:32:45 fauli 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> |
| … | |
… | |
| 60 | } |
60 | } |
| 61 | |
61 | |
| 62 | elisp_src_unpack() { |
62 | elisp_src_unpack() { |
| 63 | [ -n "${A}" ] && unpack ${A} |
63 | [ -n "${A}" ] && unpack ${A} |
| 64 | if [ -f ${P}.el ]; then |
64 | if [ -f ${P}.el ]; then |
| 65 | mv ${P}.el ${PN}.el || die "mv ${P}.el ${PN}.el failed" |
65 | mv ${P}.el ${PN}.el || die |
| 66 | fi |
66 | fi |
| 67 | } |
67 | } |
| 68 | |
68 | |
| 69 | elisp_src_compile() { |
69 | elisp_src_compile() { |
| 70 | elisp-compile *.el || die |
70 | elisp-compile *.el || die |
| … | |
… | |
| 74 | elisp-install ${PN} *.el *.elc || die |
74 | elisp-install ${PN} *.el *.elc || die |
| 75 | if [ -n "${SITEFILE}" ]; then |
75 | if [ -n "${SITEFILE}" ]; then |
| 76 | elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
76 | elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die |
| 77 | fi |
77 | fi |
| 78 | if [ -n "${DOCS}" ]; then |
78 | if [ -n "${DOCS}" ]; then |
| 79 | dodoc ${DOCS} || die "dodoc failed" |
79 | dodoc ${DOCS} || die |
| 80 | fi |
80 | fi |
| 81 | } |
81 | } |
| 82 | |
82 | |
| 83 | elisp_pkg_postinst() { |
83 | elisp_pkg_postinst() { |
| 84 | elisp-site-regen |
84 | elisp-site-regen |