add a check for uncompressed man pages and clean up
authorChristian Faulhammer <fauli@gentoo.org>
Sun, 4 Feb 2007 14:57:58 +0000 (14:57 +0000)
committerChristian Faulhammer <fauli@gentoo.org>
Sun, 4 Feb 2007 14:57:58 +0000 (14:57 +0000)
Package-Manager: portage-2.1.1-r2

app-editors/emacs-cvs/ChangeLog
app-editors/emacs-cvs/emacs-cvs-22.0.93-r2.ebuild
app-editors/emacs-cvs/emacs-cvs-22.0.9999-r2.ebuild
app-editors/emacs/ChangeLog
app-editors/emacs/emacs-21.4-r6.ebuild

index 5f16a773d39a09176a8854b5345bfc6bdaeb9c8e..0901704b81e2fb95418af43b7274af9b0ba388d2 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-editors/emacs-cvs
 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.78 2007/02/03 11:21:02 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/ChangeLog,v 1.79 2007/02/04 14:57:58 opfer Exp $
+
+  04 Feb 2007; Christian Faulhammer <opfer@gentoo.org>
+  -emacs-cvs-22.0.93-r1.ebuild, emacs-cvs-22.0.93-r2.ebuild,
+  -emacs-cvs-22.0.9999-r1.ebuild, emacs-cvs-22.0.9999-r2.ebuild:
+  add a check for uncompressed man pages and clean up
 
   03 Feb 2007; Christian Faulhammer <opfer@gentoo.org>
   emacs-cvs-22.0.93-r2.ebuild, emacs-cvs-22.0.9999-r2.ebuild:
index f1452dd5a83d935d296b3e8e407ed6075ed3dcb0..332fadd1b0dad3645ed471159c6f13c9590c2719 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.93-r2.ebuild,v 1.4 2007/02/03 11:21:02 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.93-r2.ebuild,v 1.5 2007/02/04 14:57:58 opfer Exp $
 
 WANT_AUTOCONF="latest"
 WANT_AUTOMAKE="latest"
@@ -169,6 +169,9 @@ EOF
 update-alternatives() {
        # extract the suffix of the manpages to determine the correct compression program
        local suffix=`ls /usr/share/man/man1/emacs.emacs-* |sed s/".*\."//g|tail -n 1`
+       if [ suffix = 1 ]; then
+               suffix=""
+       fi
 
        # this creates symlinks for binaries and man pages, so the correct ones in a slotted
        # environment can be accessed
index 95ccbb49aaeaf7aaf4d77902e252eee15a9072cc..3a8bbe822d1f67a40432392868f618cc7210430a 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r2.ebuild,v 1.4 2007/02/03 11:21:02 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-cvs/emacs-cvs-22.0.9999-r2.ebuild,v 1.5 2007/02/04 14:57:58 opfer Exp $
 
 ECVS_AUTH="pserver"
 ECVS_SERVER="cvs.savannah.gnu.org:/sources/emacs"
@@ -174,6 +174,9 @@ EOF
 update-alternatives() {
        # extract the suffix of the manpages to determine the correct compression program
        local suffix=`ls /usr/share/man/man1/emacs.emacs-* |sed s/".*\."//g|tail -n 1`
+       if [ suffix = 1 ]; then
+               suffix=""
+       fi
 
        # this creates symlinks for binaries and man pages, so the correct ones in a slotted
        # environment can be accessed
index a6daf0d1a04e2323de6927ad2f4371fd34273f5d..7d7ba6d5ac92df2b29601a541137a0d0f2f79265 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-editors/emacs
 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/ChangeLog,v 1.116 2007/02/03 11:25:24 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/ChangeLog,v 1.117 2007/02/04 14:54:31 opfer Exp $
+
+  04 Feb 2007; Christian Faulhammer <opfer@gentoo.org>
+  -emacs-21.4-r5.ebuild, emacs-21.4-r6.ebuild:
+  add a check for uncompressed man pages and clean up
 
   03 Feb 2007; Christian Faulhammer <opfer@gentoo.org> emacs-21.4-r6.ebuild:
   determine compression suffix correctly and finally
index 804fd2529cbcb1d7c92f64196379cd05f5b1df0e..2e3e5b5323325a2fbe5fec649fd0747bc6b95970 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-21.4-r6.ebuild,v 1.4 2007/02/03 11:25:24 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs/emacs-21.4-r6.ebuild,v 1.5 2007/02/04 14:54:31 opfer Exp $
 
 inherit flag-o-matic eutils alternatives toolchain-funcs
 
@@ -160,7 +160,10 @@ src_install() {
 
 update-alternatives() {
        # extract the suffix of the manpages to determine the correct compression program
-       local suffix=`ls /usr/share/man/man1/emacs.emacs-* |sed s/".*\."//g|tail -n 1`
+       local suffix=".`ls /usr/share/man/man1/emacs.emacs-* |sed s/".*\."//g|tail -n 1`"
+       if [ suffix = 1 ]; then
+               suffix=""
+       fi
 
        # this creates symlinks for binaries and man pages, so the correct ones in a slotted
        # environment can be accessed
@@ -171,7 +174,7 @@ update-alternatives() {
 
        for j in emacs emacsclient etags ctags
        do
-               alternatives_auto_makesym "/usr/share/man/man1/$j.1.${suffix}" "/usr/share/man/man1/$j.emacs-*"
+               alternatives_auto_makesym "/usr/share/man/man1/$j.1${suffix}" "/usr/share/man/man1/$j.emacs-*"
        done
 }