From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/devilutionx/
Date: Sun, 24 Sep 2023 07:02:04 +0000 (UTC) [thread overview]
Message-ID: <1695538879.fe7881d4a15feb85f23952fe121bc962a309db18.ionen@gentoo> (raw)
commit: fe7881d4a15feb85f23952fe121bc962a309db18
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 24 06:41:45 2023 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Sep 24 07:01:19 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe7881d4
games-engines/devilutionx: add 1.5.1
Meant to handle this a while ago but got side-tracked.
Closes: https://github.com/gentoo/gentoo/pull/33021
Thanks-to: burningserenity <burningserenity <AT> novo-ordo.com>
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
games-engines/devilutionx/Manifest | 1 +
games-engines/devilutionx/devilutionx-1.5.1.ebuild | 88 ++++++++++++++++++++++
2 files changed, 89 insertions(+)
diff --git a/games-engines/devilutionx/Manifest b/games-engines/devilutionx/Manifest
index cbd3474c99a4..96a8f265ee41 100644
--- a/games-engines/devilutionx/Manifest
+++ b/games-engines/devilutionx/Manifest
@@ -1 +1,2 @@
DIST devilutionx-1.5.0.tar.xz 21951316 BLAKE2B efc6d3539eed25f917d30f3a858903952068bf4d4c66b0cd39f1a86ce3f98d9d67a8bce3a2467fa22e91bd2f552fbb593b602273e163422ab5f133133d513060 SHA512 df4998a86203372b82cb3be0348a1555ea95127a22ef050fed068215fd2223550f2b64364d83a58f829398169a29a5990d4332dc7f0adec6316f3a6c8e280ccb
+DIST devilutionx-1.5.1.tar.xz 21971268 BLAKE2B fdcbfad36ded01ca40643d114ffd49b300ccf98b11415cbc396f226d42aa315502319e94e9075a2308f1f003db9611d1232170564f30cc3f09cb4b4db7f82b35 SHA512 c712c8215947a117777313bfe24c8b24e8efa702a211e67bee1ae7276176be782394dc32f1cc4509e1539fdca8b1181884f5bc9dc4cf46890f4c57a378fb5d3b
diff --git a/games-engines/devilutionx/devilutionx-1.5.1.ebuild b/games-engines/devilutionx/devilutionx-1.5.1.ebuild
new file mode 100644
index 000000000000..1ad3e2aafedd
--- /dev/null
+++ b/games-engines/devilutionx/devilutionx-1.5.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2023 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]
+ sys-libs/zlib:=
+ media-libs/sdl_audiolib
+ 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
+ -DFETCHCONTENT_FULLY_DISCONNECTED=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
+}
next reply other threads:[~2023-09-24 7:02 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-24 7:02 Ionen Wolkens [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-03 12:31 [gentoo-commits] repo/gentoo:master commit in: games-engines/devilutionx/ Ionen Wolkens
2024-02-22 6:16 Ionen Wolkens
2024-02-05 9:15 Ionen Wolkens
2023-10-10 20:20 Ionen Wolkens
2023-08-11 9:42 Ulrich Müller
2023-07-14 21:32 Ionen Wolkens
2023-06-14 13:55 Ionen Wolkens
2022-07-25 23:20 Ionen Wolkens
2022-07-03 4:43 Ionen Wolkens
2022-07-03 4:22 Ionen Wolkens
2022-06-30 2:47 Ionen Wolkens
2022-06-30 2:02 Ionen Wolkens
2022-06-30 2:02 Ionen Wolkens
2022-06-29 8:08 Ionen Wolkens
2021-09-17 19:56 Sam James
2021-09-17 19:56 Sam James
2021-04-13 6:33 Lars Wendler
2021-04-06 10:25 Lars Wendler
2021-04-06 9:25 Lars Wendler
2021-04-06 9:25 Lars Wendler
2021-04-06 9:25 Lars Wendler
2021-04-04 7:22 Sam James
2021-03-31 15:47 Lars Wendler
2021-02-25 15:25 Lars Wendler
2021-02-22 13:00 Lars Wendler
2021-01-17 23:20 Lars Wendler
2020-10-12 13:23 Lars Wendler
2020-10-12 13:23 Lars Wendler
2020-10-11 7:24 Lars Wendler
2020-10-10 15:58 Lars Wendler
2020-10-10 15:58 Lars Wendler
2020-10-10 15:58 Lars Wendler
2020-03-23 15:22 Lars Wendler
2020-03-09 9:20 Lars Wendler
2020-01-02 11:49 Lars Wendler
2020-01-02 11:49 Lars Wendler
2020-01-02 11:49 Lars Wendler
2020-01-01 11:59 Lars Wendler
2020-01-01 11:59 Lars Wendler
2019-09-02 11:05 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1695538879.fe7881d4a15feb85f23952fe121bc962a309db18.ionen@gentoo \
--to=ionen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox