From 8c26c2e8d5961aa7b2c53d20d594a64721feb52f Mon Sep 17 00:00:00 2001 From: Osamu Matsuda Date: Fri, 25 Jun 2021 00:00:53 +0800 Subject: [PATCH] japanese/qolibri: (New) EPWING dictionary viewer PR: 256715 --- japanese/Makefile | 1 + japanese/qolibri/Makefile | 24 +++++++++++++++++++ japanese/qolibri/distinfo | 3 +++ japanese/qolibri/files/patch-CMakeLists.txt | 11 +++++++++ .../qolibri/files/patch-src_searchpage.cpp | 11 +++++++++ japanese/qolibri/pkg-descr | 3 +++ 6 files changed, 53 insertions(+) create mode 100644 japanese/qolibri/Makefile create mode 100644 japanese/qolibri/distinfo create mode 100644 japanese/qolibri/files/patch-CMakeLists.txt create mode 100644 japanese/qolibri/files/patch-src_searchpage.cpp create mode 100644 japanese/qolibri/pkg-descr diff --git a/japanese/Makefile b/japanese/Makefile index 94afb19f7021..16d5df16bc83 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -213,6 +213,7 @@ SUBDIR += prn SUBDIR += py-jaconv SUBDIR += qkc + SUBDIR += qolibri SUBDIR += quit SUBDIR += roget-fpw SUBDIR += rogue_s diff --git a/japanese/qolibri/Makefile b/japanese/qolibri/Makefile new file mode 100644 index 000000000000..81426a8b171b --- /dev/null +++ b/japanese/qolibri/Makefile @@ -0,0 +1,24 @@ +# created by: Osamu Matsuda + +PORTNAME= qolibri +DISTVERSION= 2.1.3 +CATEGORIES= japanese + +MAINTAINER= omatsuda000@gmail.com +COMMENT= EPWING dictionary viewer + +LICENSE= GPLv2 + +LIB_DEPENDS= libeb.so:japanese/eb + +USES= cmake qt:5 +USE_QT= buildtools core declarative gui linguisttools location \ + multimedia network printsupport qmake webchannel webengine \ + widgets + +USE_GITHUB= yes +GH_ACCOUNT= ludios + +PLIST_FILES= bin/qolibri + +.include diff --git a/japanese/qolibri/distinfo b/japanese/qolibri/distinfo new file mode 100644 index 000000000000..0a96e1f9d84b --- /dev/null +++ b/japanese/qolibri/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1624181574 +SHA256 (ludios-qolibri-2.1.3_GH0.tar.gz) = 6954b9e86cbc70026361927b22bc9b0bd58a188646e35c4da68f99790790367e +SIZE (ludios-qolibri-2.1.3_GH0.tar.gz) = 252092 diff --git a/japanese/qolibri/files/patch-CMakeLists.txt b/japanese/qolibri/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..ba06251cfe39 --- /dev/null +++ b/japanese/qolibri/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2020-02-28 16:02:25 UTC ++++ CMakeLists.txt +@@ -11,6 +11,8 @@ project(qolibri VERSION 2.1.3) + + include(GNUInstallDirs) + ++link_directories(/usr/lib /usr/local/lib) ++ + set(CMAKE_AUTOMOC ON) + set(CMAKE_AUTOUIC ON) + set(CMAKE_AUTORCC ON) diff --git a/japanese/qolibri/files/patch-src_searchpage.cpp b/japanese/qolibri/files/patch-src_searchpage.cpp new file mode 100644 index 000000000000..9ce367592ab8 --- /dev/null +++ b/japanese/qolibri/files/patch-src_searchpage.cpp @@ -0,0 +1,11 @@ +--- src/searchpage.cpp.orig 2020-02-28 16:02:25 UTC ++++ src/searchpage.cpp +@@ -17,7 +17,7 @@ RET_SEARCH SearchPage::search(const Query& query) + switch (query.method.direction) { + case ExactWordSearch: + case ForwardSearch: +- queries << stemWords(query.query); ++/* queries << stemWords(query.query); */ + break; + default: + break; diff --git a/japanese/qolibri/pkg-descr b/japanese/qolibri/pkg-descr new file mode 100644 index 000000000000..088250701f6b --- /dev/null +++ b/japanese/qolibri/pkg-descr @@ -0,0 +1,3 @@ +EPWING dictionary reader originally developed at http://qolibri.osdn.jp/ + +WWW: https://github.com/ludios/qolibri/ -- 2.31.1