# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=7 inherit cmake-utils git-r3 wrapper DESCRIPTION="Community-maintained Jedi Outcast, story version" HOMEPAGE="https://github.com/JACoders/OpenJK" LICENSE="GPL-2" SRC_URI="" EGIT_REPO_URI="https://github.com/JACoders/OpenJK.git" SLOT="0" KEYWORDS="" IUSE="test" DEPEND=" media-libs/libjpeg-turbo media-libs/libpng sys-libs/zlib virtual/opengl media-libs/libsdl2 test? ( dev-libs/boost ) " RDEPEND="${DEPEND}" src_configure() { local mycmakeargs=( -DCMAKE_INSTALL_PREFIX="/opt" -DBuildJK2SPEngine=ON -DBuildJK2SPGame=ON -DBuildJK2SPRdVanilla=ON -DBuildMPCGame=OFF -DBuildMPDed=OFF -DBuildMPEngine=OFF -DBuildMPGame=OFF -DBuildMPRdVanilla=OFF -DBuildMPUI=OFF -DBuildSPEngine=OFF -DBuildSPGame=OFF -DBuildSPRdVanilla=OFF -DBuildTests=$(usex test) ) cmake-utils_src_configure } GAMEDIR="/opt/JediOutcast" openjk_make_wrapper() { local binname="$1" local fullbinname=$( cd "${D}/${GAMEDIR}" && echo ${binname}.* ) make_wrapper "${binname}" "${GAMEDIR}/${fullbinname}" } src_install() { cmake-utils_src_install openjk_make_wrapper openjo_sp keepdir "${GAMEDIR}/base" cd "${ED}/opt" use test && mv UnitTests JediOutcast/UnitTests-SP } pkg_postinst() { einfo "Copy data files into ${GAMEDIR}/base" }