|
|
发表于 2006-8-9 21:17:44
|
显示全部楼层
楼主的ebuild在我这里运行会出错。我修改了下。
1. 修改下载链接,用sourceforge的镜像
2. 不再依赖 x11
3. 添加 pkg_postinst()
4. src_compile() emake 会出错,改为 make
- # Copyright 1999-2006 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- # $Header: /var/cvsroot/gentoo-x86/app-i18n/scim-fcitx/scim-fcitx-3.1.1.ebuild,v 1.1 2006/08/06 16:10:06 matsuu Exp $
- DESCRIPTION="Smart Common Input Method (SCIM) Smart Pinyin Input Method"
- HOMEPAGE="http://www.scim-im.org/downloads/imengines_download"
- SRC_URI="mirror://sourceforge/scim/${PN}.${PV}.tar.bz2"
- LICENSE="GPL-2"
- SLOT="0"
- KEYWORDS="~amd64 ~ppc ~x86"
- IUSE=""
- DEPEND="|| ( >=app-i18n/scim-1.2 >=app-i18n/scim-cvs-1.2 )"
- S=${WORKDIR}/fcitx
- src_compile() {
- econf || die "econf failed"
- make || die "make failed"
- }
- src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
- dodoc AUTHORS THANKS README
- }
- pkg_postinst() {
- einfo
- einfo "To use SCIM, you should use the following in your user startup scripts"
- einfo "such as .gnomerc or .xinitrc:"
- einfo
- einfo "LANG='your_language' scim -d"
- einfo "export XMODIFIERS=@im=SCIM"
- einfo "export GTK_IM_MODULE=scim"
- einfo "export QT_IM_MODULE=scim"
- einfo
- }
复制代码 |
|