# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" USE_RUBY="ruby18" inherit kde4-base git ruby-ng DESCRIPTION="Board game suite for KDE" HOMEPAGE="http://pcapriotti.github.com/kaya/" EGIT_REPO_URI="git://github.com/pcapriotti/kaya.git" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="" DEPEND="kde-base/kdebindings-ruby[ruby_targets_ruby18]" RDEPEND="${DEPEND}" pkg_setup() { ruby-ng_pkg_setup kde4-base_pkg_setup } src_unpack() { git_src_unpack cd "${WORKDIR}" mkdir all mv ${P} all/ || die "Could not move sources" } all_ruby_prepare() { kde4-base_src_prepare } each_ruby_configure() { CMAKE_USE_DIR=${S} mycmakeargs=( -DRUBY_LIBRARY=$(ruby_get_libruby) -DRUBY_INCLUDE_PATH=$(ruby_get_hdrdir) -DRUBY_EXECUTABLE=${RUBY} ) kde4-base_src_configure } each_ruby_compile() { CMAKE_USE_DIR=${S} kde4-base_src_compile } each_ruby_install() { CMAKE_USE_DIR=${S} kde4-base_src_install }