From: Jason A. Donenfeld Date: Sun, 17 Apr 2016 04:41:15 +0000 (+0200) Subject: media-sound/clementine: needs patch for tokenizer X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=d9b0d9b1b437b7b130549e5b683cf4afc8a865e2;p=gentoo.git media-sound/clementine: needs patch for tokenizer Package-Manager: portage-2.2.28 --- diff --git a/media-sound/clementine/clementine-1.3.ebuild b/media-sound/clementine/clementine-1.3.ebuild index 3eb17425691e..bfac234d663d 100644 --- a/media-sound/clementine/clementine-1.3.ebuild +++ b/media-sound/clementine/clementine-1.3.ebuild @@ -93,6 +93,8 @@ MY_P="${P/_}" [[ ${PV} == *9999* ]] || \ S="${WORKDIR}/C${MY_P:1}" +PATCHES=( "${FILESDIR}"/${PN}-1.3-fix-tokenizer.patch ) + src_prepare() { cmake-utils_src_prepare diff --git a/media-sound/clementine/clementine-9999.ebuild b/media-sound/clementine/clementine-9999.ebuild index 79b9c7d77379..bfac234d663d 100644 --- a/media-sound/clementine/clementine-9999.ebuild +++ b/media-sound/clementine/clementine-9999.ebuild @@ -56,6 +56,7 @@ COMMON_DEPEND=" mtp? ( >=media-libs/libmtp-1.0.0 ) moodbar? ( sci-libs/fftw:3.0 ) projectm? ( media-libs/glew:= ) + >=dev-libs/crypto++-5.6.2-r4 " # now only presets are used, libprojectm is internal # https://github.com/clementine-player/Clementine/tree/master/3rdparty/libprojectm/patches @@ -92,9 +93,7 @@ MY_P="${P/_}" [[ ${PV} == *9999* ]] || \ S="${WORKDIR}/C${MY_P:1}" -PATCHES=( - "${FILESDIR}"/${PN}-1.3_rc1-cmake.patch -) +PATCHES=( "${FILESDIR}"/${PN}-1.3-fix-tokenizer.patch ) src_prepare() { cmake-utils_src_prepare diff --git a/media-sound/clementine/files/clementine-1.3-fix-tokenizer.patch b/media-sound/clementine/files/clementine-1.3-fix-tokenizer.patch new file mode 100644 index 000000000000..6413bf77de3f --- /dev/null +++ b/media-sound/clementine/files/clementine-1.3-fix-tokenizer.patch @@ -0,0 +1,21 @@ +https://github.com/clementine-player/Clementine/issues/5297 + +--- src/core/database.cpp ++++ src/core/database.cpp +@@ -265,6 +265,16 @@ + StaticInit(); + + { ++#ifdef SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER ++ QVariant v = db.driver()->handle(); ++ if (v.isValid() && qstrcmp(v.typeName(), "sqlite3*") == 0) { ++ sqlite3* handle = *static_cast(v.data()); ++ if (handle) { ++ sqlite3_db_config(handle, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, NULL); ++ } ++ } ++#endif ++ + QSqlQuery set_fts_tokenizer("SELECT fts3_tokenizer(:name, :pointer)", db); + set_fts_tokenizer.bindValue(":name", "unicode"); + set_fts_tokenizer.bindValue(