commit: 34e41926d5b2e3536ab8ddf858c50a185c06d1cd parent: 8cf24783bb2281bc9d48a9ac5b88871215cee086 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Thu, 10 Oct 2019 10:28:24 +0200 games-engines/devilutionX: New packageDiffstat:
A | games-engines/devilutionX/Manifest | 1 | + |
A | games-engines/devilutionX/devilutionX-0.5.0.ebuild | 57 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | games-engines/devilutionX/devilutionX-9999.ebuild | 52 | ++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | games-engines/devilutionX/metadata.xml | 8 | ++++++++ |
4 files changed, 118 insertions(+), 0 deletions(-)
diff --git a/games-engines/devilutionX/Manifest b/games-engines/devilutionX/Manifest @@ -0,0 +1 @@ +DIST devilutionX-0.5.0.tar.gz 1767600 BLAKE2B d7a1b214496157ed4fa7690563980dee7f921d1710f9911ebb03346bd9c13c2ecc3a850df2a485cc2eb64a74c18223c7d9294e07b7619aaf9076c8622c572299 SHA512 36ad803b5b71d0ec98c3284716ed92067af742234306e723eba536404111b63efab869e5cce540f8acb1369992ba1c0c9cf0425cfb1ad37a6c970037abc54522 diff --git a/games-engines/devilutionX/devilutionX-0.5.0.ebuild b/games-engines/devilutionX/devilutionX-0.5.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR=emake + +inherit cmake-utils multilib + +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" + 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() { + # for some reason cmake doesn't find sodium + local mycmakeargs=( + -DBINARY_RELEASE=ON + -DDEBUG="$(usex debug)" + -DNONET=yes + ) + + 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)." +} diff --git a/games-engines/devilutionX/devilutionX-9999.ebuild b/games-engines/devilutionX/devilutionX-9999.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + 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}/${PN} +#} + +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)." +} diff --git a/games-engines/devilutionX/metadata.xml b/games-engines/devilutionX/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> +</pkgmetadata>