mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-18 23:38:57 -04:00
app-admin/eselect-xim: drop old package (#774)
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
This commit is contained in:
parent
9239c92ecc
commit
08e6a6b83a
@ -1,10 +0,0 @@
|
||||
# ChangeLog for app-admin/eselect-xim
|
||||
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
*eselect-xim-0.9.1 (18 May 2014)
|
||||
|
||||
18 May 2014; scsi <scsichen@gmail.com> +eselect-xim-0.9.1.ebuild,
|
||||
+files/xim.d/fcitx:
|
||||
add fcitx supports.
|
||||
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DESCRIPTION="Manages Input Method of X"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 x86"
|
||||
IUSE="scim gcin oxim ibus"
|
||||
|
||||
RDEPEND=">=app-admin/eselect-1.0.6
|
||||
scim? ( app-i18n/scim )
|
||||
scim? ( app-i18n/scim-bridge )
|
||||
gcin? ( app-i18n/gcin )
|
||||
oxim? ( app-i18n/oxim )
|
||||
ibus? ( app-i18n/ibus )"
|
||||
|
||||
src_install() {
|
||||
dodir /etc/eselect-xim/
|
||||
insinto /usr/share/eselect-xim/xim.d
|
||||
use scim && doins "${FILESDIR}/xim.d/scim"
|
||||
use gcin && doins "${FILESDIR}/xim.d/gcin"
|
||||
use oxim && doins "${FILESDIR}/xim.d/oxim"
|
||||
use ibus && doins "${FILESDIR}/xim.d/ibus"
|
||||
# insinto /etc/profile.d
|
||||
# doins "${FILESDIR}/xim-select.sh" || die
|
||||
exeinto /etc/X11/xinit/xinitrc.d
|
||||
newexe "${FILESDIR}/xim-select.sh" 99-xim-select
|
||||
insinto /usr/share/eselect/modules
|
||||
doins "${FILESDIR}/xim.eselect" || die
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DESCRIPTION="Manages Input Method of X"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 x86"
|
||||
IUSE="scim gcin oxim ibus hime fcitx"
|
||||
|
||||
RDEPEND=">=app-admin/eselect-1.0.6
|
||||
scim? ( app-i18n/scim )
|
||||
scim? ( app-i18n/scim-bridge )
|
||||
gcin? ( app-i18n/gcin )
|
||||
oxim? ( app-i18n/oxim )
|
||||
ibus? ( app-i18n/ibus )
|
||||
hime? ( app-i18n/hime )
|
||||
fcitx? ( app-i18n/fcitx )"
|
||||
|
||||
src_install() {
|
||||
dodir /etc/eselect-xim/
|
||||
insinto /usr/share/eselect-xim/xim.d
|
||||
use scim && doins "${FILESDIR}/xim.d/scim"
|
||||
use gcin && doins "${FILESDIR}/xim.d/gcin"
|
||||
use oxim && doins "${FILESDIR}/xim.d/oxim"
|
||||
use ibus && doins "${FILESDIR}/xim.d/ibus"
|
||||
use hime && doins "${FILESDIR}/xim.d/hime"
|
||||
use fcitx && doins "${FILESDIR}/xim.d/fcitx"
|
||||
|
||||
# insinto /etc/profile.d
|
||||
# doins "${FILESDIR}/xim-select.sh" || die
|
||||
exeinto /etc/X11/xinit/xinitrc.d
|
||||
newexe "${FILESDIR}/xim-select.sh" 99-xim-select
|
||||
insinto /usr/share/eselect/modules
|
||||
doins "${FILESDIR}/xim.eselect" || die
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
DESCRIPTION="Manages Input Method of X"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 x86"
|
||||
IUSE="scim gcin oxim ibus hime"
|
||||
|
||||
RDEPEND=">=app-admin/eselect-1.0.6
|
||||
scim? ( app-i18n/scim )
|
||||
scim? ( app-i18n/scim-bridge )
|
||||
gcin? ( app-i18n/gcin )
|
||||
oxim? ( app-i18n/oxim )
|
||||
ibus? ( app-i18n/ibus )
|
||||
hime? ( app-i18n/hime )"
|
||||
|
||||
src_install() {
|
||||
dodir /etc/eselect-xim/
|
||||
insinto /usr/share/eselect-xim/xim.d
|
||||
use scim && doins "${FILESDIR}/xim.d/scim"
|
||||
use gcin && doins "${FILESDIR}/xim.d/gcin"
|
||||
use oxim && doins "${FILESDIR}/xim.d/oxim"
|
||||
use ibus && doins "${FILESDIR}/xim.d/ibus"
|
||||
use hime && doins "${FILESDIR}/xim.d/hime"
|
||||
|
||||
# insinto /etc/profile.d
|
||||
# doins "${FILESDIR}/xim-select.sh" || die
|
||||
exeinto /etc/X11/xinit/xinitrc.d
|
||||
newexe "${FILESDIR}/xim-select.sh" 99-xim-select
|
||||
insinto /usr/share/eselect/modules
|
||||
doins "${FILESDIR}/xim.eselect" || die
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
#!/bin/bash
|
||||
user_xim="${HOME}/.gentoo/eselect-xim/current-user-xim"
|
||||
system_xim="/etc/eselect-xim/current-system-xim"
|
||||
|
||||
if [ -z "${UID}" ] ; then
|
||||
# id lives in /usr/bin which might not be mounted
|
||||
if type id >/dev/null 2>/dev/null ; then
|
||||
user_id=$(id -u)
|
||||
else
|
||||
[ "${USER}" = "root" ] && user_id=0
|
||||
fi
|
||||
else
|
||||
user_id=${UID}
|
||||
fi
|
||||
|
||||
if [ "${user_id}" != 0 -a -L "${user_xim}" ]; then
|
||||
source ${user_xim}
|
||||
elif [ -L "${system_xim}" ]; then
|
||||
source ${system_xim}
|
||||
fi
|
||||
|
||||
unset user_xim
|
||||
unset system_xim
|
||||
unset user_id
|
@ -1,4 +0,0 @@
|
||||
export GTK_IM_MODULE=fcitx
|
||||
export QT_IM_MODULE=fcitx
|
||||
export QT4_IM_MODULE=fcitx
|
||||
export XMODIFIERS=@im=fcitx
|
@ -1,5 +0,0 @@
|
||||
export XMODIFIERS="@im=GCIN"
|
||||
#export GTK_IM_MODULE=xim
|
||||
export GTK_IM_MODULE=gcin
|
||||
export QT_IM_MODULE=gcin
|
||||
export QT4_IM_MODULE=gcin
|
@ -1,5 +0,0 @@
|
||||
export XMODIFIERS="@im=hime"
|
||||
#export GTK_IM_MODULE=xim
|
||||
export GTK_IM_MODULE=hime
|
||||
export QT_IM_MODULE=hime
|
||||
export QT4_IM_MODULE=hime
|
@ -1,4 +0,0 @@
|
||||
export XMODIFIERS="@im=ibus"
|
||||
export GTK_IM_MODULE=ibus
|
||||
export QT_IM_MODULE=ibus
|
||||
export QT4_IM_MODULE=ibus
|
@ -1,5 +0,0 @@
|
||||
#export XMODIFIERS="@im=oxim"
|
||||
#export GTK_IM_MODULE=oxim
|
||||
#export QT_IM_MODULE=oxim
|
||||
#export QT4_IM_MODULE=oxim
|
||||
source /etc/X11/xinit/xinput.d/oxim
|
@ -1,10 +0,0 @@
|
||||
#export XIM_PROGRAM=SCIM
|
||||
#export XIM=SCIM
|
||||
export XMODIFIERS="@im=SCIM"
|
||||
#export GTK_IM_MODULE=xim
|
||||
export GTK_IM_MODULE=scim
|
||||
#export QT_IM_MODULE=scim
|
||||
export QT_IM_MODULE=scim-bridge
|
||||
#export QT4_IM_MODULE=scim
|
||||
export QT4_IM_MODULE=scim-bridge
|
||||
|
@ -1,162 +0,0 @@
|
||||
# Copyright 1999-2005 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id: xim.eselect 40 2007-11-01 02:23:09Z scsi $
|
||||
|
||||
DESCRIPTION="Manage Input Method of X"
|
||||
MAINTAINER="scsichen@gmail.com"
|
||||
SVN_DATE='$Date: 2007-11-01 10:23:09 +0800 (Thu, 01 Nov 2007) $'
|
||||
VERSION=$(svn_date_to_version "${SVN_DATE}" )
|
||||
|
||||
user_xim="${HOME}/.gentoo/eselect-xim/current-user-xim"
|
||||
system_xim="/etc/eselect-xim/current-system-xim"
|
||||
XIMDIR=/usr/share/eselect-xim/xim.d
|
||||
TARGETS=( $( ls $XIMDIR ) )
|
||||
|
||||
if [ -z "${UID}" ] ; then
|
||||
# id lives in /usr/bin which might not be mounted
|
||||
if type id >/dev/null 2>/dev/null ; then
|
||||
user_id=$(id -u)
|
||||
else
|
||||
[ "${USER}" = "root" ] && user_id=0
|
||||
fi
|
||||
else
|
||||
user_id=${UID}
|
||||
fi
|
||||
|
||||
[ "$user_id" -eq 0 ] && CURRENTLINK=$system_xim || CURRENTLINK=$user_xim
|
||||
|
||||
[ -d $(dirname $CURRENTLINK) ] || mkdir -p $(dirname $CURRENTLINK)
|
||||
|
||||
describe_set() {
|
||||
echo "set input method"
|
||||
}
|
||||
|
||||
describe_set_parameters() {
|
||||
echo "<Input Method Name>"
|
||||
}
|
||||
|
||||
#describe_set_options() {
|
||||
# echo "options"
|
||||
#}
|
||||
|
||||
do_set()
|
||||
{
|
||||
[ $# -eq 1 ] || { do_help; return; }
|
||||
local target
|
||||
if echo $1|grep -e "^[0-9]\+$" >/dev/null 2>&1
|
||||
then
|
||||
target=${TARGETS[(${1} - 1)]}
|
||||
else
|
||||
local i
|
||||
for (( i = 0 ; i < ${#TARGETS[@]} ; i = i + 1 ))
|
||||
do
|
||||
[ "${TARGETS[${i}]}" = "${1}" ] && target=${TARGETS[${i}]}
|
||||
done
|
||||
fi
|
||||
#write_warning_msg "${target}"
|
||||
[ -z "${target}" ] && { write_error_msg "Input Method \"$1\" is not available";echo; do_list; return; }
|
||||
[ -f $XIMDIR/$target ] || die "$target not found"
|
||||
[ -L ${CURRENTLINK} ] && rm -f ${CURRENTLINK} 1>/dev/null 2>&1
|
||||
ln -s $XIMDIR/$target ${CURRENTLINK} || die "make link ${CURRENTLINK} error"
|
||||
if [ ${user_id} -eq 0 ]
|
||||
then
|
||||
write_kv_list_entry "set system xim to ${target}" ""
|
||||
else
|
||||
write_kv_list_entry "set user xim to ${target}" ""
|
||||
fi
|
||||
}
|
||||
|
||||
describe_unset()
|
||||
{
|
||||
echo "remove input method setting"
|
||||
}
|
||||
|
||||
do_unset()
|
||||
{
|
||||
if [ -L ${CURRENTLINK} ]
|
||||
then
|
||||
rm -f ${CURRENTLINK} 1>/dev/null 2>&1
|
||||
write_kv_list_entry "unset input method success." ""
|
||||
else
|
||||
write_kv_list_entry "nothing to unset" ""
|
||||
fi
|
||||
}
|
||||
describe_list()
|
||||
{
|
||||
echo "list available input method"
|
||||
}
|
||||
|
||||
currentset()
|
||||
{
|
||||
[ -f ${CURRENTLINK} ] || return
|
||||
basename $(canonicalise ${CURRENTLINK})
|
||||
}
|
||||
|
||||
currentsystemset()
|
||||
{
|
||||
[ -f ${system_xim} ] || return
|
||||
basename $(canonicalise ${system_xim})
|
||||
}
|
||||
|
||||
do_list()
|
||||
{
|
||||
local i targets
|
||||
|
||||
write_list_start "Available Input Method:"
|
||||
if [[ -n ${TARGETS[@]} ]] ; then
|
||||
for (( i = 0 ; i < ${#TARGETS[@]} ; i = i + 1 ))
|
||||
do
|
||||
if [ "${TARGETS[${i}]}" = "$(currentset)" -a "${TARGETS[${i}]}" = "$(currentsystemset)" ]
|
||||
then
|
||||
if [ "$user_id" -eq 0 ]
|
||||
then
|
||||
targets[${i}]="$(highlight '*') ${TARGETS[${i}]} [system]"
|
||||
else
|
||||
targets[${i}]="$(highlight '*') ${TARGETS[${i}]} [system/user]"
|
||||
fi
|
||||
elif [ "${TARGETS[${i}]}" = "$(currentset)" ]
|
||||
then
|
||||
targets[${i}]="$(highlight '*') ${TARGETS[${i}]} [user]"
|
||||
elif [ "${TARGETS[${i}]}" = "$(currentsystemset)" ]
|
||||
then
|
||||
if [ -z "$(currentset)" ]
|
||||
then
|
||||
targets[${i}]="$(highlight '*') ${TARGETS[${i}]} [system]"
|
||||
else
|
||||
targets[${i}]=" ${TARGETS[${i}]} [system]"
|
||||
fi
|
||||
else
|
||||
targets[${i}]=" ${TARGETS[${i}]}"
|
||||
fi
|
||||
done
|
||||
write_numbered_list "${targets[@]}"
|
||||
else
|
||||
write_kv_list_entry "(none found)" ""
|
||||
fi
|
||||
}
|
||||
|
||||
describe_show()
|
||||
{
|
||||
echo "show current input method"
|
||||
}
|
||||
|
||||
do_show()
|
||||
{
|
||||
write_list_start "Current Input Method:"
|
||||
if [ -n "$(currentset)" ]
|
||||
then
|
||||
if [ ${user_id} -eq 0 ]
|
||||
then
|
||||
write_kv_list_entry "$(currentset) [system]"
|
||||
else
|
||||
write_kv_list_entry "$(currentset) [user]"
|
||||
fi
|
||||
elif [ -n "$(currentsystemset)" ]
|
||||
then
|
||||
write_kv_list_entry "$(currentsystemset) [system]"
|
||||
else
|
||||
write_kv_list_entry "(none found)"
|
||||
fi
|
||||
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>mantainer-wanted</herd>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user