diff options
Diffstat (limited to 'kde-misc/kaya/kaya-0.2.ebuild')
-rw-r--r-- | kde-misc/kaya/kaya-0.2.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/kde-misc/kaya/kaya-0.2.ebuild b/kde-misc/kaya/kaya-0.2.ebuild new file mode 100644 index 000000000..54222bd07 --- /dev/null +++ b/kde-misc/kaya/kaya-0.2.ebuild @@ -0,0 +1,65 @@ +# 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 ruby-ng + +DESCRIPTION="Board game suite for KDE" +HOMEPAGE="http://pcapriotti.github.com/kaya/" +SRC_URI="http://cloud.github.com/downloads/pcapriotti/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="" +ruby_add_rdepend "kde-base/kdebindings-ruby" +DEPEND="${RDEPEND}" + +pkg_setup() { + ruby-ng_pkg_setup + kde4-base_pkg_setup +} + +src_unpack() { + kde4-base_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 +} + +pkg_postinst() { + elog "To be able to use the kaya board game front-end, you need to install at least one" + elog "of the following game engines: " + elog " games-board/gnuchess" + elog " games-board/gnushogi" +} |