# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit cmake desktop CMAKE_IN_SOURCE_BUILD=1 MY_PN="OpenDungeons" DESCRIPTION="An open source, real time strategy game based on the Dungeon Keeper series" HOMEPAGE="http://opendungeons.github.io/" if [[ "${PV}" == 9999 ]] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/OpenDungeons/OpenDungeons.git" else #SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${P}.tar.xz" KEYWORDS="~amd64 ~x86" #S="${WORKDIR}/${MY_PN}-${PV}" fi LICENSE="GPL-3 CC-BY-SA-3.0" SLOT="0" IUSE="" RDEPEND=">=dev-games/cegui-0.8.0[ogre,opengl] >=dev-games/ogre-1.9.0:=[freeimage,ois,opengl] dev-games/ois dev-libs/boost:= media-libs/freetype:2 media-libs/glew:= >=media-libs/libsfml-2:= media-libs/libsndfile media-libs/openal virtual/jpeg virtual/opengl" DEPEND="${RDEPEND}" BDEPEND=" virtual/pkgconfig" PATCHES=( "${FILESDIR}/${PN}-metainfo.patch" ) src_prepare() { sed \ -e '/-Werror/d' \ -i CMakeLists.txt || die cmake_src_prepare } src_configure() { local mycmakeargs=( -DOD_DATA_PATH="${EPREFIX}/usr/share/${MY_PN}" -DOD_BIN_PATH="${EPREFIX}/usr/bin" -DOD_SHARE_PATH="${EPREFIX}/usr/share" ) cmake_src_configure } src_install() { cmake_src_install mv "${ED}/usr/share/doc/${PN}" "${ED}/usr/share/doc/${PF}" || die doicon "${FILESDIR}"/${PN}.svg make_desktop_entry ${MY_PN} ${PN} ${PN} }