public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Vadim Misbakh-Soloviov" <mva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-strategy/vcmi/
Date: Sat, 15 Apr 2023 22:48:30 +0000 (UTC)	[thread overview]
Message-ID: <1681592480.82f18269e486ba1238d4a49d1e1c85b220ccaa7a.mva@gentoo> (raw)

commit:     82f18269e486ba1238d4a49d1e1c85b220ccaa7a
Author:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 15 21:01:20 2023 +0000
Commit:     Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
CommitDate: Sat Apr 15 21:01:20 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=82f18269

games-strategy/vcmi: bump

Signed-off-by: Vadim Misbakh-Soloviov <mva <AT> gentoo.org>

 games-strategy/vcmi/vcmi-0.99.ebuild  | 66 -----------------------
 games-strategy/vcmi/vcmi-1.2.0.ebuild | 98 +++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+), 66 deletions(-)

diff --git a/games-strategy/vcmi/vcmi-0.99.ebuild b/games-strategy/vcmi/vcmi-0.99.ebuild
deleted file mode 100644
index 0e8adba..0000000
--- a/games-strategy/vcmi/vcmi-0.99.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit eutils cmake flag-o-matic
-
-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="~amd64 ~x86"
-IUSE="+debug erm +launcher"
-
-CDEPEND="
-	media-libs/libsdl2[video]
-	media-libs/sdl2-image
-	media-libs/sdl2-mixer
-	media-libs/sdl2-ttf
-	media-video/ffmpeg
-	sys-libs/zlib[minizip]
-	launcher? (
-		dev-qt/qtgui
-		dev-qt/qtcore
-		dev-qt/qtnetwork
-		dev-qt/qtwidgets
-	)
-	dev-libs/fuzzylite
-"
-
-BDEPEND="
-	>dev-libs/boost-1.48.0
-	virtual/pkgconfig
-"
-DEPEND="
-	${BDEPEND}
-	${CDEPEND}
-"
-RDEPEND="
-	${CDEPEND}
-"
-PDEPEND="
-	games-strategy/vcmi-data
-"
-
-pkg_pretend() {
-	ewarn 'Looks like current this release is incompatible with modern boost and fails to compile.'
-	ewarn 'Please, report me in case if it will build fine for you'
-}
-
-src_configure() {
-	local mycmakeargs=(
-		-DENABLE_ERM=$(usex erm)
-		-DENABLE_LAUNCHER=$(usex launcher)
-		-DENABLE_PCH=$(usex debug)
-		# ^ cc1plus: warning: .../work/vcmi-0.99_build/lib/cotire/vcmi_CXX_prefix.hxx.gch: not used because `NDEBUG' is defined [-Winvalid-pch]
-		# (cmake-utils_src_configure somewhy defines -DNDEBUG in release build. I dunno why on the earth it's author did that)
-		-DENABLE_MONOLITHIC_INSTALL=OFF
-		# ^ or not?
-	)
-	export CCACHE_SLOPPINESS="time_macros"
-	cmake_src_configure
-	strip-cppflags -DNDEBUG
-}

diff --git a/games-strategy/vcmi/vcmi-1.2.0.ebuild b/games-strategy/vcmi/vcmi-1.2.0.ebuild
new file mode 100644
index 0000000..aa35155
--- /dev/null
+++ b/games-strategy/vcmi/vcmi-1.2.0.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=(luajit)
+# TODO: other targets (buildsystem is fucked and needs patches)
+
+inherit cmake lua-single flag-o-matic
+
+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="~amd64 ~x86"
+# TODO: other arches
+IUSE="+editor +debug +erm +launcher +lua +nullkiller-ai +translations"
+
+REQUIRED_USE="
+	erm? ( lua )
+	lua? ( ${LUA_REQUIRED_USE} )
+"
+
+CDEPEND="
+	media-libs/libsdl2[video]
+	media-libs/sdl2-image
+	media-libs/sdl2-mixer
+	media-libs/sdl2-ttf
+	media-video/ffmpeg
+	launcher? (
+		dev-qt/qtgui
+		dev-qt/qtcore
+		dev-qt/qtnetwork
+		dev-qt/qtwidgets
+		translations? ( dev-qt/linguist-tools )
+	)
+	editor? (
+		dev-qt/qtgui
+		dev-qt/qtcore
+		dev-qt/qtnetwork
+		dev-qt/qtwidgets
+		translations? ( dev-qt/linguist-tools )
+	)
+	dev-libs/fuzzylite
+	nullkiller-ai? ( dev-cpp/tbb )
+	sys-libs/zlib[minizip]
+"
+
+BDEPEND="
+	>dev-libs/boost-1.48.0
+	virtual/pkgconfig
+"
+DEPEND="
+	${BDEPEND}
+	${CDEPEND}
+"
+RDEPEND="
+	${CDEPEND}
+"
+# PDEPEND="
+# 	games-strategy/vcmi-data
+# "
+
+src_configure() {
+	local mycmakeargs=(
+		-DENABLE_ERM=$(usex erm)
+		-DENABLE_LUA=$(usex lua)
+		-DENABLE_LAUNCHER=$(usex launcher)
+		-DENABLE_EDITOR=$(usex editor)
+		-DENABLE_TRANSLATIONS=$(usex translations)
+		-DENABLE_PCH=$(usex !debug)
+		-DENABLE_NULLKILLER_AI=$(usex nullkiller-ai)
+
+		-DENABLE_MONOLITHIC_INSTALL=OFF
+	)
+	export CCACHE_SLOPPINESS="time_macros"
+	cmake_src_configure
+	strip-cppflags -DNDEBUG
+}
+
+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 /usr/share/${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"
+	elog ""
+	elog "Also, you may want to install VCMI Extras and Wake of Gods"
+	elog "mods from the launcher after you'll start the game"
+}


             reply	other threads:[~2023-04-15 22:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-15 22:48 Vadim Misbakh-Soloviov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-19  1:35 [gentoo-commits] proj/gamerlay:master commit in: games-strategy/vcmi/ Vadim Misbakh-Soloviov
2024-09-19  1:04 Vadim Misbakh-Soloviov
2024-01-15 16:59 Vadim Misbakh-Soloviov
2021-07-12 20:47 Azamat H. Hackimov
2020-03-04  0:08 Azamat H. Hackimov
2015-06-10  9:36 Vadim A. Misbakh-Soloviov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1681592480.82f18269e486ba1238d4a49d1e1c85b220ccaa7a.mva@gentoo \
    --to=mva@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox