# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=7 PYTHON_COMPAT=( python3_{5,6,7} ) inherit python-single-r1 autotools DESCRIPTION="A free, fast, portable and uncomplicated API for roguelike developers." HOMEPAGE="http://roguecentral.org/doryen/libtcod/" SRC_URI="https://github.com/libtcod/libtcod/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="python" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND="python? ( ${PYTHON_DEPS} ) media-libs/libsdl2 media-libs/libpng sys-libs/zlib" DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}/${P}-fix-makefile.patch" "${FILESDIR}/${P}-fix-configure.patch" ) S="${S}/buildsys/autotools/" src_prepare() { default eautoreconf } src_configure() { econf } src_compile() { emake } src_install() { emake "DESTDIR=${D}" install dodoc -r ../../docs insinto ${ROOT}/usr/share/libtcod/ doins -r ../../data ../../terminal.png } pkg_postinst() { elog "Additional files have been installed to /usr/share/libtcod/" }