1 |
commit: 16b5b03885a6220bd72c987409d430ce94eeb396 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 21 13:39:20 2022 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 21 13:39:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16b5b038 |
7 |
|
8 |
dev-util/imediff2: Drop old |
9 |
|
10 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
11 |
|
12 |
dev-util/imediff2/Manifest | 1 - |
13 |
dev-util/imediff2/files/1.1.2-python-3.patch | 155 --------------------------- |
14 |
dev-util/imediff2/imediff2-1.1.2-r6.ebuild | 39 ------- |
15 |
3 files changed, 195 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/imediff2/Manifest b/dev-util/imediff2/Manifest |
18 |
index f550529bdba8..90751ecabb58 100644 |
19 |
--- a/dev-util/imediff2/Manifest |
20 |
+++ b/dev-util/imediff2/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
DIST imediff2_1.1.2.1.orig.tar.gz 20393 BLAKE2B 560eef8600bac8ad302907563bd8520ef7881009c8a35c74427d0d5d9e8d4303446f1eb39c01fec201c798f286023765776a84b1e1aaa9e2d585a45870375f16 SHA512 ad0e22f5f2f16efb976a0d6d16c34798cc8aace4251a99cb7764df6841f93c2a6bb9dc8cbb59d8f3ae5a5ad7c161a05b9c3c7b36cc7bdf98eac3ef3b735ef6c4 |
23 |
-DIST imediff2_1.1.2.orig.tar.gz 17974 BLAKE2B f83b6ab652b1dd044587e75e4e7551a8132e1860b14f0d85d37f35383bd161a672860162e93554cf4db844d6a4700fa1876a30874c50fcb8442b4190a9b19185 SHA512 54d196d67107283bc3339eba30acb1c60972f256a268e86da397e0bdafa05220facc7979638a6a917b0c2dc7171edc3aa6b188295c9f40e9debf87a63731e748 |
24 |
|
25 |
diff --git a/dev-util/imediff2/files/1.1.2-python-3.patch b/dev-util/imediff2/files/1.1.2-python-3.patch |
26 |
deleted file mode 100644 |
27 |
index 811f41583129..000000000000 |
28 |
--- a/dev-util/imediff2/files/1.1.2-python-3.patch |
29 |
+++ /dev/null |
30 |
@@ -1,155 +0,0 @@ |
31 |
---- a/imediff2 2017-11-14 09:28:57.007929569 -0500 |
32 |
-+++ b/imediff2 2017-11-14 10:11:12.618496692 -0500 |
33 |
-@@ -18,20 +18,20 @@ |
34 |
- # License along with the program; if not, write to the Free Software |
35 |
- # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
36 |
- |
37 |
--VERSION = '1.1.1' |
38 |
-+VERSION = '1.1.2' |
39 |
- PACKAGE = 'imediff2' |
40 |
- |
41 |
--import curses.wrapper |
42 |
-+import sys |
43 |
-+if sys.version_info<(3,0,0): |
44 |
-+ import curses.wrapper |
45 |
- import curses |
46 |
- import tempfile |
47 |
- import gettext |
48 |
- import difflib |
49 |
- import getopt |
50 |
--import string |
51 |
- import types |
52 |
- import time |
53 |
- import pty |
54 |
--import sys |
55 |
- import os |
56 |
- import errno |
57 |
- |
58 |
-@@ -121,19 +122,19 @@ |
59 |
- def read_lines( filename ): |
60 |
- global assume_empty |
61 |
- try: |
62 |
-- fp = file( filename ) |
63 |
-+ fp = open( filename ) |
64 |
- l = fp.readlines() |
65 |
- fp.close() |
66 |
- return l |
67 |
-- except IOError, (error, message): |
68 |
-- if error == errno.ENOENT and assume_empty: |
69 |
-+ except IOError as e: |
70 |
-+ if e.errno == errno.ENOENT and assume_empty: |
71 |
- return "" |
72 |
- else: |
73 |
-- sys.stderr.write(_("Could not read '%s': %s\n") % (filename, message)) |
74 |
-+ sys.stderr.write(_("Could not read '%s': %s\n") % (filename, e.strerror)) |
75 |
- sys.exit(3) |
76 |
- |
77 |
- def strip_end_lines( txt ): |
78 |
-- return string.replace(string.replace(txt,"%c"%10,""),"%c"%13,"") |
79 |
-+ return txt.replace("%c"%10,"").replace("%c"%13,"") |
80 |
- |
81 |
- def main(stdscr, lines_a, lines_b, start_mode): |
82 |
- global sel, active_chunks, x,y, lines, textpad, contw,conth |
83 |
-@@ -237,7 +238,7 @@ |
84 |
- active_chunks.append( [j, j+len(line_list), i] ) |
85 |
- |
86 |
- for l in line_list: |
87 |
-- lines.append( [string.expandtabs(strip_end_lines(l)), |
88 |
-+ lines.append( [strip_end_lines(l).expandtabs(), |
89 |
- decor, color_pair] ) |
90 |
- j+=1 |
91 |
- |
92 |
-@@ -287,9 +287,9 @@ |
93 |
- def sel_next( dir ): |
94 |
- global sel, active_chunks |
95 |
- if dir == 'up': |
96 |
-- rng = range(sel-1, -1, -1) |
97 |
-+ rng = list(range(sel-1, -1, -1)) |
98 |
- else: |
99 |
-- rng = range(sel+1, len(active_chunks)) |
100 |
-+ rng = list(range(sel+1, len(active_chunks))) |
101 |
- for j in rng: |
102 |
- if active_chunks[j][1] > y and active_chunks[j][0] < y+winh: |
103 |
- sel = j |
104 |
-@@ -442,7 +441,7 @@ |
105 |
- elif c == ord('h') or c == ord('?') or c == curses.KEY_HELP: |
106 |
- helpw = 0 |
107 |
- helph = 0 |
108 |
-- for l in string.split(helptext(), "%c"%10): |
109 |
-+ for l in helptext().split("%c"%10): |
110 |
- helpw = max(helpw, len(l)) |
111 |
- helph += 1 |
112 |
- helppad = curses.newpad(helph+2, helpw+2) |
113 |
-@@ -512,21 +513,21 @@ |
114 |
- try: |
115 |
- opts, args = getopt.getopt(sys.argv[1:], "hmuo:abcNV", |
116 |
- ["help","mono","unresolved","output=", "version", "new-file"]) |
117 |
--except getopt.GetoptError, e: |
118 |
-- print _("Error: ") + str(e) |
119 |
-- print usagetext() |
120 |
-+except getopt.GetoptError as e: |
121 |
-+ print((_("Error: ") + str(e))) |
122 |
-+ print((usagetext())) |
123 |
- sys.exit(2) |
124 |
- |
125 |
- for o, a in opts: |
126 |
- if o in ("-h", "--help"): |
127 |
-- print usagetext() |
128 |
-+ print((usagetext())) |
129 |
- sys.exit() |
130 |
- elif o in ("-V", "--version"): |
131 |
-- print "%s %s" % (PACKAGE, VERSION) |
132 |
-+ print(("%s %s" % (PACKAGE, VERSION))) |
133 |
- sys.exit() |
134 |
- |
135 |
- if len(args)<2: |
136 |
-- print usagetext() |
137 |
-+ print((usagetext())) |
138 |
- sys.exit(2) |
139 |
- |
140 |
- for o, a in opts: |
141 |
-@@ -592,15 +592,15 @@ |
142 |
- if launch_editor: |
143 |
- assert( not editor is None ) |
144 |
- try: |
145 |
- (of, of_name) = tempfile.mkstemp(prefix='imediff2') |
146 |
-- os.write( of, output ) |
147 |
-+ os.write( of, output.encode() ) |
148 |
- os.close(of) |
149 |
- time.sleep(0.1) # make the change visible - many editor look a lot like imediff2 |
150 |
- editor_ret = os.system('%s %s' % (editor, of_name)) |
151 |
- time.sleep(0.1) |
152 |
- if editor_ret == 0: |
153 |
- new_b_lines = read_lines(of_name) |
154 |
-- if string.join(new_b_lines, '') == output: |
155 |
-+ if ''.join(new_b_lines) == output: |
156 |
- chunk_mode = 'old' |
157 |
- elif new_b_lines != lines_a: |
158 |
- lines_b = new_b_lines |
159 |
-@@ -607,8 +608,8 @@ |
160 |
- else: |
161 |
- chunks = 'old' |
162 |
- os.unlink(of_name) |
163 |
-- except IOError, (error, message): |
164 |
-- sys.stderr.write(_("Could not write to '%s': %s\n") % (of_name, message)); |
165 |
-+ except IOError as e: |
166 |
-+ sys.stderr.write(_("Could not write to '%s': %s\n") % (of_name, e.strerror)); |
167 |
- |
168 |
- if not launch_editor: |
169 |
- break |
170 |
-@@ -619,11 +620,11 @@ |
171 |
- else: |
172 |
- try: |
173 |
- if ofile is not None: |
174 |
-- of = file(ofile, 'wb') |
175 |
-+ of = open(ofile, 'wb') |
176 |
-- of.write( output ) |
177 |
-+ of.write( output.encode() ) |
178 |
- of.close() |
179 |
- sys.exit(0) |
180 |
-- except IOError, (error, message): |
181 |
-- sys.stderr.write(_("Could not write to '%s': %s\n") % (ofile, message)); |
182 |
-+ except IOError as e: |
183 |
-+ sys.stderr.write(_("Could not write to '%s': %s\n") % (ofile, e.strerror)); |
184 |
- |
185 |
- sys.exit(3) |
186 |
|
187 |
diff --git a/dev-util/imediff2/imediff2-1.1.2-r6.ebuild b/dev-util/imediff2/imediff2-1.1.2-r6.ebuild |
188 |
deleted file mode 100644 |
189 |
index 29db21793666..000000000000 |
190 |
--- a/dev-util/imediff2/imediff2-1.1.2-r6.ebuild |
191 |
+++ /dev/null |
192 |
@@ -1,39 +0,0 @@ |
193 |
-# Copyright 1999-2020 Gentoo Authors |
194 |
-# Distributed under the terms of the GNU General Public License v2 |
195 |
- |
196 |
-EAPI=7 |
197 |
- |
198 |
-PYTHON_COMPAT=( python3_{7,8} ) |
199 |
-PYTHON_REQ_USE="ncurses" |
200 |
- |
201 |
-inherit python-single-r1 |
202 |
- |
203 |
-MY_P="${PN}_$(ver_rs 3 -)" |
204 |
- |
205 |
-DESCRIPTION="An interactive, user friendly 2-way merge tool in text mode" |
206 |
-HOMEPAGE="https://elonen.iki.fi/code/imediff/" |
207 |
-SRC_URI="mirror://debian/pool/main/i/${PN}/${MY_P}.orig.tar.gz" |
208 |
- |
209 |
-LICENSE="GPL-2" |
210 |
-SLOT="0" |
211 |
-KEYWORDS="amd64 ~arm x86" |
212 |
-IUSE="" |
213 |
- |
214 |
-DEPEND="${PYTHON_DEPS}" |
215 |
-RDEPEND="${DEPEND}" |
216 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
217 |
- |
218 |
-S="${WORKDIR}/${PN}" |
219 |
- |
220 |
-PATCHES=( "${FILESDIR}/${PV}-python-3.patch" ) |
221 |
- |
222 |
-src_compile() { |
223 |
- # Otherwise the docs get regenerated :) |
224 |
- : |
225 |
-} |
226 |
- |
227 |
-src_install() { |
228 |
- python_doscript imediff2 |
229 |
- dodoc AUTHORS README |
230 |
- doman imediff2.1 |
231 |
-} |