Install this version:
emerge -a =games-roguelike/hyperrogue-13.1i
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =games-roguelike/hyperrogue-13.1i
Or alternatively:
emerge --autounmask-write -a =games-roguelike/hyperrogue-13.1i
# Copyright 1999-2022 Your Mom
# Distributed under the terms of the GNU General Public License v3
EAPI=8
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/zenorogue/hyperrogue/"
else
KEYWORDS="~amd64 ~x86"
SRC_URI="https://github.com/zenorogue/hyperrogue/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
fi
DESCRIPTION="A puzzle roguelike in the hyperbolic plane."
HOMEPAGE="https://github.com/zenorogue/hyperrogue/"
LICENSE="GPL-2"
SLOT="0"
IUSE="+glew +png"
RDEPEND="
media-libs/sdl-gfx
media-libs/sdl-mixer
media-libs/sdl-ttf
glew? ( media-libs/glew )
png? ( media-libs/libpng )
"
DEPEND="${RDEPEND}"
src_prepare() {
default
sed -i 's#HYPERPATH ""#HYPERPATH "/usr/share/hyperrogue/"#' sysconfig.h || die
sed -i "s#g++ #&${CXXFLAGS} #" mymake.cpp || die
}
src_compile() {
use glew && export HYPERROGUE_USE_GLEW=1
use png && export HYPERROGUE_USE_PNG=1
emake mymake
./mymake
}
src_install() {
newbin hyper hyperrogue
dodir /usr/share/hyperrogue
insinto /usr/share/hyperrogue
doins -r sounds
doins -r music
doins hyperrogue-music.txt
doins DejaVuSans-Bold.ttf
}
Manage flags for this package:
euse -i <flag> -p games-roguelike/hyperrogue |
euse -E <flag> -p games-roguelike/hyperrogue |
euse -D <flag> -p games-roguelike/hyperrogue
media-libs/sdl-gfx media-libs/sdl-mixer media-libs/sdl-ttf glew? ( media-libs/glew ) png? ( media-libs/libpng )
media-libs/sdl-gfx media-libs/sdl-mixer media-libs/sdl-ttf glew? ( media-libs/glew ) png? ( media-libs/libpng )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | hyperrogue-13.1i.tar.gz | 102661887 bytes | https://github.com/zenorogue/hyperrogue/archive/refs/tags/v13.1i.tar.gz |