logo

overlay

Unnamed repository; edit this file 'description' to name the repository.
commit: a41b5b8d2ce78d4116d6000bbec26f8b35bed52b
parent: 5a6b0a72fa1748164fa0d3844bc16b44856eabc9
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  4 Jan 2020 02:36:05 +0100

games-engines/devilutionx: version bump, 1.0.0

Diffstat:

Mgames-engines/devilutionx/Manifest1+
Agames-engines/devilutionx/devilutionx-1.0.0.ebuild56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/games-engines/devilutionx/Manifest b/games-engines/devilutionx/Manifest @@ -1 +1,2 @@ DIST devilutionx-0.5.0.tar.gz 1767600 BLAKE2B d7a1b214496157ed4fa7690563980dee7f921d1710f9911ebb03346bd9c13c2ecc3a850df2a485cc2eb64a74c18223c7d9294e07b7619aaf9076c8622c572299 SHA512 36ad803b5b71d0ec98c3284716ed92067af742234306e723eba536404111b63efab869e5cce540f8acb1369992ba1c0c9cf0425cfb1ad37a6c970037abc54522 +DIST devilutionx-1.0.0.tar.gz 1798349 BLAKE2B f2e49e92d8607974dce25ab4de589f01d5603cec4f96e10e55dbdd55b0352ce46d397c91290812dcd8faaa5794c3ab5b23b922098cab9e44dcaf6d049164f6ae SHA512 65eed32e03051880e2e859984911a76c6aae1853cb57491a04090026d6df9cdadf839a0dbb5433691ed1c83cfa7403c72fede38890d494ffd4eff6bef9030c37 diff --git a/games-engines/devilutionx/devilutionx-1.0.0.ebuild b/games-engines/devilutionx/devilutionx-1.0.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR=emake + +inherit cmake-utils + +DESCRIPTION="Diablo build 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" + S="${WORKDIR}/devilutionX-${PV}" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="Unlicense" +SLOT="0" + +IUSE="debug" + +RDEPEND=" + dev-libs/libsodium + media-libs/libsdl2[haptic] + media-libs/sdl2-mixer + media-libs/sdl2-ttf +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +src_configure() { + local mycmakeargs=( + -DBINARY_RELEASE=ON + -DDEBUG="$(usex debug)" + ) + + cmake-utils_src_configure +} + +src_install() { + dobin ${BUILD_DIR}/devilutionx +} + +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)." +}