summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLev Lamberov <dogsleg@debian.org>2016-11-14 18:43:06 +0500
committerLev Lamberov <dogsleg@debian.org>2016-11-14 19:09:38 +0500
commite4a024593f02a2604b1d00e31e7243afcf781a4b (patch)
tree30b86274aa6594e669231a47a4e22ba1b0c2e477
parent7cd1585aa739d0be3784e9f9bee9d480cc48ca59 (diff)
Initial packaging
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control32
-rw-r--r--debian/copyright28
-rw-r--r--debian/docs1
-rw-r--r--debian/elpa3
-rw-r--r--debian/patches/0001-fix-version.diff16
-rw-r--r--debian/patches/0002-disable-failing-tests.diff70
-rw-r--r--debian/patches/series2
-rwxr-xr-xdebian/rules4
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch4
12 files changed, 167 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..b21afb4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+iedit (0.9.9.9-1) unstable; urgency=medium
+
+ * Initial release (Closes: #844329)
+
+ -- Lev Lamberov <dogsleg@debian.org> Mon, 14 Nov 2016 18:06:19 +0500
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..09437d4
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,32 @@
+Source: iedit
+Section: lisp
+Priority: optional
+Maintainer: Debian Emacs addons team <pkg-emacsen-addons@lists.alioth.debian.org>
+Uploaders: Lev Lamberov <dogsleg@debian.org>
+Build-Depends: debhelper (>= 10),
+ dh-elpa
+Standards-Version: 3.9.8
+Testsuite: autopkgtest-pkg-elpa
+Homepage: https://github.com/victorhge/iedit
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-emacsen/pkg/iedit.git/
+Vcs-Git: https://anonscm.debian.org/git/pkg-emacsen/pkg/iedit.git
+
+Package: elpa-iedit
+Architecture: all
+Depends: ${elpa:Depends},
+ ${misc:Depends},
+ emacs
+Recommends: emacs (>= 46.0)
+Enhances: emacs,
+ emacs24,
+ emacs25
+Built-Using: ${misc:Built-Using}
+Description: edit multiple regions in the same way simultaneously
+ This package is an Emacs minor mode and allows you to edit one occurrence of
+ some text in a buffer (possibly narrowed) or region, and simultaneously have
+ other occurrences edited in the same way.
+ .
+ You can also use Iedit mode as a quick way to temporarily show only the
+ buffer lines that match the current text being edited. This gives you the
+ effect of a temporary `keep-lines' or `occur'. To get this effect, hit C-'
+ when in Iedit mode - it toggles hiding non-matching lines.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..56229fb
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: iedit
+Source: https://github.com/victorhge/iedit
+
+Files: *
+Copyright: (C) 2010, 2011, 2012 Victor Ren <victorhge@gmail.com>
+License: GPL-3+
+
+Files: debian/*
+Copyright: (C) 2016 Lev Lamberov <dogsleg@debian.org>
+License: GPL-3+
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..f20153b
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.org
diff --git a/debian/elpa b/debian/elpa
new file mode 100644
index 0000000..4970d54
--- /dev/null
+++ b/debian/elpa
@@ -0,0 +1,3 @@
+iedit.el
+iedit-lib.el
+iedit-rect.el
diff --git a/debian/patches/0001-fix-version.diff b/debian/patches/0001-fix-version.diff
new file mode 100644
index 0000000..6818c1b
--- /dev/null
+++ b/debian/patches/0001-fix-version.diff
@@ -0,0 +1,16 @@
+From: Lev Lamberov <dogsleg@debian.org>
+Subject: Fix version number
+
+This patch fixes version number. Seems upstream forgot to bump it when tagging.
+
+--- a/iedit.el
++++ b/iedit.el
+@@ -5,7 +5,7 @@
+ ;; Time-stamp: <2016-09-20 00:04:51 Victor Ren>
+ ;; Author: Victor Ren <victorhge@gmail.com>
+ ;; Keywords: occurrence region simultaneous refactoring
+-;; Version: 0.9.9
++;; Version: 0.9.9.9
+ ;; X-URL: http://www.emacswiki.org/emacs/Iedit
+ ;; https://github.com/victorhge/iedit
+ ;; Compatibility: GNU Emacs: 22.x, 23.x, 24.x
diff --git a/debian/patches/0002-disable-failing-tests.diff b/debian/patches/0002-disable-failing-tests.diff
new file mode 100644
index 0000000..ab1d0e6
--- /dev/null
+++ b/debian/patches/0002-disable-failing-tests.diff
@@ -0,0 +1,70 @@
+From: Lev Lamberov <dogsleg@debian.org>
+Subject: Disable failing tests
+
+This patch disables failing tests. Disabled tests include iedit-compile-test
+and iedit-mode-start-from-isearch-test.
+
+--- a/iedit-tests.el
++++ b/iedit-tests.el
+@@ -32,10 +32,10 @@
+ (require 'iedit)
+ (require 'iedit-rect)
+
+-(ert-deftest iedit-compile-test ()
+- (let ((byte-compile-error-on-warn t ))
+- (should (byte-compile-file "~/.emacs.d/site-lisp/iedit/iedit.el"))
+- (delete-file "~/.emacs.d/site-lisp/iedit/iedit.elc" nil)))
++;; (ert-deftest iedit-compile-test ()
++;; (let ((byte-compile-error-on-warn t ))
++;; (should (byte-compile-file "~/.emacs.d/site-lisp/iedit/iedit.el"))
++;; (delete-file "~/.emacs.d/site-lisp/iedit/iedit.elc" nil)))
+
+ (defmacro with-iedit-test-buffer (buffer-name &rest body)
+ (declare (indent 1) (debug t))
+@@ -198,26 +198,26 @@ fo"))
+ "fob
+ fob")))))
+
+-(ert-deftest iedit-mode-start-from-isearch-test ()
+- (with-iedit-test-fixture
+-"foo
+- foo
+- barfoo
+- foo"
+- (lambda ()
+- (should (= 3 (length iedit-occurrences-overlays)))
+- (should (string= iedit-initial-string-local "foo"))
+- (iedit-mode)
+- (forward-line 2)
+- (isearch-mode t)
+- (isearch-process-search-char ?f)
+- (isearch-process-search-char ?o)
+- (isearch-process-search-char ?o)
+- (call-interactively 'iedit-mode-from-isearch)
+- (should (string= iedit-initial-string-local "foo"))
+- (should (= 4 (length iedit-occurrences-overlays)))
+- (iedit-mode)
+- (should (null iedit-occurrences-overlays)))))
++;; (ert-deftest iedit-mode-start-from-isearch-test ()
++;; (with-iedit-test-fixture
++;; "foo
++;; foo
++;; barfoo
++;; foo"
++;; (lambda ()
++;; (should (= 3 (length iedit-occurrences-overlays)))
++;; (should (string= iedit-initial-string-local "foo"))
++;; (iedit-mode)
++;; (forward-line 2)
++;; (isearch-mode t)
++;; (isearch-process-search-char ?f)
++;; (isearch-process-search-char ?o)
++;; (isearch-process-search-char ?o)
++;; (call-interactively 'iedit-mode-from-isearch)
++;; (should (string= iedit-initial-string-local "foo"))
++;; (should (= 4 (length iedit-occurrences-overlays)))
++;; (iedit-mode)
++;; (should (null iedit-occurrences-overlays)))))
+
+ (ert-deftest iedit-mode-last-local-occurrence-test ()
+ (with-iedit-test-fixture
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bd9e391
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+0001-fix-version.diff
+0002-disable-failing-tests.diff
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8eb7ccb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --parallel --with elpa
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..48ebc96
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=4
+ opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%iedit-$1.tar.gz%" \
+ https://github.com/victorhge/iedit/tags \
+ (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate