From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9E68C138CC5 for ; Mon, 4 May 2015 16:51:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BBFA5E090B; Mon, 4 May 2015 16:51:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 522E5E090B for ; Mon, 4 May 2015 16:51:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BAFEE340A51 for ; Mon, 4 May 2015 16:51:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4C20E722 for ; Mon, 4 May 2015 16:51:21 +0000 (UTC) From: "Vadim A. Misbakh-Soloviov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vadim A. Misbakh-Soloviov" Message-ID: <1430758232.cf86e98add5342a50115265f8c2865e70cf175e9.mva@gentoo> Subject: [gentoo-commits] proj/gamerlay:master commit in: games-strategy/vcmi/, games-strategy/vcmi-data/ X-VCS-Repository: proj/gamerlay X-VCS-Files: games-strategy/vcmi-data/vcmi-data-0.90.ebuild games-strategy/vcmi/vcmi-0.98.ebuild X-VCS-Directories: games-strategy/vcmi/ games-strategy/vcmi-data/ X-VCS-Committer: mva X-VCS-Committer-Name: Vadim A. Misbakh-Soloviov X-VCS-Revision: cf86e98add5342a50115265f8c2865e70cf175e9 X-VCS-Branch: master Date: Mon, 4 May 2015 16:51:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ad1d0cd2-c7eb-41bd-826c-50bee16efa1c X-Archives-Hash: dbdea913ba77b3684e49ec4e680282bb commit: cf86e98add5342a50115265f8c2865e70cf175e9 Author: Vadim A. Misbakh-Soloviov mva name> AuthorDate: Mon May 4 16:50:32 2015 +0000 Commit: Vadim A. Misbakh-Soloviov mva name> CommitDate: Mon May 4 16:50:32 2015 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=cf86e98a [games-strategy/vcmi{,-data}] Added games-strategy/vcmi-data/vcmi-data-0.90.ebuild | 45 +++++++++++++++ games-strategy/vcmi/vcmi-0.98.ebuild | 79 ++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) diff --git a/games-strategy/vcmi-data/vcmi-data-0.90.ebuild b/games-strategy/vcmi-data/vcmi-data-0.90.ebuild new file mode 100644 index 0000000..b66c6d3 --- /dev/null +++ b/games-strategy/vcmi-data/vcmi-data-0.90.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit games + +DESCRIPTION="Core data for vcmi" +HOMEPAGE="http://forum.vcmi.eu/index.php" +MY_P="core" +SRC_URI=" + http://download.vcmi.eu/core.zip + http://download.vcmi.eu/WoG/wog.zip +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="" + +S="${WORKDIR}" + +src_install() { + insinto "${GAMES_DATADIR}/${PN%-data}" + rm -rf Mods/vcmi/Data/s + doins -r * +} + +pkg_postinst() { + elog "For the game to work properly, please copy your" + elog 'Heroes Of Might and Magic ("The Wake Of Gods" or' + elog '"Shadow of Death" or "Complete edition")' + elog "game directory into ${GAMES_DATADIR}/${PN}." + elog "or use 'vcmibuilder' utility on your:" + elog " a) One or two CD's or CD images" + elog " b) gog.com installer" + elog " c) Directory with installed game" + elog "(although installing it in such way is 'bad practices')." + elog "For more information, please visit:" + elog "http://wiki.vcmi.eu/index.php?title=Installation_on_Linux" +} diff --git a/games-strategy/vcmi/vcmi-0.98.ebuild b/games-strategy/vcmi/vcmi-0.98.ebuild new file mode 100644 index 0000000..80ff809 --- /dev/null +++ b/games-strategy/vcmi/vcmi-0.98.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils games cmake-utils + +DESCRIPTION="Heroes of Might and Magic III game engine rewrite" +HOMEPAGE="http://forum.vcmi.eu/index.php" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +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 +}