summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2018-08-26 15:45:38 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2018-08-26 15:46:09 +0300
commite216cd8652873446227e4bffac6f6bb038afad92 (patch)
treea7a6520694c34af553870c4d937242dcac80a272 /app-text/sdcv/files
parentmedia-plugins/vdr-skinelchi: cleanup old (diff)
downloadgentoo-e216cd8652873446227e4bffac6f6bb038afad92.tar.gz
gentoo-e216cd8652873446227e4bffac6f6bb038afad92.tar.bz2
gentoo-e216cd8652873446227e4bffac6f6bb038afad92.zip
app-text/sdcv: version bump
- Readline support is now optional. - Tests are available. Signed-off-by: Andrew Savchenko <bircoph@gentoo.org> Package-Manager: Portage-2.3.48, Repoman-2.3.10
Diffstat (limited to 'app-text/sdcv/files')
-rw-r--r--app-text/sdcv/files/sdcv-t_interactive.patch11
-rw-r--r--app-text/sdcv/files/sdcv-t_list.patch17
2 files changed, 28 insertions, 0 deletions
diff --git a/app-text/sdcv/files/sdcv-t_interactive.patch b/app-text/sdcv/files/sdcv-t_interactive.patch
new file mode 100644
index 000000000000..83d503136c0f
--- /dev/null
+++ b/app-text/sdcv/files/sdcv-t_interactive.patch
@@ -0,0 +1,11 @@
+--- sdcv-0.5.2/tests/t_interactive.orig 2018-08-26 15:04:39.174389830 +0300
++++ sdcv-0.5.2/tests/t_interactive 2018-08-26 15:05:01.494995830 +0300
+@@ -10,7 +10,7 @@
+
+ "$PATH_TO_SDCV" -n >/dev/null 2>&1 &
+ PID=$!
+-sleep 1
++sleep 5
+
+ if kill -0 $PID >/dev/null 2>&1 ; then
+ echo "process wait input: $PID, test failed" >&2
diff --git a/app-text/sdcv/files/sdcv-t_list.patch b/app-text/sdcv/files/sdcv-t_list.patch
new file mode 100644
index 000000000000..8bd23892fc7a
--- /dev/null
+++ b/app-text/sdcv/files/sdcv-t_list.patch
@@ -0,0 +1,17 @@
+--- sdcv-0.5.2/tests/t_list.orig 2017-08-16 10:14:23.000000000 +0300
++++ sdcv-0.5.2/tests/t_list 2018-08-26 15:12:31.501052398 +0300
+@@ -1,11 +1,10 @@
+ #!/bin/sh
+
+ PATH_TO_SDCV="$1"
+-ndicts=`"$PATH_TO_SDCV" -l | wc -l`
++TEST_DIR="$2"
++ndicts=`"$PATH_TO_SDCV" --data-dir "${TEST_DIR}" -l | wc -l`
+ ndicts=$(($ndicts-1))
+-ncom=`find /usr/share/stardict/dic -name "*.ifo" | wc -l`
+-nspe=`find "${HOME}"/.stardict/dic -name "*.ifo" | wc -l`
+-nmy=$(($ncom+$nspe))
++nmy=`find "${TEST_DIR}" -name "*.ifo" | wc -l`
+
+ if [ $nmy -ne $ndicts ]; then
+ echo "should be: $nmy, we have: $ndicts" >&2