Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/sdcv/, app-text/sdcv/files/
Date: Sun, 26 Jun 2016 09:50:17
Message-Id: 1466934600.a8c1783461969de640a2a84a1a97425b68e4a927.bircoph@gentoo
1 commit: a8c1783461969de640a2a84a1a97425b68e4a927
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 26 09:48:08 2016 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 26 09:50:00 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8c17834
7
8 app-text/sdcv: remove old
9
10 Package-Manager: portage-2.3.0_rc1
11 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
12
13 app-text/sdcv/Manifest | 1 -
14 app-text/sdcv/files/sdcv-0.4.2-crash.patch | 27 -------------
15 app-text/sdcv/files/sdcv-0.4.2-dash.patch | 21 ----------
16 app-text/sdcv/files/sdcv-0.4.2-g-handling.patch | 21 ----------
17 .../sdcv/files/sdcv-0.4.2-missing-headers.patch | 47 ----------------------
18 app-text/sdcv/files/sdcv-0.4.2-respect-HOME.patch | 17 --------
19 app-text/sdcv/sdcv-0.4.2.ebuild | 47 ----------------------
20 7 files changed, 181 deletions(-)
21
22 diff --git a/app-text/sdcv/Manifest b/app-text/sdcv/Manifest
23 index 88c46f6..1cadede 100644
24 --- a/app-text/sdcv/Manifest
25 +++ b/app-text/sdcv/Manifest
26 @@ -1,2 +1 @@
27 -DIST sdcv-0.4.2.tar.bz2 181384 SHA256 a164f079e93986814ea2d39f3a49cf9d1b71b01aad908254457fe3d0ded9deb2 SHA512 0c701a64893c7531006617e190924e292bd755c2a4c3905fa7ab44002bf189b5d2c7694f331356093a3b5e9f690f89e50bca29b9c36a9fb9733603d2aef1b58b WHIRLPOOL e605ee39a38e405ddae1b438a6714b5f9bc684097fe264f4bd124955a2f05c39e4c3140fb22526ca5dee51f61803740321d6c4143212b6450c17bf507e869a6c
28 DIST sdcv-0.5.0-beta2-Source.tar.bz2 51508 SHA256 386cfc96285a653c697f8baeab676cb3f1645cea029464d194872d0bbae14ffb SHA512 e00ce45042ddd289bdf41f8907c9b8ece983bb6c24356f4905c4b017741d664d590c8f9a159aff600e96d8c3edf792a568d6afdf01865484d1cd5d94f7786570 WHIRLPOOL 0e9cb7eaf6ccee6f9c7dbebbfee4d4a80c1cdca7444f2ba6f276a670924395dcdabd4ee7efe929bd940f3b3accc01e425f0270c2d7c897bcbd4adc03fd566a05
29
30 diff --git a/app-text/sdcv/files/sdcv-0.4.2-crash.patch b/app-text/sdcv/files/sdcv-0.4.2-crash.patch
31 deleted file mode 100644
32 index 264cffc..0000000
33 --- a/app-text/sdcv/files/sdcv-0.4.2-crash.patch
34 +++ /dev/null
35 @@ -1,27 +0,0 @@
36 -Fix unalligned access to buffer.
37 -
38 -On several architectures (arm, armel, sparc and ia64), unalligned access to
39 -integers is not allowed. Buffer in this function is not alligned at all and
40 -attempt to read integer from it causes crash of application on such
41 -architectures.
42 -
43 -Reported upstream at:
44 -https://sourceforge.net/tracker/index.php?func=detail&aid=2149388&group_id=122858&atid=694730
45 ---- a/src/lib/lib.cpp
46 -+++ b/src/lib/lib.cpp
47 -@@ -496,9 +496,13 @@
48 - entries[i].keystr=p;
49 - len=strlen(p);
50 - p+=len+1;
51 -- entries[i].off=g_ntohl(*reinterpret_cast<guint32 *>(p));
52 -+ /*
53 -+ * Can not use typecasting here, because *data does not have
54 -+ * to be alligned and unalligned access fails on some architectures.
55 -+ */
56 -+ entries[i].off=((unsigned char)p[0] << 24) | ((unsigned char)p[1] << 16) | ((unsigned char)p[2] << 8) | (unsigned char)p[3];
57 - p+=sizeof(guint32);
58 -- entries[i].size=g_ntohl(*reinterpret_cast<guint32 *>(p));
59 -+ entries[i].size=((unsigned char)p[0] << 24) | ((unsigned char)p[1] << 16) | ((unsigned char)p[2] << 8) | (unsigned char)p[3];
60 - p+=sizeof(guint32);
61 - }
62 - }
63
64 diff --git a/app-text/sdcv/files/sdcv-0.4.2-dash.patch b/app-text/sdcv/files/sdcv-0.4.2-dash.patch
65 deleted file mode 100644
66 index 35d15ae..0000000
67 --- a/app-text/sdcv/files/sdcv-0.4.2-dash.patch
68 +++ /dev/null
69 @@ -1,21 +0,0 @@
70 -diff --git a/tests/t_datadir b/tests/t_datadir
71 -index 116ae7e..327e5b5 100755
72 ---- a/tests/t_datadir
73 -+++ b/tests/t_datadir
74 -@@ -1 +1 @@
75 --#!/bin/sh
76 -+#!/bin/bash
77 -diff --git a/tests/t_list b/tests/t_list
78 -index 42ae137..62e52fd 100755
79 ---- a/tests/t_list
80 -+++ b/tests/t_list
81 -@@ -1 +1 @@
82 --#!/bin/sh
83 -+#!/bin/bash
84 -diff --git a/tests/t_utf8input b/tests/t_utf8input
85 -index 7ae88c4..e692ab0 100755
86 ---- a/tests/t_utf8input
87 -+++ b/tests/t_utf8input
88 -@@ -1 +1 @@
89 --#!/bin/sh
90 -+#!/bin/bash
91
92 diff --git a/app-text/sdcv/files/sdcv-0.4.2-g-handling.patch b/app-text/sdcv/files/sdcv-0.4.2-g-handling.patch
93 deleted file mode 100644
94 index 72fb690..0000000
95 --- a/app-text/sdcv/files/sdcv-0.4.2-g-handling.patch
96 +++ /dev/null
97 @@ -1,21 +0,0 @@
98 -https://sourceforge.net/tracker/index.php?func=detail&aid=2125962&group_id=122858&atid=694730
99 -
100 -Fixes displaying of 'g' (gtk markup) entries.
101 ---- a/src/libwrapper.cpp
102 -+++ b/src/libwrapper.cpp
103 -@@ -118,7 +118,6 @@
104 - switch (*p++) {
105 - case 'm':
106 - case 'l': //need more work...
107 -- case 'g':
108 - sec_size = strlen(p);
109 - if (sec_size) {
110 - res+="\n";
111 -@@ -128,6 +127,7 @@
112 - }
113 - sec_size++;
114 - break;
115 -+ case 'g':
116 - case 'x':
117 - sec_size = strlen(p);
118 - if (sec_size) {
119
120 diff --git a/app-text/sdcv/files/sdcv-0.4.2-missing-headers.patch b/app-text/sdcv/files/sdcv-0.4.2-missing-headers.patch
121 deleted file mode 100644
122 index 8c96c65..0000000
123 --- a/app-text/sdcv/files/sdcv-0.4.2-missing-headers.patch
124 +++ /dev/null
125 @@ -1,47 +0,0 @@
126 -diff -ur sdcv-0.4.2-orig/src/lib/lib.cpp sdcv-0.4.2/src/lib/lib.cpp
127 ---- sdcv-0.4.2-orig/src/lib/lib.cpp 2009-07-25 17:44:48.000000000 -0400
128 -+++ sdcv-0.4.2/src/lib/lib.cpp 2009-07-25 17:39:11.000000000 -0400
129 -@@ -517,7 +517,7 @@
130 - {
131 - fseek(idxfile, wordoffset[page_idx], SEEK_SET);
132 - guint32 page_size=wordoffset[page_idx+1]-wordoffset[page_idx];
133 -- fread(wordentry_buf, std::min(sizeof(wordentry_buf), page_size), 1, idxfile); //TODO: check returned values, deal with word entry that strlen>255.
134 -+ fread(wordentry_buf, std::min(sizeof(wordentry_buf), (size_t)page_size), 1, idxfile); //TODO: check returned values, deal with word entry that strlen>255.
135 - return wordentry_buf;
136 - }
137 -
138 -diff -ur sdcv-0.4.2-orig/src/libwrapper.cpp sdcv-0.4.2/src/libwrapper.cpp
139 ---- sdcv-0.4.2-orig/src/libwrapper.cpp 2009-07-25 17:44:48.000000000 -0400
140 -+++ sdcv-0.4.2/src/libwrapper.cpp 2009-07-25 17:39:11.000000000 -0400
141 -@@ -24,6 +24,7 @@
142 -
143 - #include <glib/gi18n.h>
144 - #include <map>
145 -+#include <cstring>
146 -
147 - #include "utils.hpp"
148 -
149 -diff -ur sdcv-0.4.2-orig/src/readline.cpp sdcv-0.4.2/src/readline.cpp
150 ---- sdcv-0.4.2-orig/src/readline.cpp 2009-07-25 17:44:48.000000000 -0400
151 -+++ sdcv-0.4.2/src/readline.cpp 2009-07-25 17:39:11.000000000 -0400
152 -@@ -23,6 +23,7 @@
153 - #endif
154 -
155 - #include <cstdio>
156 -+#include <cstdlib>
157 - #ifdef WITH_READLINE
158 - # include <readline/readline.h>
159 - # include <readline/history.h>
160 -diff -ur sdcv-0.4.2-orig/src/utils.cpp sdcv-0.4.2/src/utils.cpp
161 ---- sdcv-0.4.2-orig/src/utils.cpp 2009-07-25 17:44:48.000000000 -0400
162 -+++ sdcv-0.4.2/src/utils.cpp 2009-07-25 17:44:17.000000000 -0400
163 -@@ -22,6 +22,8 @@
164 - # include "config.h"
165 - #endif
166 -
167 -+#include <cstdio>
168 -+#include <cstdlib>
169 - #include <glib.h>
170 - #include <glib/gi18n.h>
171 -
172 -Only in sdcv-0.4.2/src: utils.o
173
174 diff --git a/app-text/sdcv/files/sdcv-0.4.2-respect-HOME.patch b/app-text/sdcv/files/sdcv-0.4.2-respect-HOME.patch
175 deleted file mode 100644
176 index 5b61650..0000000
177 --- a/app-text/sdcv/files/sdcv-0.4.2-respect-HOME.patch
178 +++ /dev/null
179 @@ -1,17 +0,0 @@
180 -=== modified file 'src/sdcv.cpp'
181 ---- src/sdcv.cpp 2008-11-18 12:43:28 +0000
182 -+++ src/sdcv.cpp 2008-11-18 12:43:41 +0000
183 -@@ -161,7 +161,11 @@
184 -
185 - strlist_t dicts_dir_list;
186 -
187 -- dicts_dir_list.push_back(std::string(g_get_home_dir())+G_DIR_SEPARATOR+
188 -+ const char *homedir = g_getenv ("HOME");
189 -+ if (!homedir)
190 -+ homedir = g_get_home_dir ();
191 -+
192 -+ dicts_dir_list.push_back(std::string(homedir)+G_DIR_SEPARATOR+
193 - ".stardict"+G_DIR_SEPARATOR+"dic");
194 - dicts_dir_list.push_back(data_dir);
195 -
196 -
197
198 diff --git a/app-text/sdcv/sdcv-0.4.2.ebuild b/app-text/sdcv/sdcv-0.4.2.ebuild
199 deleted file mode 100644
200 index 45b4806..0000000
201 --- a/app-text/sdcv/sdcv-0.4.2.ebuild
202 +++ /dev/null
203 @@ -1,47 +0,0 @@
204 -# Copyright 1999-2015 Gentoo Foundation
205 -# Distributed under the terms of the GNU General Public License v2
206 -# $Id$
207 -
208 -inherit eutils
209 -
210 -DESCRIPTION="Console version of Stardict program"
211 -HOMEPAGE="http://sdcv.sourceforge.net"
212 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
213 -
214 -LICENSE="GPL-2"
215 -SLOT="0"
216 -KEYWORDS="amd64 x86"
217 -IUSE="nls test"
218 -
219 -RDEPEND="sys-libs/zlib
220 - sys-libs/readline
221 - >=dev-libs/glib-2.6.1"
222 -DEPEND="${RDEPEND}
223 - test? ( app-dicts/stardict-quick-ru-en )
224 - nls? ( >=sys-devel/gettext-0.14.1 )"
225 -
226 -src_unpack() {
227 - unpack ${A}
228 - cd "${S}"
229 - epatch "${FILESDIR}/${P}-missing-headers.patch"
230 - epatch "${FILESDIR}/${P}-crash.patch"
231 - epatch "${FILESDIR}/${P}-g-handling.patch"
232 - epatch "${FILESDIR}/${P}-respect-HOME.patch"
233 - epatch "${FILESDIR}"/${P}-dash.patch
234 -}
235 -
236 -src_compile() {
237 - econf $(use_enable nls)
238 - emake || die "emake failed"
239 -}
240 -
241 -src_test() {
242 - export HOME=${T}
243 - mkdir -p "${HOME}/.stardict/dic"
244 - emake check || die
245 -}
246 -
247 -src_install() {
248 - emake DESTDIR="${D}" install || die
249 - dodoc AUTHORS BUGS ChangeLog NEWS README TODO
250 -}