commit: 42df82ea28769ab387fe1769a43191e2dbbcc3d2 Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name> AuthorDate: Mon May 4 17:35:10 2015 +0000 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name> CommitDate: Mon May 4 17:35:10 2015 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=42df82ea
[games-strategy/vcmi] added 9999 games-strategy/vcmi/vcmi-9999.ebuild | 81 ++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/games-strategy/vcmi/vcmi-9999.ebuild b/games-strategy/vcmi/vcmi-9999.ebuild new file mode 100644 index 0000000..ce5f4b0 --- /dev/null +++ b/games-strategy/vcmi/vcmi-9999.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils games cmake-utils git-r3 + +DESCRIPTION="Heroes of Might and Magic III game engine rewrite" +HOMEPAGE="http://forum.vcmi.eu/index.php" +SRC_URI="" +EGIT_REPO_URI="https://github.com/${PN}/${PN}" +EGIT_BRANCH="develop" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="debug editor launcher +erm" + +CDEPEND=" + media-libs/libsdl2[video] + media-libs/sdl2-image + media-libs/sdl2-mixer + media-libs/sdl2-ttf + virtual/ffmpeg + sys-libs/zlib[minizip] + editor? ( + dev-qt/qtgui + dev-qt/qtcore + dev-qt/qtwidgets + ) + launcher? ( + dev-qt/qtgui + dev-qt/qtcore + dev-qt/qtnetwork + dev-qt/qtwidgets + ) + dev-libs/fuzzylite +" + +DEPEND=" + >dev-libs/boost-1.48.0 + virtual/pkgconfig + ${CDEPEND} +" +RDEPEND=" + ${CDEPEND} +" +PDEPEND=" + games-strategy/vcmi-data +" + +src_configure() { + local MY_DATADIR="${GAMES_DATADIR#/usr/}/${PN}" + local MY_GAMESLIBDIR=$(games_get_libdir) + local MY_LIBDIR=${MY_GAMESLIBDIR#/usr/} + local MY_BINDIR=${GAMES_BINDIR#/usr/} + + use editor && ewarn "Editor seems to be broken. At least, it fails to build for me" + use debug || ewarn "Somewhy, buildsystem don't want to use cotire (compile time reducer) generated pch (precompiled header) with disabled debug, so, you will see the warnings on each target." + + local mycmakeargs=( + -DDATA_DIR="${MY_DATADIR}" + -DLIB_DIR="${MY_LIBDIR}" + -DBIN_DIR="${MY_BINDIR}" + $(cmake-utils_use_enable erm ERM) + $(cmake-utils_use_enable editor EDITOR) + $(cmake-utils_use_enable launcher LAUNCHER) + ) + export CCACHE_SLOPPINESS="time_macros" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst +}
