summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2016-03-15 11:41:12 -0600
committerDenis Dupeyron <calchan@gentoo.org>2016-03-15 11:46:42 -0600
commitecb5224146d913e80dbcbfa575b0000d71fa1a36 (patch)
treed3726da253a32cb29dfbb493f031f3e7e1c2b5af /app-i18n/tagainijisho
parentapp-i18n/tagainijisho: remove 1.0.2 (diff)
downloadgentoo-ecb5224146d913e80dbcbfa575b0000d71fa1a36.tar.gz
gentoo-ecb5224146d913e80dbcbfa575b0000d71fa1a36.tar.bz2
gentoo-ecb5224146d913e80dbcbfa575b0000d71fa1a36.zip
app-i18n/tagainijisho: fix bug 576498
Diffstat (limited to 'app-i18n/tagainijisho')
-rw-r--r--app-i18n/tagainijisho/Manifest1
-rw-r--r--app-i18n/tagainijisho/files/tagainijisho-1.0.3-sqlite.patch15
-rw-r--r--app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild (renamed from app-i18n/tagainijisho/tagainijisho-1.0.3.ebuild)14
3 files changed, 22 insertions, 8 deletions
diff --git a/app-i18n/tagainijisho/Manifest b/app-i18n/tagainijisho/Manifest
index e45b76fb5de1..016a85424a0c 100644
--- a/app-i18n/tagainijisho/Manifest
+++ b/app-i18n/tagainijisho/Manifest
@@ -1,2 +1 @@
-DIST tagainijisho-1.0.2.tar.gz 24583552 SHA256 144a516a69d440014269dd2a11e10760fd9543726affd9af152b28e1e1d57c3f SHA512 78621af0f998c39acb1e1d1deb4f021e2fa8a1c7454955c0f5f18c49c456831cb3dc76ea9e53f70a23d3d43a93285da44537e72f690d94ba79b4814d512db02a WHIRLPOOL 0e9e97a79ea8d5f02045deac132e16a467b6d472c9c68ecc81207a0442ccc05e7abf67304737ea8d9450459265f9a208b3ac5e17c73e644820a2d53212481005
DIST tagainijisho-1.0.3.tar.gz 24816175 SHA256 6fe3c579ec1cea6c41393ac9a82dd12d0e240032d2bb7837a90e470f480aaf4e SHA512 3afd75cc27e8701d93df54a2244b83090770cc80ac20ab8fb843d2ab925ab575f73d731a2ce736179fb7361af68e94694ec91f813d186c87e730368c41535c53 WHIRLPOOL aa4f26506f12f9502b4c9e3a31f0f970e5e6a9ee2892cae9f9edd53e683ff44cd6bb09cd18891ded199dd2835c97be1531c0043121ad161a6dc356bb960251cc
diff --git a/app-i18n/tagainijisho/files/tagainijisho-1.0.3-sqlite.patch b/app-i18n/tagainijisho/files/tagainijisho-1.0.3-sqlite.patch
new file mode 100644
index 000000000000..bf1d443395b6
--- /dev/null
+++ b/app-i18n/tagainijisho/files/tagainijisho-1.0.3-sqlite.patch
@@ -0,0 +1,15 @@
+https://github.com/Gnurou/tagainijisho/issues/163
+
+--- src/sqlite/sqlite3ext.cc
++++ src/sqlite/sqlite3ext.cc
+@@ -118,6 +118,10 @@
+ sqlite3_stmt *pStmt;
+ const char *zSql = "SELECT fts3_tokenizer(?, ?)";
+
++#ifdef SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
++ sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, NULL);
++#endif
++
+ rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
+ if( rc!=SQLITE_OK ){
+ return rc;
diff --git a/app-i18n/tagainijisho/tagainijisho-1.0.3.ebuild b/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild
index e3cbbfa4d945..5fd5b06191ad 100644
--- a/app-i18n/tagainijisho/tagainijisho-1.0.3.ebuild
+++ b/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild
@@ -16,29 +16,29 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-qt/qtcore:4
dev-qt/qtgui:4
- <dev-db/sqlite-3.11:3"
+ >=dev-db/sqlite-3.11:3"
RDEPEND="${DEPEND}"
pkg_linguas=( ar cs de es fa_IR fi_FI fr hu id it nb nl pl pt ru sv th tr vi )
IUSE+=" ${pkg_linguas[@]/#/linguas_}"
+PATCHES=( "${FILESDIR}"/${P}-*.patch )
+
src_configure() {
- # GUI linguas
+ # GUI linguae
# en is not optional, and build fails if none other then en is set, so adding ja as non-optional too
- # linguas undeclared in IUSE will trigger an error, which is a handy check
+ # linguae undeclared in IUSE will trigger an error, which is a handy check
for lingua in $(ls -1 i18n/*.ts | sed -e 's/.*tagainijisho_\(.*\)\.ts/\1/' | grep -v en | grep -v ja); do
-echo "i18n: ${lingua}"
if ! use linguas_${lingua}; then
rm i18n/tagainijisho_${lingua}.ts || die
fi
done
- # Dictionary linguas
+ # Dictionary linguae
# en is not optional here either, but nothing special needs to be done
- # here too, linguas undeclared in IUSE will trigger an error
+ # here too, linguae undeclared in IUSE will trigger an error
local cmake_linguas
for lingua in $(sed -e 's/;/ /g' -ne '/set(DICT_LANG ".*")/s/.*"\(.*\)".*/\1/p' CMakeLists.txt); do
-echo "dict: ${lingua}"
if use linguas_${lingua}; then
cmake_linguas+=";${lingua}"
fi