diff options
author | Ulrich Müller <ulm@gentoo.org> | 2008-11-29 12:19:25 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2008-11-29 12:19:25 +0000 |
commit | 37d6a65962a211643cdd6dc4c84f38734dab8b5f (patch) | |
tree | 29e77a6958265af33a2be4b6bce37b554ec1abe4 /app-editors/emacs-cvs | |
parent | Move extutils-pkgconfig to DEPEND wrt #223075. (diff) | |
download | gentoo-2-37d6a65962a211643cdd6dc4c84f38734dab8b5f.tar.gz gentoo-2-37d6a65962a211643cdd6dc4c84f38734dab8b5f.tar.bz2 gentoo-2-37d6a65962a211643cdd6dc4c84f38734dab8b5f.zip |
Add site initialisation for Info. Rename site-init file.
(Portage version: 2.2_rc16/cvs/Linux 2.6.27-gentoo-r4 i686)
Diffstat (limited to 'app-editors/emacs-cvs')
-rw-r--r-- | app-editors/emacs-cvs/ChangeLog | 7 | ||||
-rw-r--r-- | app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild | 30 |
2 files changed, 26 insertions, 11 deletions
diff --git a/app-editors/emacs-cvs/ChangeLog b/app-editors/emacs-cvs/ChangeLog index f57d25d6a9d9..18f8948079ea 100644 --- a/app-editors/emacs-cvs/ChangeLog +++ b/app-editors/emacs-cvs/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-editors/emacs-cvs # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.224 2008/11/26 21:27:00 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.225 2008/11/29 12:19:25 ulm Exp $ + + 29 Nov 2008; Ulrich Mueller <ulm@gentoo.org> emacs-cvs-23.0.9999.ebuild: + Add site initialisation for Info, so that Emacs' dir is first in list; + this will also help to get the right documentation if Emacs is started + as emacs-${SLOT}. Rename site-init file to 20${PN}-${SLOT}-gentoo.el. 26 Nov 2008; Ulrich Mueller <ulm@gentoo.org> emacs-cvs-23.0.9999.ebuild: Handle the FEATURES=noinfo case in emacs-infodir-rebuild; don't create a diff --git a/app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild b/app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild index 53723efa4632..ac8998232309 100644 --- a/app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild +++ b/app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild,v 1.14 2008/11/26 21:27:00 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-23.0.9999.ebuild,v 1.15 2008/11/29 12:19:25 ulm Exp $ ECVS_AUTH="pserver" ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs" @@ -67,6 +67,7 @@ DEPEND="${RDEPEND} S="${WORKDIR}/${ECVS_LOCALNAME}" EMACS_SUFFIX="emacs-${SLOT}" +SITEFILE="20${PN}-${SLOT}-gentoo.el" src_unpack() { cvs_src_unpack @@ -214,22 +215,31 @@ src_install () { keepdir /usr/share/emacs/site-lisp keepdir /var/lib/games/emacs + local c=";;" if use source; then insinto /usr/share/emacs/${FULL_VERSION}/src # This is not meant to install all the source -- just the # C source you might find via find-function doins src/*.[ch] - sed 's/^X//' >10${PN}-${SLOT}-gentoo.el <<-EOF - - ;;; ${PN}-${SLOT} site-lisp configuration - - (if (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version) - X (setq find-function-C-source-directory - X "/usr/share/emacs/${FULL_VERSION}/src")) - EOF - elisp-site-file-install 10${PN}-${SLOT}-gentoo.el + c="" fi + sed 's/^X//' >"${SITEFILE}" <<-EOF + X + ;;; ${PN}-${SLOT} site-lisp configuration + X + (when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version) + X ${c}(setq find-function-C-source-directory + X ${c} "/usr/share/emacs/${FULL_VERSION}/src") + X (let ((path (getenv "INFOPATH")) + X (dir "/usr/share/info/${EMACS_SUFFIX}")) + X (and path + X ;; move Emacs Info dir to beginning of list + X (setq Info-directory-list + X (cons dir (delete dir (split-string path ":" t))))))) + EOF + elisp-site-file-install "${SITEFILE}" || die + dodoc README BUGS || die "dodoc failed" } |