From fceb14d34534304ca7ed4514f7d41c8790657f65 Mon Sep 17 00:00:00 2001 From: Terra Yi Date: Sat, 23 Apr 2022 04:00:00 +1200 Subject: [PATCH] KoreanIM, add recipe (#6841) * koreanim, add recipe * koreanim, apply requested changed in recipe --- app-i18n/koreanim/koreanim-0.0.1.recipe | 47 +++++++++++++++++++ .../koreanim/patches/koreanim-0.0.1.patchset | 29 ++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 app-i18n/koreanim/koreanim-0.0.1.recipe create mode 100644 app-i18n/koreanim/patches/koreanim-0.0.1.patchset diff --git a/app-i18n/koreanim/koreanim-0.0.1.recipe b/app-i18n/koreanim/koreanim-0.0.1.recipe new file mode 100644 index 000000000..83a1cf617 --- /dev/null +++ b/app-i18n/koreanim/koreanim-0.0.1.recipe @@ -0,0 +1,47 @@ +SUMMARY="Korean Input Method for BeOS/Haiku" +DESCRIPTION="Korean Input Method for BeOS/Haiku using libhangul" +HOMEPAGE="https://github.com/terrayi/KoreanIM" +COPYRIGHT="2014 Terra Yi" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://github.com/terrayi/KoreanIM/archive/refs/tags/v0.0.1.zip" +CHECKSUM_SHA256="3af306a4bb5db591b60105e0f98e24f7956a748abe7170e0cf7760ffbf2bbd6b" +SOURCE_DIR="KoreanIM-$portVersion" + +PATCHES="koreanim-0.0.1.patchset" + +ARCHITECTURES="all" + +PROVIDES=" + koreanim = $portVersion + addon:KoreanIM = $portVersion + " + +REQUIRES=" + haiku + lib:libhangul + " + +BUILD_REQUIRES=" + devel:libhangul + devel:libintl + makefile_engine + " + +BUILD_PREREQUIRES=" + haiku_devel + cmd:gcc + cmd:make + " + +BUILD() +{ + make $jobArgs -e OBJ_DIR=generated +} + +INSTALL() +{ + mkdir -p $addOnsDir/input_server/methods + cp generated/KoreanIM $addOnsDir/input_server/methods/ +} + diff --git a/app-i18n/koreanim/patches/koreanim-0.0.1.patchset b/app-i18n/koreanim/patches/koreanim-0.0.1.patchset new file mode 100644 index 000000000..54821ce2a --- /dev/null +++ b/app-i18n/koreanim/patches/koreanim-0.0.1.patchset @@ -0,0 +1,29 @@ +From: Terra Yi +Date: Fri, 22 April 2022 18:50:00 +12:00 +Subject: Build fix for Haiku + + +diff --git a/Makefile b/Makefile +index 92eab7846..0a276e51e 100644 +--- a/Makefile ++++ b/Makefile +@@ -16,12 +16,14 @@ SYMBOLS= + DEBUGGER=TRUE + COMPILER_FLAGS= + LINKER_FLAGS= ++DEVEL_DIRECTORY := \ ++ $(shell findpaths -r "makefile_engine" B_FIND_PATH_DEVELOP_DIRECTORY) + + all: _APP_ default + +-include /boot/develop/etc/makefile-engine ++include $(DEVEL_DIRECTORY)/etc/makefile-engine + +-clean :: ++clean: + rm -f _APP_ + + _APP_: /system/servers/input_server + +-- +2.2.2