summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2020-10-10 17:53:32 +0200
committerLars Wendler <polynomial-c@gentoo.org>2020-10-10 17:58:39 +0200
commite989f0cf9ffaa7f9e423ce56b1dc67581069b1f3 (patch)
tree0434feaf9182555654dbada3ac2411898c6fa2f8 /games-engines
parentmedia-sound/strawberry: Bump to version 0.8.1 (diff)
downloadgentoo-e989f0cf9ffaa7f9e423ce56b1dc67581069b1f3.tar.gz
gentoo-e989f0cf9ffaa7f9e423ce56b1dc67581069b1f3.tar.bz2
gentoo-e989f0cf9ffaa7f9e423ce56b1dc67581069b1f3.zip
games-engines/devilutionx: Bump to version 1.0.2
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/devilutionx/Manifest1
-rw-r--r--games-engines/devilutionx/devilutionx-1.0.2.ebuild78
2 files changed, 79 insertions, 0 deletions
diff --git a/games-engines/devilutionx/Manifest b/games-engines/devilutionx/Manifest
index 0930937b2ce8..7e238cc664ac 100644
--- a/games-engines/devilutionx/Manifest
+++ b/games-engines/devilutionx/Manifest
@@ -1,2 +1,3 @@
DIST devilutionx-1.0.0.tar.gz 1798349 BLAKE2B f2e49e92d8607974dce25ab4de589f01d5603cec4f96e10e55dbdd55b0352ce46d397c91290812dcd8faaa5794c3ab5b23b922098cab9e44dcaf6d049164f6ae SHA512 65eed32e03051880e2e859984911a76c6aae1853cb57491a04090026d6df9cdadf839a0dbb5433691ed1c83cfa7403c72fede38890d494ffd4eff6bef9030c37
DIST devilutionx-1.0.1.tar.gz 2005920 BLAKE2B 96441436f86430028ebca51a108758c9980b785db1d79de132730b284037d7bfe9f2e7eb23e49108ac520a37479fd3756b2a7605fbaab0232b38039c20f9ed2f SHA512 8c08db37664f4d9971650675866671411fe0fc00fedf4d2b2db040d48fc07e36def3bd78fa892c2be012d46df9519f28a31fe0b3e14f46e1037476458f60cb6d
+DIST devilutionx-1.0.2.tar.gz 2010077 BLAKE2B 4e89d20263d2ab31e1fca7e8389f0774f4c97f607f633ffc27d0a1ad225b5a351f508ddc9a875d21b64a07e21098cf520e84388712a12ad6c9639b61b2ebdc07 SHA512 dfa5f08a77988eb9ca244b586ecbb4ed430459d369fc98e7853e293c16a06eca7bdd3abb88fa95dff5bcae6be4fd9c20de92389b4c85446487ff5a79480b88a1
diff --git a/games-engines/devilutionx/devilutionx-1.0.2.ebuild b/games-engines/devilutionx/devilutionx-1.0.2.ebuild
new file mode 100644
index 000000000000..829fcf1b68b3
--- /dev/null
+++ b/games-engines/devilutionx/devilutionx-1.0.2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# Sometimes build with ninja fails.
+# Please check occasionally if we can revert back to ninja.
+# Latest known issue:
+#
+#CMAKE_MAKEFILE_GENERATOR="emake"
+
+inherit cmake desktop
+
+DESCRIPTION="Diablo engine for modern operating systems"
+HOMEPAGE="https://github.com/diasurgical/devilutionX"
+if [[ "${PV}" == 9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/diasurgical/devilutionX.git"
+else
+ SRC_URI="https://github.com/diasurgical/devilutionX/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/devilutionX-${PV}"
+fi
+
+LICENSE="public-domain"
+SLOT="0"
+
+IUSE="debug lto"
+
+RDEPEND="
+ dev-libs/libsodium
+ media-fonts/sil-charis
+ media-libs/libsdl2[haptic]
+ media-libs/sdl2-mixer
+ media-libs/sdl2-ttf
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ sed "/PROJECT_VERSION/s|@PROJECT_VERSION@|${PV}|" \
+ -i SourceS/config.h.in || die
+ sed 's/CharisSILB.ttf/CharisSIL-B.ttf/g' \
+ -i SourceX/DiabloUI/fonts.h || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DASAN="OFF"
+ -DDEBUG="$(usex debug)"
+ -DDIST="ON"
+ -DFASTER="OFF"
+ -DLTO="$(usex lto)"
+ -DUBSAN="OFF"
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ dobin "${BUILD_DIR}/${PN}"
+
+ local size
+ for size in 32 48 ; do
+ newicon -s ${size} Packaging/resources/Diablo_${size}.png ${PN}.png
+ done
+ make_desktop_entry ${PN} "Diablo devolved" "/usr/share/icons/hicolor/48x48/apps/devilutionx.png"
+}
+
+pkg_postinst() {
+ einfo "In order to play the game you need to install the file"
+ einfo " diabdat.mpq"
+ einfo "from the original game CD into the following directory:"
+ einfo " \${HOME}/.local/share/diasurgical/devilution/"
+ einfo "and make sure it's writeable (chmod u+w)."
+}