init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
This commit is contained in:
5
Telegram/ThirdParty/hime/distro/debian/changelog
vendored
Normal file
5
Telegram/ThirdParty/hime/distro/debian/changelog
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
hime (9-9) experimental; urgency=low
|
||||
|
||||
* New snapshot.
|
||||
|
||||
-- The HIME Project <http://hime.luna.com.tw> Tue, 13 Dec 2011 14:15:16 +0800
|
||||
5
Telegram/ThirdParty/hime/distro/debian/ci/Dockerfile
vendored
Normal file
5
Telegram/ThirdParty/hime/distro/debian/ci/Dockerfile
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM debian:unstable
|
||||
|
||||
COPY entrypoint.sh /app/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
38
Telegram/ThirdParty/hime/distro/debian/ci/entrypoint.sh
vendored
Executable file
38
Telegram/ThirdParty/hime/distro/debian/ci/entrypoint.sh
vendored
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
set -x
|
||||
|
||||
separator() {
|
||||
echo -e "\n\n\n\n\n"
|
||||
}
|
||||
|
||||
# base
|
||||
apt-get update --yes && apt-get upgrade --yes
|
||||
apt-get install --yes \
|
||||
build-essential \
|
||||
locales \
|
||||
fakeroot \
|
||||
devscripts \
|
||||
git
|
||||
|
||||
# dependencies
|
||||
apt-get install --yes \
|
||||
libxtst-dev \
|
||||
libgtk2.0-dev \
|
||||
libgtk-3-dev \
|
||||
libanthy-dev \
|
||||
libchewing3-dev \
|
||||
libappindicator-dev \
|
||||
libappindicator3-dev \
|
||||
qtbase5-private-dev
|
||||
|
||||
echo 'en_US.UTF-8 UTF-8' >/etc/locale.gen && locale-gen
|
||||
|
||||
set +x; separator; separator; separator; set -x
|
||||
|
||||
# enter GitHub workspace directory path
|
||||
cd "$GITHUB_WORKSPACE"
|
||||
|
||||
# build Debian package
|
||||
./distro/debian/gen-deb
|
||||
16
Telegram/ThirdParty/hime/distro/debian/ckqt.sh
vendored
Normal file
16
Telegram/ThirdParty/hime/distro/debian/ckqt.sh
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
[ ! -e debian/hime/"$(pkg-config --variable=libdir gtk+-3.0)"/gtk-3.0/"$(pkg-config --variable=gtk_binary_version gtk+-3.0)"/immodules/im-hime.so ] && sed -i 's/, hime-gtk3-immodule//' debian/hime/DEBIAN/control
|
||||
[ ! -e debian/hime/usr/lib/hime/chewing-module.so ] && sed -i 's/, libchewing3//' debian/hime/DEBIAN/control
|
||||
|
||||
if [ ! -e debian/hime/usr/lib/hime/anthy-module.so ]; then
|
||||
grep -v 'Suggests: kasumi' debian/hime/DEBIAN/control | sed 's/, anthy//' >debian/hime/DEBIAN/control.in
|
||||
mv debian/hime/DEBIAN/control.in debian/hime/DEBIAN/control
|
||||
fi
|
||||
|
||||
if [ -x /usr/lib/libgtk2.0-0/gtk-query-immodules-2.0 ]; then
|
||||
/usr/lib/libgtk2.0-0/gtk-query-immodules-2.0 debian/hime/usr/lib/gtk-2.0/2.10.0/immodules/im-hime.so | grep hime | tail -n 1 >>debian/hime/usr/lib/gtk-2.0/2.10.0/immodule-files.d/hime.immodules
|
||||
else
|
||||
rm -fr debian/hime/usr/lib/gtk-2.0/2.10.0/immodule-files.d
|
||||
fi
|
||||
|
||||
true
|
||||
1
Telegram/ThirdParty/hime/distro/debian/compat
vendored
Normal file
1
Telegram/ThirdParty/hime/distro/debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
10
|
||||
17
Telegram/ThirdParty/hime/distro/debian/control
vendored
Normal file
17
Telegram/ThirdParty/hime/distro/debian/control
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
Source: hime
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: The HIME Project <http://hime.luna.com.tw>
|
||||
Build-Depends: debhelper (>= 7.0.50~), libgtk2.0-dev (>= 2.10.0) | libgtk-3-dev, libxtst-dev, dpkg | qtbase5-private-dev | libanthy-dev | libchewing3-dev | libappindicator-dev | libappindicator3-dev
|
||||
Standards-Version: 3.9.1
|
||||
|
||||
Package: hime
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Recommends: im-switch | im-config, anthy, libchewing3
|
||||
Suggests: kasumi
|
||||
Conflicts: hime-dev, hime-gtk3-immodule, hime-qt5-immodule, hime-anthy, hime-chewing, hime-icon-themes, hime-data, hime-tables
|
||||
Replaces: hime-dev, hime-gtk3-immodule, hime-qt5-immodule, hime-anthy, hime-chewing, hime-icon-themes, hime-data, hime-tables
|
||||
Provides: hime-dev, hime-gtk3-immodule, hime-qt5-immodule, hime-anthy, hime-chewing, hime-icon-themes, hime-data, hime-tables
|
||||
Description: input method server
|
||||
Hime is an input method server, supports GTK+ / Qt immodules and XIM.
|
||||
18
Telegram/ThirdParty/hime/distro/debian/gen-deb
vendored
Executable file
18
Telegram/ThirdParty/hime/distro/debian/gen-deb
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ ! -e distro/debian ] && exec echo Please execute '"[1m[32mdistro/debian/gen-deb[0m"' under hime directory, thanks.
|
||||
|
||||
rm -rf debian
|
||||
cp -r distro/debian .
|
||||
|
||||
if [ -d .git ]; then
|
||||
sed -i "s#9-9#$(head -n 1 ChangeLog | sed -e "s/$/+$(date +git%Y%m%d)-1/" -e 's/UNRELEASED/0UNRELEASED/')#" debian/changelog
|
||||
else
|
||||
sed -i "s#9-9#$(head -n 1 ChangeLog | sed -e 's/UNRELEASED/0UNRELEASED/')#" debian/changelog
|
||||
fi
|
||||
|
||||
# Not sure if DEB_CFLAGS_SET does work
|
||||
export DEB_CFLAGS_SET="-Wall -g -O0"
|
||||
export CFLAGS="$CFLAGS -Wall -g -O0"
|
||||
|
||||
debuild --no-lintian --no-tgz-check -i -us -uc -b
|
||||
1
Telegram/ThirdParty/hime/distro/debian/hime.immodules
vendored
Normal file
1
Telegram/ThirdParty/hime/distro/debian/hime.immodules
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"/usr/lib/gtk-2.0/2.10.0/immodules/im-hime.so"
|
||||
14
Telegram/ThirdParty/hime/distro/debian/im-config/25_hime_upstream.conf
vendored
Normal file
14
Telegram/ThirdParty/hime/distro/debian/im-config/25_hime_upstream.conf
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# vim: set sts=4 expandtab:
|
||||
IM_CONFIG_SHORT="$(gettext "啟用 HIME Input Method Editor (hime) (上游官方版本)")"
|
||||
|
||||
IM_CONFIG_LONG="$(gettext "HIME Input Method Editor (hime) (上游官方版本)
|
||||
* 需要安裝:hime 軟體包
|
||||
* 其他模組的支援請查閱 hime 來源碼中 configure 程式的 --help 命令列選項")"
|
||||
|
||||
package_auto() {
|
||||
package_status hime
|
||||
}
|
||||
|
||||
package_menu() {
|
||||
package_status hime
|
||||
}
|
||||
48
Telegram/ThirdParty/hime/distro/debian/im-config/25_hime_upstream.rc
vendored
Normal file
48
Telegram/ThirdParty/hime/distro/debian/im-config/25_hime_upstream.rc
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
# start hime (upstream version)
|
||||
# vim: set sts=4 expandtab:
|
||||
|
||||
if [ "$IM_CONFIG_PHASE" = 2 ]; then
|
||||
# start hime daemon
|
||||
/usr/bin/hime &
|
||||
fi
|
||||
|
||||
if [ "$IM_CONFIG_PHASE" = 1 ]; then
|
||||
# set variables for the plain XIM
|
||||
XMODIFIERS=@im=hime
|
||||
|
||||
GTK_IM_MODULE=xim
|
||||
# use hime immodule only when available for both GTK 2.0 and 3.0
|
||||
|
||||
IM_CONFIG_MARKER2=0
|
||||
for IM_CONFIG_MARKER in /usr/lib/*/gtk-2.0/*/immodules/im-hime.so \
|
||||
/usr/lib/gtk-2.0/*/immodules/im-hime.so; do
|
||||
if [ -e "$IM_CONFIG_MARKER" ]; then
|
||||
IM_CONFIG_MARKER2=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
IM_CONFIG_MARKER3=0
|
||||
for IM_CONFIG_MARKER in /usr/lib/*/gtk-3.0/*/immodules/im-hime.so \
|
||||
/usr/lib/gtk-3.0/*/immodules/im-hime.so; do
|
||||
if [ -e "$IM_CONFIG_MARKER" ]; then
|
||||
IM_CONFIG_MARKER3=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ "$IM_CONFIG_MARKER2" = 1 ] && [ "$IM_CONFIG_MARKER3" = 1 ]; then
|
||||
GTK_IM_MODULE=hime
|
||||
fi
|
||||
|
||||
# use immodule when available for Qt5
|
||||
for IM_CONFIG_MARKER in /usr/lib/*/qt5/plugins/platforminputcontexts/im-hime.so \
|
||||
/usr/lib/qt5/plugins/platforminputcontexts/im-hime.so; do
|
||||
if [ -e "$IM_CONFIG_MARKER" ]; then
|
||||
QT_IM_MODULE=hime
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# hime has no clutter support
|
||||
CLUTTER_IM_MODULE=xim
|
||||
fi
|
||||
4
Telegram/ThirdParty/hime/distro/debian/install
vendored
Normal file
4
Telegram/ThirdParty/hime/distro/debian/install
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
debian/im-switch/hime etc/X11/xinit/xinput.d
|
||||
debian/hime.immodules usr/lib/gtk-2.0/2.10.0/immodule-files.d
|
||||
debian/im-config/25_hime_upstream.conf usr/share/im-config/data
|
||||
debian/im-config/25_hime_upstream.rc usr/share/im-config/data
|
||||
30
Telegram/ThirdParty/hime/distro/debian/postinst
vendored
Normal file
30
Telegram/ThirdParty/hime/distro/debian/postinst
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
# postinst script for hime
|
||||
|
||||
set -e
|
||||
|
||||
ua_inst() {
|
||||
update-alternatives \
|
||||
--install /etc/X11/xinit/xinput.d/"$1" xinput-"$1" \
|
||||
/etc/X11/xinit/xinput.d/"$2" "$3"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
# Set up default
|
||||
ua_inst all_ALL hime 0
|
||||
ua_inst zh_CN hime 30
|
||||
ua_inst zh_TW hime 50
|
||||
;;
|
||||
|
||||
abort-upgrade | abort-remove | abort-deconfigure) ;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
28
Telegram/ThirdParty/hime/distro/debian/prerm
vendored
Normal file
28
Telegram/ThirdParty/hime/distro/debian/prerm
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
# prerm script for hime
|
||||
|
||||
set -e
|
||||
|
||||
ua_remove() {
|
||||
update-alternatives \
|
||||
--remove xinput-"$1" \
|
||||
/etc/X11/xinit/xinput.d/"$2"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
remove | upgrade | deconfigure)
|
||||
ua_remove all_ALL hime
|
||||
ua_remove zh_CN hime
|
||||
ua_remove zh_TW hime
|
||||
;;
|
||||
failed-upgrade) ;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
17
Telegram/ThirdParty/hime/distro/debian/rules
vendored
Executable file
17
Telegram/ThirdParty/hime/distro/debian/rules
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_configure:
|
||||
dh_auto_configure -- --disable-lib64
|
||||
|
||||
override_dh_shlibdeps:
|
||||
dh_shlibdeps --exclude=im-hime.so --exclude=anthy-module.so --exclude=chewing-module.so
|
||||
|
||||
override_dh_strip:
|
||||
# dh_strip
|
||||
|
||||
override_dh_gencontrol:
|
||||
dh_gencontrol
|
||||
sh debian/ckqt.sh
|
||||
Reference in New Issue
Block a user