# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ LANGS="bg br cy da el es et fr ga it ja lt nl pt rw sr sr@Latn sv tr" inherit kde HOMEPAGE="http://www.kde-apps.org/content/show.php?content=26195" SRC_URI="http://www.xs4all.nl/~schoenb/kboggle/kboggle-${PV}.tar.bz2" DESCRIPTION="A boggle game for KDE, using the words from your spell checker." LICENSE="GPL-2" KEYWORDS="~x86" SLOT="1" IUSE="" need-kde 3.4 pkg_setup() { kde_pkg_setup if ! built_with_use kde-base/kdelibs spell; then ewarn "kde-base/kdelibs was not compiled with the \"spell\" use flag." ewarn "This is highly recommended so that KBoggle can check the words entered during the game." fi } src_unpack() { kde_src_unpack strip-linguas ${LANGS} if [[ ${LINGUAS} != "" ]]; then LANGPO="" for I in ${LINGUAS}; do LANGPO="${LANGPO} ${I}.po" done sed -i -e "s/^POFILES =.*/POFILES =${LANGPO}/" "${S}/po/Makefile.am" || die "sed for locale failed" rm -f "${KDE_S}/configure" fi }