|
如题,gentoo-china里的好像也用不了,就自己写了一个,第一次写,高手指教一下
默认只安装五笔
ibus-table-chinese-1.3.0.20100527.ebuild- # Copyright 1999-2010 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- # $Header: $
- EAPI=3
- DESCRIPTION="IBus chinese"
- HOMEPAGE="http://code.google.com/p/ibus/"
- SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
- LICENSE="LGPL-3"
- SLOT="0"
- KEYWORDS="~x86 ~amd64"
- IUSE="+wubi86 cangjie3 cangjie5 cangjiebig cantonese cantonhk easybig erbi
- erbiqs jyutping quick3 quick5 quickclassic scj6 stroke5 wu xinhua yong zhengma
- zhuyin zhuyinbig ziranma"
- DEPEND=">=app-i18n/ibus-1.3
- >=app-i18n/ibus-table-1.2"
- RDEPEND="${DEPEND}"
- use_disable() {
- use $1 || echo "--disable-$1"
- }
- src_configure() {
- econf \
- $(use_disable wubi86) \
- $(use_disable cangjie3) \
- $(use_disable cangjie5 ) \
- $(use_disable cangjiebig ) \
- $(use_disable cantonese ) \
- $(use_disable cantonhk ) \
- $(use_disable easybig ) \
- $(use_disable erbi ) \
- $(use_disable erbiqs ) \
- $(use_disable jyutping ) \
- $(use_disable quick3 ) \
- $(use_disable quick5 ) \
- $(use_disable quickclassic ) \
- $(use_disable scj6 ) \
- $(use_disable stroke5 ) \
- $(use_disable wu ) \
- $(use_disable xinhua ) \
- $(use_disable yong ) \
- $(use_disable zhengma ) \
- $(use_disable zhuyin ) \
- $(use_disable zhuyinbig ) \
- $(use_disable ziranma ) || die
- }
- src_install() {
- emake DESTDIR="${D}" install || die
- }
复制代码 |
|