diff options
author | makc <makc@FreeBSD.org> | 2011-06-18 05:10:38 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2011-06-18 05:10:38 +0800 |
commit | 411e004577416d4b0c0f88990e62c8347ebc0069 (patch) | |
tree | ebf258ab4795bffc5f465cf2960dfefcd7726338 | |
parent | 03e23423301fdf3e907993f3b51250d60c747646 (diff) | |
download | freebsd-ports-gnome-411e004577416d4b0c0f88990e62c8347ebc0069.tar.gz freebsd-ports-gnome-411e004577416d4b0c0f88990e62c8347ebc0069.tar.zst freebsd-ports-gnome-411e004577416d4b0c0f88990e62c8347ebc0069.zip |
Fix support for RealPeopleTTS
Use xdg-open instead of firefox
-rw-r--r-- | textproc/stardict3/Makefile | 3 | ||||
-rw-r--r-- | textproc/stardict3/files/patch-src__readword.cpp | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/textproc/stardict3/Makefile b/textproc/stardict3/Makefile index cc3abf727837..42915faf3f2d 100644 --- a/textproc/stardict3/Makefile +++ b/textproc/stardict3/Makefile @@ -7,6 +7,7 @@ PORTNAME= stardict PORTVERSION= 3.0.2 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= SF DIST_SUBDIR= stardict @@ -16,6 +17,7 @@ COMMENT= A cross-platform and international dictionary written in Gtk2 LIB_DEPENDS= sigc-2.0.0:${PORTSDIR}/devel/libsigc++20 \ enchant.1:${PORTSDIR}/textproc/enchant +RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils GNU_CONFIGURE= yes CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" @@ -55,6 +57,7 @@ post-patch: ${REINPLACE_CMD} -e '/^GNOME_DOC_INIT/d' ${WRKSRC}/configure.ac .endif ${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,g' \ + -e 's,firefox,xdg-open,' \ ${WRKSRC}/src/conf.cpp post-install: diff --git a/textproc/stardict3/files/patch-src__readword.cpp b/textproc/stardict3/files/patch-src__readword.cpp new file mode 100644 index 000000000000..ac24d09f8dfe --- /dev/null +++ b/textproc/stardict3/files/patch-src__readword.cpp @@ -0,0 +1,20 @@ +--- ./src/readword.cpp.orig 2010-12-17 19:58:59.000000000 +0300 ++++ ./src/readword.cpp 2011-06-18 00:38:15.560473773 +0400 +@@ -78,7 +78,7 @@ + std::string filename; + std::list<std::string>::const_iterator it; + for (it=ttspath.begin(); it!=ttspath.end(); ++it) { +- filename = build_path(*it, lowerword[0] + G_DIR_SEPARATOR_S + lowerword + ".wav"); ++ filename = build_path(*it, std::string(1,lowerword[0]) + G_DIR_SEPARATOR_S + lowerword + ".wav"); + return_val = g_file_test(filename.c_str(), G_FILE_TEST_EXISTS); + if (return_val) + break; +@@ -109,7 +109,7 @@ + std::string filename; + std::list<std::string>::const_iterator it; + for (it=ttspath.begin(); it!=ttspath.end(); ++it) { +- filename = build_path(*it, lowerword[0] + G_DIR_SEPARATOR_S + lowerword + ".wav"); ++ filename = build_path(*it, std::string(1,lowerword[0]) + G_DIR_SEPARATOR_S + lowerword + ".wav"); + if (g_file_test(filename.c_str(), G_FILE_TEST_EXISTS)) { + play_sound_file(filename); + break; |