mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
mozc: fix fcitx-mozc cross compilation
Closes: #12186 [via git-merge-pr]
This commit is contained in:
parent
a787699d5d
commit
95b278abf7
1 changed files with 9 additions and 13 deletions
|
@ -3,7 +3,8 @@ pkgname=mozc
|
||||||
version=2.23.2785.102
|
version=2.23.2785.102
|
||||||
revision=1
|
revision=1
|
||||||
hostmakedepends="ninja pkg-config protobuf-devel python"
|
hostmakedepends="ninja pkg-config protobuf-devel python"
|
||||||
makedepends="gtk+-devel ibus-devel libzinnia-devel protobuf-devel qt5-devel"
|
makedepends="gtk+-devel ibus-devel libzinnia-devel protobuf-devel qt5-devel
|
||||||
|
fcitx-devel"
|
||||||
depends="tegaki-zinnia-japanese>=0.3"
|
depends="tegaki-zinnia-japanese>=0.3"
|
||||||
maintainer="Matthias von Faber <mvf@gmx.eu>"
|
maintainer="Matthias von Faber <mvf@gmx.eu>"
|
||||||
homepage="https://github.com/google/mozc"
|
homepage="https://github.com/google/mozc"
|
||||||
|
@ -24,17 +25,11 @@ checksum="
|
||||||
|
|
||||||
if [ -n "$CROSS_BUILD" ]; then
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" qt5-devel"
|
hostmakedepends+=" qt5-devel"
|
||||||
else
|
|
||||||
makedepends+=" fcitx-devel"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
ln -s mozc-* mozc
|
ln -s mozc-* mozc
|
||||||
if [ -n "$CROSS_BUILD" ]; then
|
|
||||||
rm -rf mozc/src/unix/fcitx*
|
|
||||||
else
|
|
||||||
rm -rf mozc/src/unix/fcitx5
|
rm -rf mozc/src/unix/fcitx5
|
||||||
fi
|
|
||||||
|
|
||||||
# symlink "submodules" into place
|
# symlink "submodules" into place
|
||||||
for _src_dest in gyp japanese-usage-dictionary:japanese_usage_dictionary; do
|
for _src_dest in gyp japanese-usage-dictionary:japanese_usage_dictionary; do
|
||||||
|
@ -43,6 +38,11 @@ post_extract() {
|
||||||
rmdir $_dst
|
rmdir $_dst
|
||||||
ln -sr $_src-* $_dst
|
ln -sr $_src-* $_dst
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
|
# find fcitx4-config
|
||||||
|
sed -i -e "s;fcitx4-config;${XBPS_CROSS_BASE}/usr/bin/fcitx4-config;" mozc/src/unix/fcitx/fcitx.gyp
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
|
@ -59,10 +59,8 @@ do_build() {
|
||||||
unix/emacs/emacs.gyp:mozc_emacs_helper
|
unix/emacs/emacs.gyp:mozc_emacs_helper
|
||||||
unix/ibus/ibus.gyp:ibus_mozc
|
unix/ibus/ibus.gyp:ibus_mozc
|
||||||
renderer/renderer.gyp:mozc_renderer
|
renderer/renderer.gyp:mozc_renderer
|
||||||
|
unix/fcitx/fcitx.gyp:fcitx-mozc
|
||||||
"
|
"
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
targets+=" unix/fcitx/fcitx.gyp:fcitx-mozc"
|
|
||||||
fi
|
|
||||||
GYP_DEFINES="
|
GYP_DEFINES="
|
||||||
document_dir=/usr/share/licenses/${pkgname}
|
document_dir=/usr/share/licenses/${pkgname}
|
||||||
use_libprotobuf=1
|
use_libprotobuf=1
|
||||||
|
@ -106,7 +104,6 @@ emacs-mozc_package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
fcitx-mozc_package() {
|
fcitx-mozc_package() {
|
||||||
short_desc="Mozc engine for fcitx - Client of the Mozc input method"
|
short_desc="Mozc engine for fcitx - Client of the Mozc input method"
|
||||||
depends="${sourcepkg}-${version}_${revision} fcitx>=4.2.9"
|
depends="${sourcepkg}-${version}_${revision} fcitx>=4.2.9"
|
||||||
|
@ -118,4 +115,3 @@ fcitx-mozc_package() {
|
||||||
install -D -m 644 unix/fcitx/mozc.conf "${PKGDESTDIR}/usr/share/fcitx/inputmethod/mozc.conf"
|
install -D -m 644 unix/fcitx/mozc.conf "${PKGDESTDIR}/usr/share/fcitx/inputmethod/mozc.conf"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fi
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue