summaryrefslogtreecommitdiff
path: root/app-i18n/tagainijisho
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-i18n/tagainijisho
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/tagainijisho')
-rw-r--r--app-i18n/tagainijisho/Manifest6
-rw-r--r--app-i18n/tagainijisho/files/tagainijisho-1.0.3-sqlite.patch15
-rw-r--r--app-i18n/tagainijisho/metadata.xml23
-rw-r--r--app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild52
4 files changed, 96 insertions, 0 deletions
diff --git a/app-i18n/tagainijisho/Manifest b/app-i18n/tagainijisho/Manifest
new file mode 100644
index 000000000000..acbdce979aff
--- /dev/null
+++ b/app-i18n/tagainijisho/Manifest
@@ -0,0 +1,6 @@
+AUX tagainijisho-1.0.3-sqlite.patch 425 SHA256 6435f838bd0579f9b24b37639c8301ec6c5fd491771862145eed273c058fb8e0 SHA512 aca8593bc860f3bb640134e49898106414ff57b1cd6a39be5371151ed32e8bdb45a0747535f5f0d4710367919cf329fc2c308df38731b3c94be16f4992d7d174 WHIRLPOOL 00c228e00a574c9ac267acc2aecba26a95ed45266ef214a0ac287e9fd6c432dd55014d776ab30be6a8abb389a74dfd444bcd2ea4795c57385610447e128fc337
+DIST tagainijisho-1.0.3.tar.gz 24816175 SHA256 6fe3c579ec1cea6c41393ac9a82dd12d0e240032d2bb7837a90e470f480aaf4e SHA512 3afd75cc27e8701d93df54a2244b83090770cc80ac20ab8fb843d2ab925ab575f73d731a2ce736179fb7361af68e94694ec91f813d186c87e730368c41535c53 WHIRLPOOL aa4f26506f12f9502b4c9e3a31f0f970e5e6a9ee2892cae9f9edd53e683ff44cd6bb09cd18891ded199dd2835c97be1531c0043121ad161a6dc356bb960251cc
+EBUILD tagainijisho-1.0.3-r1.ebuild 1624 SHA256 ff8cb68a19a8e3c1e8e3755d1951467ea477e9f5c63fefcfff1e05f124cd254a SHA512 57a5953302286754b34a5a0396ebf96b47604b4277e7b1801810cfd2431e528afd32b401aad8d9fdec402c341ad1f460807d5646c8da3694aec21ca1ef7b8049 WHIRLPOOL 8342137b70e73f20847f1d1038d5482eca8074d77c9d6459ff8a6bbfd1787dcbbcb0596d433a178dd972d3c4d936395f8885e9b13fe174b6bc2cadebd744fa3a
+MISC ChangeLog 2662 SHA256 f55cd7163f691b66d95462ccb584188b5b4afed0b89611d30328972db38d881b SHA512 7bf69a85286957ef37b0e130f823a1b0e459693477b8534062091d98b948e545a86cc8ea17f7525dea7b854d5bbebd10208421b7e0e8df6ef4217d84c2d08b69 WHIRLPOOL 624a037d354017b9007068c87014572e951b733017be56ae7db1f6c727f8b5e4879185ccd81770e22d04a7c29436163c181c5ee34d2b325d878c78f52580ead4
+MISC ChangeLog-2015 1123 SHA256 e26b10ba51337060b8a56f0cf075b98d603158959d042e8adf72046fea80eb4e SHA512 f60c1f726563a6136646be7998f137b32e1cfcfbda840dd2ca557b76a45bc34d28319707182b61a756902a2694d36620f6b6a3a2956d845ccd62f9a902e3dacc WHIRLPOOL 08060bd7360cc6f1f38b8c47e3c9b8913fd0bc131bfdd31179d77b400e1bedd017b42cc55d8889b9de512c41a8246d3dce2f4a510b62a6b452fef04246f3faf3
+MISC metadata.xml 993 SHA256 ea7d452c400021a6e3923f668ff25d92a04fcfff27913afcb00f5411f48202cd SHA512 04b51cecbf4cd124c47707ade93e4b314e106b4384eff831466030a6b58e081bef6c4f00d66a1658eb4e07828ec8fba2f980869ee7a65982c47f201fe232a412 WHIRLPOOL 27406078eff33c165db137c9fbd3a3afce13586396bd72fa347c3d4e66e1d78abd2aff1888a2deb58e7f336d0905da17d0fa74be3852f067b4fb836e450ca633
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/metadata.xml b/app-i18n/tagainijisho/metadata.xml
new file mode 100644
index 000000000000..806b99351f01
--- /dev/null
+++ b/app-i18n/tagainijisho/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+ </maintainer>
+ <longdescription>
+Tagaini Jisho is a free, open-source Japanese dictionary and kanji lookup tool
+that is available for Windows, MacOS X and Linux and aims at becoming your
+Japanese study assistant. It allows you to quickly search for entries and mark
+those that you wish to study, along with tags and personal notes. It also let
+you train entries you are studying and follows your progression in remembering
+them. Finally, it makes it easy to review entries you did not remember by
+listing them on screen or printing them on a small booklet.
+
+Tagaini Jisho also features complete stroke order animations for more than 6000
+kanji.
+</longdescription>
+ <upstream>
+ <remote-id type="github">Gnurou/tagainijisho</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild b/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild
new file mode 100644
index 000000000000..d278aa6107ff
--- /dev/null
+++ b/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Open-source Japanese dictionary and kanji lookup tool"
+HOMEPAGE="http://www.tagaini.net/"
+SRC_URI="https://github.com/Gnurou/tagainijisho/releases/download/${PV}/${P}.tar.gz"
+LICENSE="GPL-3+ public-domain"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+DEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ >=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 linguae
+ # en is not optional, and build fails if none other then en is set, so adding ja as non-optional too
+ # 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
+ if ! use linguas_${lingua}; then
+ rm i18n/tagainijisho_${lingua}.ts || die
+ fi
+ done
+
+ # Dictionary linguae
+ # en is not optional here either, but nothing special needs to be done
+ # 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
+ if use linguas_${lingua}; then
+ cmake_linguas+=";${lingua}"
+ fi
+ done
+ mycmakeargs=( -DDICT_LANG="${cmake_linguas};" )
+
+ cmake-utils_src_configure
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postinst() { gnome2_icon_cache_update; }
+pkg_postrm() { gnome2_icon_cache_update; }