#games-fps/doomsday-stable_version_here # $Header: $ EAPI=5 PYTHON_COMPAT=( python2_7 ) inherit python-r1 eutils cmake-utils games DESCRIPTION="A modern gaming engine for Doom, Heretic, and Hexen" HOMEPAGE="http://www.dengine.net" SRC_URI="https://downloads.sourceforge.net/project/deng/Doomsday%20Engine/${PV}/${P}.tar.gz" LICENSE="GPL-3+ LGPL-3+" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="fluidsynth openal +doom demo freedoom heretic hexen tools fmod" REQUIRED_USE="${PYTHON_REQUIRED_USE} demo? ( doom ) freedoom? ( doom ) " RDEPEND=" dev-qt/qtnetwork:5 dev-qt/qtopengl:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 dev-qt/qtgui:5[-gles2] dev-qt/qtcore:5 net-misc/curl sys-libs/zlib media-libs/assimp media-libs/libsdl2[joystick,sound] media-libs/sdl2-mixer media-libs/libpng:0 virtual/opengl virtual/glu fmod? ( media-sound/fmod ) fluidsynth? ( media-sound/fluidsynth ) openal? ( media-libs/openal ) tools? ( sys-libs/ncurses:0 )" DEPEND="${RDEPEND}" DEPEND="${DEPEND} ${PYTHON_DEPS} virtual/pkgconfig" PDEPEND=" demo? ( games-fps/doom-data ) freedoom? ( games-fps/freedoom ) " BUILD_DIR="${WORKDIR}/build" src_configure() { # general configuration if [ "$(uname -m)" == "x86_64" ]; then QMAKE_PATH="/usr/lib64/qt5/bin/qmake" else QMAKE_PATH="/usr/lib/qt5/bin/qmake" fi local mycmakeargs=( -DQMAKE=/usr/lib64/qt5/bin/qmake -DPYTHON_EXECUTABLE=/usr/bin/python2.7 ) CMAKE_USE_DIR="${WORKDIR}/${P}/doomsday" cmake-utils_src_configure } src_compile() { cd ${BUILD_DIR} emake } src_install() { cd ${BUILD_DIR} emake DESTDIR="${D}" install prepgamesdirs } pkg_postinst() { games_pkg_postinst elog "You need to copy Doom, Doom 2, Chex Quest, Heretic, Hexen, HexenDD," elog "and Doom64 wads to a folder of your choice. Then configure in game" elog "engine where that folder is. This is different than old versions," elog " which had centralized launchers for each game, and required the" elog "files to be in a specific place" elog elog "Might I suggest putting all wads in /usr/share/games/doom-data, so they" elog "are accessible by users who have access to the games group. If you" elog "do that make sure you don't forget to set the proper permissions on" elog "both the wad files, and the folder." }