From 87daa405532e2896f9762f46cd93276a13a02a71 Mon Sep 17 00:00:00 2001 From: Ben Sung Hsu Date: Mon, 31 Dec 2018 16:27:35 -0600 Subject: [PATCH] New package: libpinyin This commit adds the 'libpinyin' library to the repo. This library is needed by 'ibus-pinyin' and 'ibus-libpinyin' in order to provide Chinese language input. This library also provides Traditional Chinese (Bopomofo/ZhuYin) input. PATCH 2: Simplified dependencies and build process per review comments (*) Disabled cross build because some of the data generation requires binary build with the build-system tools instead of the target system tools and will require work to sort through the automake/autoconf project. PATCH 3: Cleaned up long lines and simplified nocross comments --- common/shlibs | 1 + srcpkgs/libpinyin-devel | 1 + srcpkgs/libpinyin/template | 30 ++++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 120000 srcpkgs/libpinyin-devel create mode 100644 srcpkgs/libpinyin/template diff --git a/common/shlibs b/common/shlibs index 821be04aac..4868eadb96 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3380,3 +3380,4 @@ libbroker.so.0 bro-2.6.1_1 libcaf_core.so.0.16.2 bro-2.6.1_1 libcaf_openssl.so.0.16.2 bro-2.6.1_1 libllhttp.so.1 llhttp-1.0.1_1 +libpinyin.so.13 libpinyin-2.2.1_1 diff --git a/srcpkgs/libpinyin-devel b/srcpkgs/libpinyin-devel new file mode 120000 index 0000000000..b9910dce3c --- /dev/null +++ b/srcpkgs/libpinyin-devel @@ -0,0 +1 @@ +libpinyin \ No newline at end of file diff --git a/srcpkgs/libpinyin/template b/srcpkgs/libpinyin/template new file mode 100644 index 0000000000..561317d396 --- /dev/null +++ b/srcpkgs/libpinyin/template @@ -0,0 +1,30 @@ +# Template file for 'libpinyin' +pkgname=libpinyin +version=2.2.1 +revision=1 +build_style=gnu-configure +hostmakedepends="intltool libtool pkg-config autoconf-archive autoconf automake + wget gnome-common" +makedepends="db-devel libglib-devel" +short_desc="Support library for PinYin and ZhuYin (Bopofomo)" +maintainer="Ben Sung Hsu " +license="GPL-3.0-or-later" +homepage="https://github.com/libpinyin/libpinyin" +distfiles="https://github.com/libpinyin/libpinyin/archive/${version}.tar.gz" +checksum=38a434f5f29607dcdf7c721cdff5a2428f03297a99064c7e15a9a64c1b831069 +nocross="Requires data generators compiled against target system" + +pre_configure() { + NOCONFIGURE=1 ./autogen.sh +} + +libpinyin-devel_package() { + depends="libglib-devel libpinyin-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + vmove "usr/lib/*.a" + } +}