From cc94c1ccdb5805a994ba097ea6acf31a0d4d4f3d Mon Sep 17 00:00:00 2001 From: Vadim Misbakh-Soloviov Date: Mon, 15 Jan 2024 23:51:37 +0700 Subject: games-strategy/vcmi: Bump Closes: https://bugs.gentoo.org/905707 Signed-off-by: Vadim Misbakh-Soloviov --- games-strategy/vcmi/Manifest | 2 +- games-strategy/vcmi/metadata.xml | 14 +++-- games-strategy/vcmi/vcmi-1.2.0.ebuild | 98 --------------------------------- games-strategy/vcmi/vcmi-1.4.2.ebuild | 101 ++++++++++++++++++++++++++++++++++ 4 files changed, 112 insertions(+), 103 deletions(-) delete mode 100644 games-strategy/vcmi/vcmi-1.2.0.ebuild create mode 100644 games-strategy/vcmi/vcmi-1.4.2.ebuild diff --git a/games-strategy/vcmi/Manifest b/games-strategy/vcmi/Manifest index 46aa551..d030cd8 100644 --- a/games-strategy/vcmi/Manifest +++ b/games-strategy/vcmi/Manifest @@ -1 +1 @@ -DIST vcmi-1.2.0.tar.gz 7143423 BLAKE2B 1a79d38de7947e4c0e539977c336a43e204ae282a9a3ca784844c92148fef072e6829269be77caffa8d3b6787d1f07f7e48f0d5b6335744d51bf2581d20becb6 SHA512 5d72db1584cf963b4c09675f81a817fae16e70e3766309593b7ad95c471cadeaa247463d2ecba7ac671775b908f511cc8598a190a9af848e07d1224209a7e77d +DIST vcmi-1.4.2.tar.gz 9664335 BLAKE2B 7010c0b9e229280ff9d6ebc4aa6fcf48886b3014070aadef9b10eafceeceff9b9c7fbc0312f227bb213a5aba385a94cba878e48686e4989ec17552f1fa6fbb5b SHA512 77f9caf1055cae0baee7d2b28a5b893daf569f87a0652acf31bb6294b468d5552cfccf2e3f704954a7bd56909923fbf891c7d3d3d102f2bb008d2fa203de09ea diff --git a/games-strategy/vcmi/metadata.xml b/games-strategy/vcmi/metadata.xml index 0fbb816..a946854 100644 --- a/games-strategy/vcmi/metadata.xml +++ b/games-strategy/vcmi/metadata.xml @@ -1,8 +1,14 @@ - -Enable compilation of ERM scripting module -Enable launcer support - + + Enable compilation of ERM scripting module + Enable launcer support + Enable editor support + Enable NulKIller AI + Install translations + + + vcmi/vcmi + diff --git a/games-strategy/vcmi/vcmi-1.2.0.ebuild b/games-strategy/vcmi/vcmi-1.2.0.ebuild deleted file mode 100644 index aa35155..0000000 --- a/games-strategy/vcmi/vcmi-1.2.0.ebuild +++ /dev/null @@ -1,98 +0,0 @@ -# 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" -} diff --git a/games-strategy/vcmi/vcmi-1.4.2.ebuild b/games-strategy/vcmi/vcmi-1.4.2.ebuild new file mode 100644 index 0000000..06a7390 --- /dev/null +++ b/games-strategy/vcmi/vcmi-1.4.2.ebuild @@ -0,0 +1,101 @@ +# 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 crazy and needs patches) + +inherit cmake lua-single + +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 + -DFORCE_BUNDLED_FL=OFF + -DFORCE_BUNDLED_MINIZIP=OFF + -DENABLE_GITVERSION=OFF + -DBoost_NO_BOOST_CMAKE=ON + ) + export CCACHE_SLOPPINESS="time_macros" + cmake_src_configure +} + +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" +} -- cgit v1.2.3-65-gdbad