diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-05 11:43:07 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-05 11:43:07 +0000 |
commit | 34d05d15811bd789a5348824d4f4151a49f924c9 (patch) | |
tree | d65a1ce3b1fb7c7178d523f0c9cb5ec236f88711 /games-engines/devilutionx | |
parent | 467bb7df10ce922b4cf92fa7a6790d38687ab6e5 (diff) |
gentoo auto-resync : 05:02:2024 - 11:43:07
Diffstat (limited to 'games-engines/devilutionx')
-rw-r--r-- | games-engines/devilutionx/Manifest | 2 | ||||
-rw-r--r-- | games-engines/devilutionx/devilutionx-1.5.2.ebuild | 89 |
2 files changed, 91 insertions, 0 deletions
diff --git a/games-engines/devilutionx/Manifest b/games-engines/devilutionx/Manifest index e6a1917c9c58..3594d1875a3a 100644 --- a/games-engines/devilutionx/Manifest +++ b/games-engines/devilutionx/Manifest @@ -1,3 +1,5 @@ DIST devilutionx-1.5.1.tar.xz 21971268 BLAKE2B fdcbfad36ded01ca40643d114ffd49b300ccf98b11415cbc396f226d42aa315502319e94e9075a2308f1f003db9611d1232170564f30cc3f09cb4b4db7f82b35 SHA512 c712c8215947a117777313bfe24c8b24e8efa702a211e67bee1ae7276176be782394dc32f1cc4509e1539fdca8b1181884f5bc9dc4cf46890f4c57a378fb5d3b +DIST devilutionx-1.5.2.tar.xz 21968848 BLAKE2B 5a8c280f262e2d0f47ee5978cfc858ea62481eac838ad691996f359f1c4889499e4c78b5e6a1f2dc998cf0fc89ebbdf79296a25adb411e30e9248cce1b07d3a8 SHA512 b7fd5814c8671e439d4349297cfda0d89eb1f7a0945ec11bdf7a83637371664c9c39c036249e1650911397111e1b5d9e931f221ffd2d4a1f9e80d5ca58357dcf EBUILD devilutionx-1.5.1.ebuild 2141 BLAKE2B 91e25884394fa1c92e4ead8c00f5e7d042626f4e54b8bc1a427f142a751c80f83c0dd4fbc934a9964e6cefbf033b3efb2fe527ec80db0ade37ea15b52942152f SHA512 c33bb3dd4b900bb1f1fcdf0409ebbdaed11d21c6b31bbc76227f4e77d9e7bca83dc4771b25ec54d7a5433985cc2c5728652ce5804ad174ae9c44151f51c22dad +EBUILD devilutionx-1.5.2.ebuild 2105 BLAKE2B 0fe2e3ac9b4d8e75edee23be87a91cfa91098e643da7d8fa0672fb8b2f4837fbc407c0a3d926b23858e8ebcf310bd6dc02596849626749697f5500dd232d5f40 SHA512 6db777af30c2425f6734cc88d2b392371e86f41bf32b8abe08e496c45a42bdeaf8046c59cb4778930205a6e4dba181977c0133c7ccf6ae60e5fa1156900c8a4a MISC metadata.xml 542 BLAKE2B 25e292f201570a11d08f4f22922a9dfa1f54d51784be9b38f3b8396a44559ffe6d5f8799e20b8c2fa888ce97e8a45d257894c13924e303a7f93d04c0c046e231 SHA512 acb1603f7e41f47daf7f9fde6128b2f7c51c277cb97be62b87695cceb48fca653f90c2ca3e22238758a78aae4fa34f2de555e07f7e8d896a8ccf5e1c569e8083 diff --git a/games-engines/devilutionx/devilutionx-1.5.2.ebuild b/games-engines/devilutionx/devilutionx-1.5.2.ebuild new file mode 100644 index 000000000000..29c272d0006a --- /dev/null +++ b/games-engines/devilutionx/devilutionx-1.5.2.ebuild @@ -0,0 +1,89 @@ +# 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 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 +" + +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_test() { + # timedemo tests only pass when game assets are available + cmake_src_test -E Timedemo. +} + +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 +} |