# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils toolchain-funcs DESCRIPTION="Simple and Fast yet anothor SKK server." HOMEPAGE="http://umiushi.org/~wac/yaskkserv/" SRC_URI="http://umiushi.org/~wac/yaskkserv/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND="app-i18n/skk-jisyo" DEPEND="${DEPEND} dev-lang/perl" src_configure() { epatch "${FILESDIR}/${PN}-0.5.2-fix-Makefile-flags.patch" ./configure -gplusplus="$(tc-getCXX)" || die } src_compile() { emake || die ./var/bsd_cygwin_linux_gcc/release/yaskkserv_make_dictionary/yaskkserv_make_dictionary /usr/share/skk/SKK-JISYO.L ./SKK-JISYO.L.yaskkserv } src_install() { dosbin var/bsd_cygwin_linux_gcc/release/yaskkserv_make_dictionary/yaskkserv_make_dictionary dosbin var/bsd_cygwin_linux_gcc/release/yaskkserv_normal/yaskkserv_normal dosbin var/bsd_cygwin_linux_gcc/release/yaskkserv_simple/yaskkserv_simple dosbin var/bsd_cygwin_linux_gcc/release/yaskkserv_hairy/yaskkserv_hairy doinitd "${FILESDIR}"/initd/yaskkserv || die doconfd "${FILESDIR}"/conf.d/yaskkserv || die dodir /usr/share/skk insinto /usr/share/skk doins SKK-JISYO.L.yaskkserv }