okram n00b
Joined: 06 Aug 2002 Posts: 74 Location: Taipei, Taiwan
|
Posted: Fri Aug 16, 2002 6:54 am Post subject: xcin with libtabe support: ebuild woes |
|
|
Recently, I tried to get xcin (Chinese input server) working with the bimsphone module enabled. The current gentoo ebuild disables it and one more or less has to jump through hoops to get it working. Bimsphone provides for intelligent character identification which automatically selects the most likely characters based on context. If it works well, it seriously speeds up inputting of Chinese characters.
The first problem is that the released versions of xcin (http://xcin.linux.org.tw) all depend on Berkeley db version 2. I utterly failed to make this compile under gentoo in any meaningful way.
However, the latest pre-release of xcin (2.5.3.pre2) uses the latest pre-release of libtabe (0.2.5) which also works with Berkeley db version 3, which is available as an ebuild for gentoo.
I wrote a basic ebuild for libtabe, which I include here:
Code: |
# Copyright 2002 Marko Daniel
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/yo/cvsroot/gentoo-ebuilds/libtabe-0.2.5.ebuild,v 1.1 2002/08/15 11:25:43 yo Exp $
DESCRIPTION="Libtabe provides bimsphone support for xcin-2.5+"
HOMEPAGE="http://xcin.linux.org.tw/libtabe/index.html"
SRC_URI="ftp://xcin.linux.org.tw/pub/xcin/libtabe/devel/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86"
DEPEND="=sys-libs/db-3*"
S="${WORKDIR}/${PN}"
src_compile() {
./configure \
--host=${CHOST} \
--infodir=/usr/share/info \
--prefix=/usr \
--with-dbinc=/usr/include/db3 \
--with-dblib=/usr/lib \
--mandir=/usr/share/man || die "./configure failed"
# MD: libtabe fails to compile with emake
make || die
}
src_install () {
make \
prefix=${D}/usr \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
install || die
}
|
I then proceeded to installing xcin-2.5.3.pre2. Manual installation works without hitch, including use of the high-quality arphic truetype fonts.
However, my attempt at making an ebuild failed as I cannot get "make install" to install in the sandbox. I think it is because of the recursive Makefiles in xcin and would be extremely grateful if anyone could suggest a solution. The Makefile in each subdirectory includes the top directory's Rules file which reference installation paths that override the command line arguments given to make install. How can I solve this?
Here is the current draft of my xcin-2.5.3.2_pre.ebuild:
Code: |
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Updated by Marko Daniel to include bimsphone support.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/yo/cvsroot/gentoo-ebuilds/xcin-2.5.3.2_pre.ebuild,v 1.1 2002/08/15 11:25:37 yo Exp $
DESCRIPTION="Chinese X Input Method"
HOMEPAGE="http://xcin.linux.org.tw/"
SRC_URI="ftp://xcin.linux.org.tw/pub/xcin/xcin/devel/xcin-2.5.3.pre2.tar.gz"
LICENSE="XCIN"
SLOT="0"
KEYWORDS="x86"
DEPEND="nls? ( sys-devel/gettext ) >=libtabe-0.2.5"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}
src_unpack () {
unpack ${A}
}
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--with-dbinc=/usr/include/db3 \
--with-dblib=/usr/lib \
--with-xcin-rcdir=/etc \
--mandir=/usr/share/man || die "./configure failed"
make || die
}
src_install () {
make \
prefix=${D}/usr \
xcin_rcp=${D}/etc \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
install || die
# Again, verify the Makefiles! We don't want anything falling
# outside of ${D}.
}
|
|
|