tags 990377 patch
thanks

Dear maintainer,

Here's a patch to fix this bug. Hopefully it shouldn't be hard to apply :)

Cheers, and thanks for maintaining this package.

-- 
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁  Louis-Philippe Véronneau
  ⢿⡄⠘⠷⠚⠋   po...@debian.org / veronneau.org
  ⠈⠳⣄
From 387e26b9ee76eb1e3c6166a36f9b5064d6204f27 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Louis-Philippe=20V=C3=A9ronneau?= <po...@debian.org>
Date: Fri, 2 Jul 2021 16:51:43 -0400
Subject: [PATCH] Migrate to dh-vim-addon. (Closes: #990377)

---
 debian/control         |  6 ++----
 debian/install         |  3 +--
 debian/neovim-addon    |  1 +
 debian/rules           |  2 +-
 debian/tests/control   |  1 -
 debian/tests/vam       |  7 -------
 debian/vim-addon       |  1 +
 debian/vim-ledger.yaml | 10 ----------
 8 files changed, 6 insertions(+), 25 deletions(-)
 create mode 120000 debian/neovim-addon
 delete mode 100644 debian/tests/control
 delete mode 100755 debian/tests/vam
 create mode 100644 debian/vim-addon
 delete mode 100644 debian/vim-ledger.yaml

diff --git a/debian/control b/debian/control
index bc9ada2..9a16d97 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: vim-ledger
 Section: editors
 Priority: optional
 Maintainer: Edward Betts <edw...@4angle.com>
-Build-Depends: debhelper, debhelper-compat (= 12)
+Build-Depends: debhelper, debhelper-compat (= 12), dh-vim-addon
 Rules-Requires-Root: no
 Standards-Version: 4.5.0
 Homepage: https://github.com/ledger/vim-ledger
@@ -11,7 +11,7 @@ Vcs-Git: https://salsa.debian.org/edward/vim-ledger.git
 
 Package: vim-ledger
 Architecture: all
-Depends: vim, vim-addon-manager, ${misc:Depends}
+Depends: ${vim-addon:Depends}, ${misc:Depends}
 Suggests: ledger | hledger
 Description: Vim plugin for Ledger
  Ledger is a powerful and flexible double-entry accounting system run
@@ -20,5 +20,3 @@ Description: Vim plugin for Ledger
  .
  This plugin provides Vim syntax highlighting and folding for Ledger
  files.
- .
- `vim-addons install ledger` will create all needed symlinks in ~/.vim/
diff --git a/debian/install b/debian/install
index 158802e..3afeb77 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1 @@
-autoload/ compiler/ doc/ ftdetect/ ftplugin/ indent/ syntax/ usr/share/vim/addons
-debian/vim-ledger.yaml usr/share/vim/registry
+autoload/ compiler/ doc/ ftdetect/ ftplugin/ indent/ syntax/ usr/share/vim-ledger
diff --git a/debian/neovim-addon b/debian/neovim-addon
new file mode 120000
index 0000000..8d48464
--- /dev/null
+++ b/debian/neovim-addon
@@ -0,0 +1 @@
+vim-addon
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 2d33f6a..5facb03 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,4 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@
+	dh $@ --with vim_addon
diff --git a/debian/tests/control b/debian/tests/control
deleted file mode 100644
index ab41faa..0000000
--- a/debian/tests/control
+++ /dev/null
@@ -1 +0,0 @@
-Tests: vam
diff --git a/debian/tests/vam b/debian/tests/vam
deleted file mode 100755
index 2a891c5..0000000
--- a/debian/tests/vam
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-# try using vim-addon-manager to installing and removing ledger
-tmpdir=`mktemp -d`
-vam --target-dir $tmpdir install ledger
-vam --target-dir $tmpdir remove ledger
-rmdir $tmpdir
diff --git a/debian/vim-addon b/debian/vim-addon
new file mode 100644
index 0000000..28716f8
--- /dev/null
+++ b/debian/vim-addon
@@ -0,0 +1 @@
+usr/share/vim-ledger ledger
diff --git a/debian/vim-ledger.yaml b/debian/vim-ledger.yaml
deleted file mode 100644
index 1c93fb8..0000000
--- a/debian/vim-ledger.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-addon: ledger
-description: "ledger filetype for Vim"
-files:
-  - autoload/ledger.vim
-  - compiler/ledger.vim
-  - doc/ledger.txt
-  - ftplugin/ledger.vim
-  - ftdetect/ledger.vim
-  - syntax/ledger.vim
-  - indent/ledger.vim
-- 
2.32.0

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to