| 1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
| 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-common.eclass,v 1.5 2004/03/09 17:52:56 mkennedy Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/elisp-common.eclass,v 1.6 2004/03/16 06:36:02 usata 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 | # |
7 | # |
| 8 | # This is not an eclass, but it does provide emacs-related |
8 | # This is not an eclass, but it does provide emacs-related |
| … | |
… | |
| 24 | shift |
24 | shift |
| 25 | doins $@ |
25 | doins $@ |
| 26 | } |
26 | } |
| 27 | |
27 | |
| 28 | elisp-site-file-install() { |
28 | elisp-site-file-install() { |
| 29 | local sitefile=$1 |
29 | local sitefile=$1 my_pn=${2:-${PN}} |
| 30 | pushd ${S} |
30 | pushd ${S} |
| 31 | cp ${sitefile} . |
31 | cp ${sitefile} ${T} |
| 32 | D=${S}/ dosed "s:@SITELISP@:${SITELISP}/${PN}:g" $(basename ${sitefile}) |
32 | sed -i "s:@SITELISP@:${SITELISP}/${my_pn}:g" ${T}/$(basename ${sitefile}) |
| 33 | insinto ${SITELISP} |
33 | insinto ${SITELISP} |
| 34 | doins ${S}/$(basename ${sitefile}) |
34 | doins ${T}/$(basename ${sitefile}) |
| 35 | popd |
35 | popd |
| 36 | } |
36 | } |
| 37 | |
37 | |
| 38 | elisp-site-regen() { |
38 | elisp-site-regen() { |
| 39 | einfo "Regenerating ${SITELISP}/site-gentoo.el..." |
39 | einfo "Regenerating ${SITELISP}/site-gentoo.el..." |