mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
Tagaini Jisho: new recipe (#2910)
This commit is contained in:
36
app-i18n/tagainijisho/additional-files/tagainijisho.rdef.in
Normal file
36
app-i18n/tagainijisho/additional-files/tagainijisho.rdef.in
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
resource app_flags B_SINGLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
short_info = "Tagaini Jisho",
|
||||
long_info = "Open-source Japanese dictionary and kanji lookup tool"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource vector_icon {
|
||||
$"6E6369660405FF0201060237FF5D00000000000037FF5D49F41449494A000066"
|
||||
$"CCFF02458602001602362F69000000000000353E3849E9894A038700EEFFFF05"
|
||||
$"00050A042020CC6620CC66CC6620CC660216CAA0C5C5CBADC3F3CA23C697C8E5"
|
||||
$"C81BC98FC75FC8E5C81BC880C880C880C880C604CAF8BF78CC34C301CC34BC1C"
|
||||
$"CC34B6BAC880B932CAF8B6BAC880B65CC81BB65CC81BB5ADC75FB4A0C5C5B519"
|
||||
$"C697B38AC3E520BF7820C1CC20BD70B45DB9E0B374BB93B4C9B912B5F0B791B5"
|
||||
$"4FB84DB5F0B791B6BAB6BAB6BAB6BAB7C7B5A9BA24B43BB8EAB4D4BB1AB3BEBD"
|
||||
$"2FB335BC1EB367BD2FB335BE50B30DBE50B30DBE50B30DBF7820BF7820BF7820"
|
||||
$"C0B4B30DC0B4B30DC2C0B33AC645B4EAC49BB3D9C645B4EAC652B4F1C652B4F1"
|
||||
$"C717B573C880B6BAC7D1B60BC880B6BAC94AB791C94AB791C9E6B84DCAD6B9E0"
|
||||
$"CA6AB912CBBFBBA0CC34BFBBCC34BD94CC34C1F0061223FE23E20FCAD6B9E0CA"
|
||||
$"6AB912CAD6B9E0BD36BCD1BBBEC652C51DC5C5CAA0C5C5CAA0C5C5CA27C697C8"
|
||||
$"EBC81BC996C75FC8EBC81BB65CC81BB65CC81BB5ADC75FB4A0C5C5B519C697B4"
|
||||
$"A0C5C5C23AC284C361BB23BAEDC409B82CBA67B9E0B45DB9E0B45DB9E0B4C9B9"
|
||||
$"12B5F0B791B54FB84DB5F0B791C94AB791C94AB791C9E6B84D0A02C652BBBEC6"
|
||||
$"52360A04C2CDC12DC339BDE5BC58BDE5BBA3C12D040A0301011001158100040A"
|
||||
$"0000023FDF9F0000000000003FDF9F4000004000000A010101023FDF9F000000"
|
||||
$"0000003FDF9F4000004000000A0203020304023FDF9F0000000000003FDF9F40"
|
||||
$"0000400000"
|
||||
};
|
||||
@@ -0,0 +1,54 @@
|
||||
From 40a46f157029caaa66b5153e560aa118548ef0bf Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
Date: Sun, 12 Aug 2018 13:24:18 +0200
|
||||
Subject: Build fix, no dl required on Haiku
|
||||
|
||||
|
||||
diff --git a/src/sqlite/CMakeLists.txt b/src/sqlite/CMakeLists.txt
|
||||
index 1d3163e..6b3a87d 100644
|
||||
--- a/src/sqlite/CMakeLists.txt
|
||||
+++ b/src/sqlite/CMakeLists.txt
|
||||
@@ -100,7 +100,9 @@ endif()
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(tagaini_sqlite pthread)
|
||||
- target_link_libraries(tagaini_sqlite dl)
|
||||
+ if(NOT HAIKU)
|
||||
+ target_link_libraries(tagaini_sqlite dl)
|
||||
+ endif(NOT HAIKU)
|
||||
endif(UNIX)
|
||||
|
||||
if(APPLE)
|
||||
--
|
||||
2.16.4
|
||||
|
||||
|
||||
From 7ccf06365b1fdc4006b5f99a5b287ea4ed01be8e Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
||||
Date: Sun, 12 Aug 2018 14:05:22 +0200
|
||||
Subject: Do not install unneeded resources
|
||||
|
||||
|
||||
diff --git a/pack/CMakeLists.txt b/pack/CMakeLists.txt
|
||||
index d514d1f..8d176ab 100644
|
||||
--- a/pack/CMakeLists.txt
|
||||
+++ b/pack/CMakeLists.txt
|
||||
@@ -57,6 +57,15 @@ if(UNIX AND APPLE)
|
||||
set(DOC_DIR "${EXE_DIR}/doc")
|
||||
set(SYS_QT_I18N_DIR "/Developer/Applications/Qt/translations")
|
||||
|
||||
+# Haiku
|
||||
+elseif(HAIKU)
|
||||
+ set(CPACK_PACKAGE_NAME "tagainijisho")
|
||||
+ set(ROOT_DIR share/tagainijisho)
|
||||
+ set(DB_DIR ${ROOT_DIR})
|
||||
+ set(I18N_DIR ${ROOT_DIR}/i18n)
|
||||
+ set(DOC_DIR ${ROOT_DIR}/doc)
|
||||
+ set(RESOURCES_DIR ${ROOT_DIR})
|
||||
+
|
||||
# Other UNIX?
|
||||
elseif(UNIX)
|
||||
set(CPACK_PACKAGE_NAME "tagainijisho")
|
||||
--
|
||||
2.16.4
|
||||
|
||||
88
app-i18n/tagainijisho/tagainijisho-1.2~20180610.recipe
Normal file
88
app-i18n/tagainijisho/tagainijisho-1.2~20180610.recipe
Normal file
@@ -0,0 +1,88 @@
|
||||
SUMMARY="Open-source Japanese dictionary and kanji lookup tool"
|
||||
DESCRIPTION="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 lets 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."
|
||||
HOMEPAGE="https://www.tagaini.net/"
|
||||
COPYRIGHT="2008-2013 Alexandre Courbot"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
srcGitRev="dde2ad85dc6dc47ac7862e728878a7c8d9d4faf6"
|
||||
SOURCE_URI="https://github.com/Gnurou/tagainijisho/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="587eb6f5343fd0f88a786937d2850d944685c405077bdb08dcde1e59108d45cd"
|
||||
SOURCE_FILENAME="tagainijisho-$portVersion.tar.gz"
|
||||
SOURCE_DIR="tagainijisho-$srcGitRev"
|
||||
PATCHES="tagainijisho-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="tagainijisho.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
tagainijisho$secondaryArchSuffix = $portVersion
|
||||
app:TagainiJisho$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5PrintSupport$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5PrintSupport$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gunzip
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake .. -DCMAKE_INSTALL_PREFIX:PATH="$appsDir/TagainiJisho"
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mv $appsDir/TagainiJisho/bin/tagainijisho \
|
||||
$appsDir/TagainiJisho/TagainiJisho
|
||||
rmdir $appsDir/TagainiJisho/bin
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.TagainiJisho"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2 | cut -d~ -f1`"
|
||||
local MINOR="0"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/tagainijisho.rdef.in > tagainijisho.rdef
|
||||
|
||||
addResourcesToBinaries tagainijisho.rdef \
|
||||
$appsDir/TagainiJisho/TagainiJisho
|
||||
|
||||
addAppDeskbarSymlink $appsDir/TagainiJisho/TagainiJisho "Tagaini Jisho"
|
||||
}
|
||||
Reference in New Issue
Block a user