EAPI=8 inherit cmake git-r3 alternatives desktop DESCRIPTION="3D racing game with Sci-Fi elements and own Track Editor. The main repository with sources and data. Using Ogre-Next 3.0 and VDrift." HOMEPAGE="https://cryham.org/stuntrally/" EGIT_REPO_URI="https://github.com/stuntrally/stuntrally3.git" EGIT_MIN_CLONE_TYPE=shallow LICENSE="GPL-3" SLOT="0" IUSE="" #RESTRICT="strip" RDEPEND=" dev-games/ogre-next dev-games/mygui-next sci-physics/bullet[extras] dev-libs/tinyxml2 net-libs/enet media-libs/libogg media-libs/libvorbis media-libs/openal dev-libs/boost " #DEPEND="${RDEPEND}" #BDEPEND="virtual/pkgconfig" PATCHES=( ${FILESDIR}/0001-Gentoo-cmake-fix.patch ${FILESDIR}/0002-More-Gentoo-cmake-fixes.patch ) src_unpack() { git-r3_src_unpack mkdir -v ${WORKDIR}/${P}/data/tracks || die git-r3_fetch "https://github.com/stuntrally/tracks3.git" git-r3_checkout "https://github.com/stuntrally/tracks3.git" ${WORKDIR}/${P}/data/tracks } #src_prepare() {} src_configure() { local mycmakeargs=( -DOGRE_ENABLE_PRECOMPILED_HEADERS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_MODULE_PATH=/usr/lib64/OGRE/cmake ) cmake_src_configure } #src_compile() {} src_install() { into /usr/share/sr3 insinto /usr/share/sr3 insopts -m777 doins bin/RelWithDebInfo/stuntrally3 doins bin/RelWithDebInfo/sr-translator doins bin/RelWithDebInfo/sr-editor3 doins bin/RelWithDebInfo/plugins.cfg doins -r data doins -r config into /usr dodir /usr/bin cp -v ${FILESDIR}/stuntrally3.sh ${D}"/usr/bin/stuntrally3" # the binary is dumb... dodir /usr/lib64/OGRE for i in /usr/lib64/OGRE/*.so.* do b=$(basename "$i") ln -sv "$i" "${D}/usr/share/sr3/${b%.*}.0" done ln -sv /usr/share/sr3/sr-translator ${D}"/usr/bin/sr-translator" ln -sv /usr/share/sr3/sr-editor3 ${D}"/usr/bin/sr-editor3" make_desktop_entry /usr/bin/stuntrally3 }