Subject: bug#12713: Man files broken too....

From: <[email-masked]>
Date: Wed, 24 Oct 2012 18:14:46 +0200

Just realized that in my build example mentioned in previous message, 
man files have wrong names too.

ctags.1.emacs24.gz  (emacs24 is suffix but should be placed before .1)

I mangled these names in debian/rules like this:

flavor := emacs24

manuals = $(shell mv -f $(mandir)/$(man) $(mandir)/$(patsubst 
emacs.$(flavor).1,$(flavor).1,$(patsubst %.1,%.$(flavor).1,$(man))))

override_dh_installman:
	$(foreach man, $(notdir $(wildcard $(mandir)/*.1)), $(manuals))

Maybe you could use this code to solve this bug.