1. VectorLinux Core
  2. vabs

Commits

Lee Pak Hong  committed 8ce5c2f

Rebuild goldendict

Signed-off-by: Lee Pak Hong <benreilly@vector.Linux.net>

  • Participants
  • Parent commits 78cc579
  • Branches veclinux-7.0

Comments (0)

Files changed (2)

File var/vabs/goldendict/src/goldendict.SlackBuild

View file
  • Ignore whitespace
 
 # change goldendict path 
 patch -Np0 -i $CWD/patches/goldendict-paths.diff
+# allow showing images files
+patch -p1 < $CWD/patches/image_fix.patch
 patch -p1 -i $CWD/patches/gcc47.patch
 
 #SET PERMISSIONS

File var/vabs/goldendict/src/patches/image_fix.patch

View file
  • Ignore whitespace
+--- a/mediawiki.cc	2010-12-04 05:12:46.000000000 +0800
++++ b/mediawiki.cc	2013-03-05 05:27:48.346019004 +0800
+@@ -292,6 +292,9 @@
+             // Replace the href="/foo/bar/Baz" to just href="Baz".
+             articleString.replace( QRegExp( "<a\\shref=\"/([\\w\\.]*/)*" ), "<a href=\"" );
+   
++			// Add "http:" to image source urls
++			articleString.replace( " src=\"//", " src=\"http://" );
++  
+             // In those strings, change any underscores to spaces
+             for( ; ; )
+             {