# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit confutils distutils DESCRIPTION="The Ren'Py Visual Novel Engine" HOMEPAGE="http://www.renpy.org" SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2" LICENSE="MIT" SLOT="0" KEYWORDS="~x86" IUSE="+demo +development doc" DEPEND="virtual/python media-libs/libpng media-libs/libsdl media-libs/freetype:2 media-video/ffmpeg dev-libs/fribidi dev-python/pygame" RDEPEND="${DEPEND}" pkg_setup() { confutils_use_depend_any demo development } src_prepare() { find renpy -iname '*.pyo' -delete } src_compile() { cd module RENPY_DEPS_INSTALL=/usr distutils_src_compile } src_install() { if use demo; then insinto /usr/share/games/${PN}/demo doins tutorial/README.html doins -r tutorial/game insinto /usr/share/games/${PN}/the_question doins -r the_question fi if use development; then dodoc CHANGELOG.txt LICENSE.txt insinto /usr/share/games/${PN} doins renpy.py doins -r common launcher renpy template fi use doc && dohtml -r doc cd module RENPY_DEPS_INSTALL=/usr distutils_src_install }