summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-01-04 20:50:56 +0100
committerUlrich Müller <ulm@gentoo.org>2013-01-04 20:50:56 +0100
commiteed1738c88f09a65fb83e079474bed48a643731f (patch)
treedd0aa11b38fa63c192c0be6de1b59f967e972389 /app-editors/emacs-vcs
parentCopied from Portage tree. (diff)
downloademacs-eed1738c88f09a65fb83e079474bed48a643731f.tar.gz
emacs-eed1738c88f09a65fb83e079474bed48a643731f.tar.bz2
emacs-eed1738c88f09a65fb83e079474bed48a643731f.zip
Use installsources dir for find-function-C-source-directory if that feature is enabled.
Package-Manager: portage-2.1.11.38 Manifest-Sign-Key: E7BE08CA7DC6EA25
Diffstat (limited to 'app-editors/emacs-vcs')
-rw-r--r--app-editors/emacs-vcs/ChangeLog4
-rw-r--r--app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild6
2 files changed, 9 insertions, 1 deletions
diff --git a/app-editors/emacs-vcs/ChangeLog b/app-editors/emacs-vcs/ChangeLog
index 17e7dc0..b7b6d7f 100644
--- a/app-editors/emacs-vcs/ChangeLog
+++ b/app-editors/emacs-vcs/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 04 Jan 2013; Ulrich Müller <ulm@gentoo.org> emacs-vcs-24.3.9999.ebuild:
+ Use installsources dir for find-function-C-source-directory if that feature
+ is enabled.
+
*emacs-vcs-24.3.9999 (03 Jan 2013)
03 Jan 2013; Ulrich Müller <ulm@gentoo.org> +emacs-vcs-24.3.9999.ebuild,
diff --git a/app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild b/app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild
index bd1db67..2dfeceb 100644
--- a/app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild
+++ b/app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild
@@ -255,6 +255,7 @@ src_install () {
# remove unused <version>/site-lisp dir
rm -rf "${ED}"/usr/share/emacs/${FULL_VERSION}/site-lisp
+ local cdir="${EPREFIX}/usr/share/emacs/${FULL_VERSION}/src"
local c=";;"
if use source; then
insinto /usr/share/emacs/${FULL_VERSION}/src
@@ -262,6 +263,9 @@ src_install () {
# C source you might find via find-function
doins src/*.{c,h,m}
c=""
+ elif has installsources ${FEATURES}; then
+ cdir="${EPREFIX}/usr/src/debug/${CATEGORY}/${PF}/${S#${WORKDIR}/}/src"
+ c=""
fi
sed 's/^X//' >"${T}/${SITEFILE}" <<-EOF
@@ -270,7 +274,7 @@ src_install () {
X
(when (string-match "\\\\\`${FULL_VERSION//./\\\\.}\\\\>" emacs-version)
X ${c}(setq find-function-C-source-directory
- X ${c} "${EPREFIX}/usr/share/emacs/${FULL_VERSION}/src")
+ X ${c} "${cdir}")
X (let ((path (getenv "INFOPATH"))
X (dir "${EPREFIX}/usr/share/info/${EMACS_SUFFIX}")
X (re "\\\\\`${EPREFIX}/usr/share/info\\\\>"))