From 542048c566cd22d05d414f2fd3e63590b3b99e31 Mon Sep 17 00:00:00 2001 From: Han Pengfei Date: Thu, 20 Oct 2022 00:15:10 +0800 Subject: [PATCH] libcangjie: add new recipe, 1.3 (#7305) --- app-i18n/libcangjie/libcangjie-1.3.recipe | 67 +++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 app-i18n/libcangjie/libcangjie-1.3.recipe diff --git a/app-i18n/libcangjie/libcangjie-1.3.recipe b/app-i18n/libcangjie/libcangjie-1.3.recipe new file mode 100644 index 000000000..65f637ca5 --- /dev/null +++ b/app-i18n/libcangjie/libcangjie-1.3.recipe @@ -0,0 +1,67 @@ +SUMMARY="Library to implement Cangjie input method" +DESCRIPTION="This is the C library implementing the Cangjie input method." +HOMEPAGE="https://gitlab.freedesktop.org/cangjie/libcangjie" +COPYRIGHT="2013 The LibCangjie authors" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://gitlab.freedesktop.org/cangjie/libcangjie/-/archive/v${portVersion}/ibcangjie-v$portVersion.tar.gz" +CHECKSUM_SHA256="629e53bfb26f0939bd11e71e2ff42e38d4456721ea96971646edd26228109242" +SOURCE_DIR="libcangjie-v$portVersion-a6e65884879315f7a2677528691e9c866cc2e391" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="2.0.1" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libcangjie$secondaryArchSuffix = $portVersion + cmd:libcangjie_bench + cmd:libcangjie_cli + cmd:libcangjie_dbbuilder + lib:libcangjie$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libsqlite3$secondaryArchSuffix + " + +PROVIDES_devel=" + libcangjie${secondaryArchSuffix}_devel = $portVersion + devel:libcangjie$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + libcangjie == $portVersion base + " + +BUILD_REQUIRES=" + haiku_devel$secondaryArchSuffix + devel:libsqlite3$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:gcc$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + ./autogen.sh + runConfigure ./configure --disable-static + make $jobArgs +} + +INSTALL() +{ + make install + + rm $libDir/libcangjie.la + + prepareInstalledDevelLib libcangjie + + fixPkgconfig + + packageEntries devel $developDir +}