From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 10E1B138334 for ; Mon, 2 Sep 2019 11:05:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36169E07F2; Mon, 2 Sep 2019 11:05:55 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0D835E07F2 for ; Mon, 2 Sep 2019 11:05:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9F0BC34AA2C for ; Mon, 2 Sep 2019 11:05:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 912C3771 for ; Mon, 2 Sep 2019 11:05:51 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1567422205.3d49f7183d215e1eaf6328198b94b3585b136958.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/devilutionx/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-engines/devilutionx/devilutionx-9999.ebuild games-engines/devilutionx/metadata.xml X-VCS-Directories: games-engines/devilutionx/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 3d49f7183d215e1eaf6328198b94b3585b136958 X-VCS-Branch: master Date: Mon, 2 Sep 2019 11:05:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4ad3126c-03f6-47d9-91ac-20e603c43c67 X-Archives-Hash: 62f512f98cd7dc98a5c0d95702d4ab48 commit: 3d49f7183d215e1eaf6328198b94b3585b136958 Author: Lars Wendler gentoo org> AuthorDate: Mon Sep 2 11:02:30 2019 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon Sep 2 11:03:25 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d49f718 games-engines/devilutionx: Initial commit Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Lars Wendler gentoo.org> games-engines/devilutionx/devilutionx-9999.ebuild | 60 +++++++++++++++++++++++ games-engines/devilutionx/metadata.xml | 11 +++++ 2 files changed, 71 insertions(+) diff --git a/games-engines/devilutionx/devilutionx-9999.ebuild b/games-engines/devilutionx/devilutionx-9999.ebuild new file mode 100644 index 00000000000..3070232b106 --- /dev/null +++ b/games-engines/devilutionx/devilutionx-9999.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-utils 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" +fi + +LICENSE="public-domain" +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_prepare() { + # https://github.com/diasurgical/devilutionX/issues/225 + eapply -R "${FILESDIR}"/${PN}-facebookincubator_find_libsodium.patch + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBINARY_RELEASE=ON + -DDEBUG="$(usex debug)" + ) + cmake-utils_src_configure +} + +src_install() { + dobin "${BUILD_DIR}/${PN}" + make_desktop_entry ${PN} "Diablo devolved" +} + +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 new file mode 100644 index 00000000000..81aca5b1e55 --- /dev/null +++ b/games-engines/devilutionx/metadata.xml @@ -0,0 +1,11 @@ + + + + + polynomial-c@gentoo.org + Lars Wendler + + + diasurgical/devilutionX + +