mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-engines/devilutionx: Removed old
Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
DIST devilutionx-1.0.1.tar.gz 2005920 BLAKE2B 96441436f86430028ebca51a108758c9980b785db1d79de132730b284037d7bfe9f2e7eb23e49108ac520a37479fd3756b2a7605fbaab0232b38039c20f9ed2f SHA512 8c08db37664f4d9971650675866671411fe0fc00fedf4d2b2db040d48fc07e36def3bd78fa892c2be012d46df9519f28a31fe0b3e14f46e1037476458f60cb6d
|
||||
DIST devilutionx-1.0.3.tar.gz 2010213 BLAKE2B 820917f7587c7afff5272d8dc49fd5dfb6d435be0e43c8f65e0767845bc94e0ae7bb23cddb7c0a7ea4f559e0958cb2eb59ade338334f2c9d481fda4cbcc343d8 SHA512 34840f44d0b72d1f9bc6cab8d1c0cf14414b95b3eff916b397078022e66f96e5aef24365f694da45d5b8729a6b0c876b584039710ceebaec040f1337c218caaa
|
||||
DIST devilutionx-1.1.0.tar.gz 2271614 BLAKE2B 8afdffafd86477bdeb62c2c3abb96d35dcccde7f7c44cb5ca5bbd8b46ae5f3998262eae4fa23f5c84a3ffdbcbdfc27cf91dc758cb69bfe24b301959085fbe31e SHA512 341e7f2e74e7af4a7b42054b58b6518c2f286f2fdcb21c5553a15912c044ea08f6c7b07a2079e7e795a5146e7a301789fe32b6fda5ff9fbec0654d886d423b38
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
# 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:
|
||||
# https://github.com/diasurgical/devilutionX/issues/490
|
||||
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}"
|
||||
|
||||
newicon -s 32 Packaging/resources/Diablo_32.png ${PN}.png
|
||||
newicon -s 48 Packaging/resources/Diablo_48.png ${PN}.png
|
||||
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)."
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
# 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-libs/libsdl2[haptic]
|
||||
media-libs/sdl2-mixer
|
||||
media-libs/sdl2-ttf
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DASAN="OFF"
|
||||
-DDEBUG="$(usex debug)"
|
||||
-DDISABLE_LTO="$(usex !lto)"
|
||||
-DDIST="ON"
|
||||
-DUBSAN="OFF"
|
||||
)
|
||||
cmake_src_configure
|
||||
|
||||
# Build system still doesn't reliably set release version in the build
|
||||
sed "/PROJECT_VERSION/s@-@${PV}@" -i "${BUILD_DIR}/config.h" || die
|
||||
}
|
||||
|
||||
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/"
|
||||
}
|
||||
Reference in New Issue
Block a user