# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" PYTHON_COMPAT=( python2_7 ) inherit python-single-r1 DESCRIPTION="A free, fast, portable and uncomplicated API for roguelike developers." HOMEPAGE="http://roguecentral.org/doryen/libtcod/" SRC_URI="amd64? ( http://doryen.eptalys.net/wp-content/plugins/downloads-manager/upload/libtcod-1.5.1-linux64.tar.gz ) x86? ( http://doryen.eptalys.net/wp-content/plugins/downloads-manager/upload/libtcod-1.5.1-linux.tar.gz )" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="python" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND="python? ( ${PYTHON_DEPS} ) media-libs/libsdl =media-libs/libpng-1.2.52 sys-libs/zlib" DEPEND="${RDEPEND} app-arch/upx-ucl" src_prepare() { sed -i s'/\.\/libtcod\.so/libtcod\.so/' libtcodpy.py } src_install() { if use amd64; then emake -f makefiles/makefile-linux64 clean release -j1 elif use x86; then emake -f makefiles/makefile-linux clean release -j1 fi dolib.so libtcod.so libtcodgui.so libtcodxx.so doheader -r include dodoc -r doc insinto ${ROOT}/usr/share/libtcod/ doins -r data terminal.png if use python; then python_domodule libtcodpy.py fi } pkg_postinst() { elog "Additional files have been installed to /usr/share/libtcod/" }