We have our own version of vcmi now, because vortex is taking too long to fix their ebuild

This commit is contained in:
grepwood 2020-04-24 20:10:38 +02:00
parent 726e4d2a25
commit 585973bf80
7 changed files with 144 additions and 0 deletions

1
dev-libs/Manifest Normal file
View File

@ -0,0 +1 @@
DIST fuzzylite-6.0.tar.gz 2189181 BLAKE2B 14162c08d5f9bbc94739b575fbbe9dad3da73d30c479be02c474e18af7de78f5b200ae00e40977c9075445e252faa803521715c67049ad10fcaa907b847551cc SHA512 6f5d40d0359458e109ac2aebfbf571f61867a8b49920f4a5e1b5d86bdf578dba038b942c9e05eab0d4620f73e8cded770abe7b5e597a3b4c39dbcf6a1259f4af

View File

@ -0,0 +1,31 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils
DESCRIPTION="A fuzzy logic control library in C++"
HOMEPAGE="https://fuzzylite.com/"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="static"
RDEPEND="!!<games-strategy/vcmi-0.99_p20191103"
S="${S}/${PN}"
src_prepare() {
sed -i -e 's/-Werror//g' CMakeLists.txt || die
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DFL_BUILD_STATIC=$(usex static)
)
cmake-utils_src_configure
}

8
dev-libs/metadata.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ykonotopov@gnome.org</email>
<name>Yuri Konotopov</name>
</maintainer>
</pkgmetadata>

View File

@ -0,0 +1 @@
DIST vcmi-0.99_p20200314.tar.gz 5660345 BLAKE2B 4d2bea56ba0ec6d03ac40ec24202b84e9039aa1dbdce41874224486a45558803653597b1c09ec6e21bb9b44264488d077f609c1c6e19ee3a6e8500f27c9d697d SHA512 9122b4594bd24899387660fd829910f141e861004ff2907471ede5c4e3bde714869e3fb84e197228e8218814dd825dd7800dc011caa04a64a9f100d40682d0c7

View File

@ -0,0 +1,22 @@
--- a/client/icons/vcmiclient.desktop
+++ b/client/icons/vcmiclient.desktop
@@ -4,7 +4,7 @@ Name=VCMI Client
GenericName=Strategy Game Engine
Comment=Open engine for Heroes of Might and Magic 3
Icon=vcmiclient
-Exec=vcmiclient
+Exec=env LD_LIBRARY_PATH=/usr/lib:/usr/lib64 vcmiclient
Categories=Game;StrategyGame;
Version=1.0
Keywords=heroes;homm3;
--- a/launcher/vcmilauncher.desktop
+++ b/launcher/vcmilauncher.desktop
@@ -4,7 +4,7 @@ Name=VCMI
GenericName=Strategy Game Engine
Comment=Launcher for open engine of Heroes of Might and Magic 3
Icon=vcmiclient
-Exec=vcmilauncher
+Exec=env LD_LIBRARY_PATH=/usr/lib:/usr/lib64 vcmilauncher
Categories=Game;StrategyGame;
Version=1.0
Keywords=heroes;homm3;

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ykonotopov@gnome.org</email>
<name>Yuri Konotopov</name>
</maintainer>
<use>
<flag name="editor">Enable compilation of map editor</flag>
<flag name="erm">Enable compilation of ERM scripting module</flag>
<flag name="launcher">Enable compilation of launcher</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,68 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
COMMIT_SHA="dca5d86e7a6d18d2ddac7258f98a0ce08c691a6e"
inherit cmake-utils vcs-snapshot xdg
DESCRIPTION="VCMI is work-in-progress attempt to recreate engine for Heroes III."
HOMEPAGE="http://vcmi.eu"
SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT_SHA}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="editor erm +launcher"
RDEPEND="
dev-libs/fuzzylite
media-libs/libsdl2[video]
media-libs/sdl2-image
media-libs/sdl2-mixer[mp3]
media-libs/sdl2-ttf
sys-libs/zlib[minizip]
virtual/ffmpeg
editor? (
dev-qt/qtwidgets:5
)
launcher? (
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5
)
"
DEPEND="${RDEPEND}
dev-libs/boost:=[nls]
virtual/pkgconfig
"
src_prepare() {
patch -p1 < "${FILESDIR}"/0001-fix-desktop-entries-not-loading-due-to-missing-libs.patch
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DENABLE_EDITOR=$(usex editor)
-DENABLE_ERM=$(usex erm)
-DENABLE_LAUNCHER=$(usex launcher)
-DENABLE_PCH=ON
-DENABLE_TEST=OFF
-DFORCE_BUNDLED_FL=OFF
)
cmake-utils_src_configure
}
pkg_postinst() {
xdg_pkg_postinst
elog "In order to play VCMI you must install:"
elog "- Heroes III: Shadow of Death or Complete edition;"
elog "- Unnoficial WoG addon;"
elog "- VCMI data files."
elog "Use vcmibuilder tool for automated install of data files;"
elog "Additional information can be found in VCMI wiki:"
elog "http://wiki.vcmi.eu/index.php?title=Installation_on_Linux#Installing_Heroes_III_data_files"
}