Sync elisp.eclass from Emacs overlay (revision 1646):
authorUlrich Müller <ulm@gentoo.org>
Fri, 12 Aug 2011 16:14:55 +0000 (16:14 +0000)
committerUlrich Müller <ulm@gentoo.org>
Fri, 12 Aug 2011 16:14:55 +0000 (16:14 +0000)
Fix installation of Info files if Texinfo source is in a subdirectory,
bug 373741.

eclass/elisp.eclass

index 5ed3b0366bc3e0e740541822529d6b766e04f68b..cb85bd727902c7fabbb9ceff00b8d009302a8d33 100644 (file)
@@ -1,11 +1,11 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.48 2011/02/07 21:48:53 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/elisp.eclass,v 1.49 2011/08/12 16:14:55 ulm Exp $
 #
 # Copyright 2002-2003 Matthew Kennedy <mkennedy@gentoo.org>
 # Copyright 2003      Jeremy Maitin-Shepard <jbms@attbi.com>
 # Copyright 2007-2010 Christian Faulhammer <fauli@gentoo.org>
-# Copyright 2007-2010 Ulrich Müller <ulm@gentoo.org>
+# Copyright 2007-2011 Ulrich Müller <ulm@gentoo.org>
 #
 # @ECLASS: elisp.eclass
 # @MAINTAINER:
@@ -155,6 +155,7 @@ elisp_src_install() {
        fi
        if [ -n "${ELISP_TEXINFO}" ]; then
                set -- ${ELISP_TEXINFO}
+               set -- ${@##*/}
                doinfo ${@/%.*/.info*} || die
        fi
        if [ -n "${DOCS}" ]; then