Package: asciidoc
Version: 8.6.9-1
Severity: normal
Tags: patch

Dear Maintainers,

As the upstream changelog said, the vim file installation is not anymore in the
makefile.in.

See:
https://groups.google.com/group/asciidoc/browse_thread/thread/753a52b2af85fcfc/04c9091b0856fc13
and
https://groups.google.com/group/asciidoc/browse_thread/thread/cd07629fa7a53fb3

I think having the ability to use the asciidoc syntax file in vim is very
usefull for end-users using vim like me.

I've written a quilt patch (see #729235 for migration from dpatch to quilt) to
have the asciidoc.vim file reinstalled from a fresh installation of the latest
8.6.9-1. You just have to import it using quilt import <file> with a correct
quiltrc.

If you'd rather have a new package like a 'vim-asciidoc' to manage this file
only, tell me, I'm up to do such a package.

Please find it attached. I'll upload a bundle with all the changes of both this
bug, the #729235, and corrections to #341613 and #610208 to mentors to avoid
having to deal with the patches sent.

Best regards,
Joseph





-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages asciidoc depends on:
ii  python  2.7.5-5

Versions of packages asciidoc recommends:
ii  dblatex        0.3.4-3
ii  docbook-utils  0.6.14-3
ii  libxml2-utils  2.9.1+dfsg1-3
ii  xmlto          0.0.25-2

Versions of packages asciidoc suggests:
ii  source-highlight   3.1.6-1.3
ii  vim-addon-manager  0.5.2
Author: Joseph HERLANT <herla...@gmail.com>
Description: The vim installation is not made anymore by defautl in upstream but we
still want it there. Also integrates the changes from fix_vim_target.dpatch
--- a/Makefile.in
+++ b/Makefile.in
@@ -29,6 +29,8 @@
 
 vimdir = @sysconfdir@/vim
 
+vimdir = @sysconfdir@/vim
+
 manp = $(patsubst %1.txt,%1,$(wildcard doc/*.1.txt))
 manpdir = $(mandir)/man1
 
@@ -144,11 +146,28 @@
 		chmod +x $$f; \
 	done
 
+install-vim:
+	@for d in $(DESTDIR)/$(vimdir) /etc/vim; do \
+		if ! test -d $$d; then continue; fi ; \
+		echo "installing Vim files in $$d" ; \
+		$(INSTALL) -d $$d/syntax ; \
+		$(INSTALL_DATA) vim/syntax/asciidoc.vim $$d/syntax ; \
+	done
+
+uninstall-vim:
+	@for d in $(DESTDIR)/$(vimdir) /etc/vim; do \
+		if ! test -d $$d; then continue; fi ; \
+		echo "uninstalling Vim files in $$d" ; \
+		rm -f $$d/syntax/asciidoc.vim ; \
+	done
+
+
 build: fixconfpath $(manp)
 
-install: all $(PROGTARGETS) $(DATATARGETS) progsymlink
 
-uninstall:
+install: all $(PROGTARGETS) $(DATATARGETS) progsymlink install-vim
+
+uninstall: uninstall-vim
 	rm -f $(DESTDIR)/$(progdir)/asciidoc
 	rm -f $(DESTDIR)/$(progdir)/asciidoc.py
 	rm -f $(DESTDIR)/$(progdir)/a2x

Reply via email to