# Create by lloyd Huang (Huang YU HSIN) e-mail lloyd@coventive.com # Distributed under the terms of the GNU General Public License v2 XCIN="xcin-2.5.3.pre2.tar.gz" CHEWING="chewing-2002Jan07-snapshot.tar.gz" DESCRIPTION="Chinese X Input Method" HOMEPAGE="http://xcin.linux.org.tw/" SRC_URI="ftp://xcin.linux.org.tw/pub/xcin/xcin/devel/${XCIN} http://chewing.good-man.org/snapshot/${CHEWING}" LICENSE="XCIN" SLOT="0" KEYWORDS="x86" DEPEND="nls? ( sys-devel/gettext ) app-i18n/libtabe x11-misc/kcfonts" RDEPEND="${DEPEND}" S=${WORKDIR}/${PN} src_unpack () { unpack ${XCIN} cd ${S}/src/Cinput unpack ${CHEWING} cd chewing ./patch_chewing } src_compile() { ./configure \ --host=${CHOST} \ --prefix=/usr \ --with-xcin-rcdir=/etc \ --with-xcin-dir=/usr/lib/X11/xcin25 \ --with-db-lib=/usr/lib \ --with-tabe-inc=/usr/include/tabe \ --with-tabe-lib=/usr/lib || die "./configure failed" make || die } src_install () { make \ prefix=${D}/usr \ xcin_rcp=${D}/etc \ xcin_binp=${D}/usr/bin \ xcin_libp=${D}/usr/lib \ xcin_modp=${D}/usr/lib/X11/xcin25 \ mandir=${D}/usr/share/man \ install || die mkdir -p ${D}/etc cp ${FILESDIR}/xcinrc ${D}/etc # Again, verify the Makefiles! We don't want anything falling # outside of ${D}. }