From f57e008aa126ccdca95f7424e4d24a1a83a49682 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 18 Dec 2024 06:30:11 +0000 Subject: gentoo auto-resync : 18:12:2024 - 06:30:11 --- games-engines/Manifest.gz | Bin 3707 -> 3706 bytes games-engines/devilutionx/Manifest | 2 +- .../devilutionx/devilutionx-1.5.3-r1.ebuild | 93 +++++++++++++++++++++ games-engines/devilutionx/devilutionx-1.5.3.ebuild | 89 -------------------- 4 files changed, 94 insertions(+), 90 deletions(-) create mode 100644 games-engines/devilutionx/devilutionx-1.5.3-r1.ebuild delete mode 100644 games-engines/devilutionx/devilutionx-1.5.3.ebuild (limited to 'games-engines') diff --git a/games-engines/Manifest.gz b/games-engines/Manifest.gz index e2f0f542619b..39b1985eb322 100644 Binary files a/games-engines/Manifest.gz and b/games-engines/Manifest.gz differ diff --git a/games-engines/devilutionx/Manifest b/games-engines/devilutionx/Manifest index 8eec9fa304d0..a04c6c05df30 100644 --- a/games-engines/devilutionx/Manifest +++ b/games-engines/devilutionx/Manifest @@ -1,3 +1,3 @@ DIST devilutionx-1.5.3.tar.xz 22394112 BLAKE2B 1b04c7fe334ddfd6b1eb619b1e86c1e429f6c26c980a16129d8322bb30641409d9d11a203e42ccdbce60a05e00dc49b1a2acbdd1007c5f99e40b88acd1251440 SHA512 619873bb232d1b344f5001c232364af9cfcda72e44f28fd2a15332292fa37c0e64b7fccade3570b96bd648be235ed56e0cc2e3fd8299ac57ef26f2ce844cbc2f -EBUILD devilutionx-1.5.3.ebuild 2097 BLAKE2B 946d08ea383c603954b519bf654dc2a63256f535f1d2596c63c1b0868a4d91415461e219713eb211820249b3c89916ec22216ea9bc66959cffaa1a132b4f5a0f SHA512 a93135b7e5dee4ec71c049bfcddb51ad559be11d4999745d21f24cdeb67bf203da035e8970be8be4c88063fdd61c9ad9661cfd28390d43c50c039c96ba62b3f3 +EBUILD devilutionx-1.5.3-r1.ebuild 2127 BLAKE2B d839e2e3758188a7cea06e1424ac5ed37bf3eef59e6f2a140e5bdffa08a3fadca5a2fd04fad0f9b5fa56670f934928c267fb92934f06870e75203b2aefd3131f SHA512 22cc4132815bd5053c80ac2312abeaa8317febe0f6cf2c3e283ba77854ff8c09f7bd9e0045e5f9af7d161daf2c4492a6a55dd7de6a9d9263af75ec0dffa1f0f0 MISC metadata.xml 542 BLAKE2B 25e292f201570a11d08f4f22922a9dfa1f54d51784be9b38f3b8396a44559ffe6d5f8799e20b8c2fa888ce97e8a45d257894c13924e303a7f93d04c0c046e231 SHA512 acb1603f7e41f47daf7f9fde6128b2f7c51c277cb97be62b87695cceb48fca653f90c2ca3e22238758a78aae4fa34f2de555e07f7e8d896a8ccf5e1c569e8083 diff --git a/games-engines/devilutionx/devilutionx-1.5.3-r1.ebuild b/games-engines/devilutionx/devilutionx-1.5.3-r1.ebuild new file mode 100644 index 000000000000..c9f17f483bd4 --- /dev/null +++ b/games-engines/devilutionx/devilutionx-1.5.3-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg + +DESCRIPTION="Diablo engine for modern operating systems" +HOMEPAGE="https://github.com/diasurgical/devilutionX/" +SRC_URI=" + https://github.com/diasurgical/devilutionX/releases/download/${PV}/devilutionx-src.tar.xz + -> ${P}.tar.xz +" +S=${WORKDIR}/${PN}-src-${PV} + +LICENSE=" + Sustainable-Use-1.0 + BSD CC-BY-4.0 GPL-2+ LGPL-2.1+ MIT OFL-1.1 + zerotier? ( BUSL-1.1 ) +" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug +sodium test zerotier" +RESTRICT="bindist mirror !test? ( test )" + +RDEPEND=" + app-arch/bzip2:= + dev-libs/libfmt:= + media-libs/libsdl2[haptic,joystick,opengl,video] + media-libs/sdl2-image[png] + media-libs/sdl_audiolib + sys-libs/zlib:= + sodium? ( dev-libs/libsodium:= ) +" +DEPEND=" + ${RDEPEND} + dev-cpp/asio + dev-cpp/simpleini + test? ( dev-cpp/gtest ) +" +BDEPEND=" + sys-devel/gettext +" + +CMAKE_SKIP_TESTS=( + # timedemo tests only pass when game assets are available + Timedemo. +) + +src_prepare() { + cmake_src_prepare + + # use system asio + echo 'add_library(asio INTERFACE)' > 3rdParty/asio/CMakeLists.txt || die + + # ensure system copies are used + rm -r dist/{asio,simpleini,sdl_audiolib}-src || die +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + -DCCACHE_PROGRAM=no #813768 + -DDEBUG=$(usex debug) + -DDISABLE_LTO=yes # let CFLAGS control this + -DDISABLE_ZERO_TIER=$(usex !zerotier) + -DPACKET_ENCRYPTION=$(usex sodium) + -DPIE=yes + ) + + cmake_src_configure +} + +src_install() { + local DOCS=( Packaging/nix/README.txt docs/*.md ) + cmake_src_install + + rm -- "${ED}"/usr/share/diasurgical/devilutionx/README.txt || die +} + +pkg_postinst() { + xdg_pkg_postinst + + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog "In order to play the game, you will need to copy the following data file" + elog "from the original game, and optionally the hellfire expansion files:" + elog " - DIABDAT.MPQ" + elog " - hellfire.mpq hfmonk.mpq hfmusic.mpq hfvoice.mpq" + elog "to ~/.local/share/diasurgical/devilution/" + elog + elog "See ${EROOT}/usr/share/doc/${PF}/README.txt* for details." + fi +} diff --git a/games-engines/devilutionx/devilutionx-1.5.3.ebuild b/games-engines/devilutionx/devilutionx-1.5.3.ebuild deleted file mode 100644 index d344483cdb2b..000000000000 --- a/games-engines/devilutionx/devilutionx-1.5.3.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake xdg - -DESCRIPTION="Diablo engine for modern operating systems" -HOMEPAGE="https://github.com/diasurgical/devilutionX/" -SRC_URI=" - https://github.com/diasurgical/devilutionX/releases/download/${PV}/devilutionx-src.tar.xz - -> ${P}.tar.xz -" -S=${WORKDIR}/${PN}-src-${PV} - -LICENSE="Unlicense BSD CC-BY-4.0 GPL-2+ LGPL-2.1+ MIT OFL-1.1 zerotier? ( BUSL-1.1 )" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="debug +sodium test zerotier" -RESTRICT="!test? ( test )" - -RDEPEND=" - app-arch/bzip2:= - dev-libs/libfmt:= - media-libs/libsdl2[haptic,joystick,opengl,video] - media-libs/sdl2-image[png] - media-libs/sdl_audiolib - sys-libs/zlib:= - sodium? ( dev-libs/libsodium:= ) -" -DEPEND=" - ${RDEPEND} - dev-cpp/asio - dev-cpp/simpleini - test? ( dev-cpp/gtest ) -" -BDEPEND=" - sys-devel/gettext -" - -CMAKE_SKIP_TESTS=( - # timedemo tests only pass when game assets are available - Timedemo. -) - -src_prepare() { - cmake_src_prepare - - # use system asio - echo 'add_library(asio INTERFACE)' > 3rdParty/asio/CMakeLists.txt || die - - # ensure system copies are used - rm -r dist/{asio,simpleini,sdl_audiolib}-src || die -} - -src_configure() { - local mycmakeargs=( - -DBUILD_TESTING=$(usex test) - -DCCACHE_PROGRAM=no #813768 - -DDEBUG=$(usex debug) - -DDISABLE_LTO=yes # let CFLAGS control this - -DDISABLE_ZERO_TIER=$(usex !zerotier) - -DPACKET_ENCRYPTION=$(usex sodium) - -DPIE=yes - ) - - cmake_src_configure -} - -src_install() { - local DOCS=( Packaging/nix/README.txt docs/*.md ) - cmake_src_install - - rm -- "${ED}"/usr/share/diasurgical/devilutionx/README.txt || die -} - -pkg_postinst() { - xdg_pkg_postinst - - if [[ ! ${REPLACING_VERSIONS} ]]; then - elog "In order to play the game, you will need to copy the following data file" - elog "from the original game, and optionally the hellfire expansion files:" - elog " - DIABDAT.MPQ" - elog " - hellfire.mpq hfmonk.mpq hfmusic.mpq hfvoice.mpq" - elog "to ~/.local/share/diasurgical/devilution/" - elog - elog "See ${EROOT}/usr/share/doc/${PF}/README.txt* for details." - fi -} -- cgit v1.2.3