diff --git a/dev-libs/Manifest b/dev-libs/Manifest new file mode 100644 index 0000000..8888b75 --- /dev/null +++ b/dev-libs/Manifest @@ -0,0 +1 @@ +DIST fuzzylite-6.0.tar.gz 2189181 BLAKE2B 14162c08d5f9bbc94739b575fbbe9dad3da73d30c479be02c474e18af7de78f5b200ae00e40977c9075445e252faa803521715c67049ad10fcaa907b847551cc SHA512 6f5d40d0359458e109ac2aebfbf571f61867a8b49920f4a5e1b5d86bdf578dba038b942c9e05eab0d4620f73e8cded770abe7b5e597a3b4c39dbcf6a1259f4af diff --git a/dev-libs/fuzzylite-6.0.ebuild b/dev-libs/fuzzylite-6.0.ebuild new file mode 100644 index 0000000..30cbf9c --- /dev/null +++ b/dev-libs/fuzzylite-6.0.ebuild @@ -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="!! + + + + ykonotopov@gnome.org + Yuri Konotopov + + diff --git a/games-strategy/vcmi/Manifest b/games-strategy/vcmi/Manifest new file mode 100644 index 0000000..85a698a --- /dev/null +++ b/games-strategy/vcmi/Manifest @@ -0,0 +1 @@ +DIST vcmi-0.99_p20200314.tar.gz 5660345 BLAKE2B 4d2bea56ba0ec6d03ac40ec24202b84e9039aa1dbdce41874224486a45558803653597b1c09ec6e21bb9b44264488d077f609c1c6e19ee3a6e8500f27c9d697d SHA512 9122b4594bd24899387660fd829910f141e861004ff2907471ede5c4e3bde714869e3fb84e197228e8218814dd825dd7800dc011caa04a64a9f100d40682d0c7 diff --git a/games-strategy/vcmi/files/0001-fix-desktop-entries-not-loading-due-to-missing-libs.patch b/games-strategy/vcmi/files/0001-fix-desktop-entries-not-loading-due-to-missing-libs.patch new file mode 100644 index 0000000..9f9de3c --- /dev/null +++ b/games-strategy/vcmi/files/0001-fix-desktop-entries-not-loading-due-to-missing-libs.patch @@ -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; diff --git a/games-strategy/vcmi/metadata.xml b/games-strategy/vcmi/metadata.xml new file mode 100644 index 0000000..317021e --- /dev/null +++ b/games-strategy/vcmi/metadata.xml @@ -0,0 +1,13 @@ + + + + + ykonotopov@gnome.org + Yuri Konotopov + + + Enable compilation of map editor + Enable compilation of ERM scripting module + Enable compilation of launcher + + diff --git a/games-strategy/vcmi/vcmi-0.99_p20200314.ebuild b/games-strategy/vcmi/vcmi-0.99_p20200314.ebuild new file mode 100644 index 0000000..8b72db2 --- /dev/null +++ b/games-strategy/vcmi/vcmi-0.99_p20200314.ebuild @@ -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" +}