| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.5-r1 | 8 | ~amd64 ~x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake desktop xdg
DESCRIPTION="Help a girl named Violet in the struggle with hordes of monsters"
HOMEPAGE="https://violetland.github.io/"
SRC_URI="https://github.com/ooxi/${PN}/releases/download/${PV}/${P}-source-with-dependencies.tar.gz"
LICENSE="GPL-3 CC-BY-SA-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-libs/boost:=
media-libs/libglvnd
media-libs/libsdl[opengl,sound,video]
media-libs/sdl-image[png]
media-libs/sdl-mixer[vorbis]
media-libs/sdl-ttf
"
DEPEND="${RDEPEND}"
BDEPEND="
sys-devel/gettext
"
PATCHES=(
"${FILESDIR}"/${P}-boost1.8{5,9}.patch # bug 964390
"${FILESDIR}"/${P}-cmake4.patch
)
src_prepare() {
cmake_src_prepare
# Bizarrely fcitx is only bundled for a CMake module to find libintl
# but let's make sure the rest remains unused.
rm -r lib/fcitx/src || die
}
src_configure() {
local mycmakeargs=(
-DDATA_INSTALL_DIR="${EPREFIX}/usr/share/${PN}"
-DLOCALE_INSTALL_DIR=share/locale
)
cmake_src_configure
}
src_install() {
cmake_src_install
dodoc CHANGELOG.md CONTRIBUTORS.md
# Remove duplicate READMEs.
rm -r "${ED}"/usr/share/${PN}/README* || die
newicon -s 64 icon-light.png ${PN}.png
make_desktop_entry ${PN} Violetland
}
dev-libs/boost:= media-libs/libglvnd media-libs/libsdl[opengl,sound,video] media-libs/sdl-image[png] media-libs/sdl-mixer[vorbis] media-libs/sdl-ttf
dev-libs/boost:= media-libs/libglvnd media-libs/libsdl[opengl,sound,video] media-libs/sdl-image[png] media-libs/sdl-mixer[vorbis] media-libs/sdl-ttf
sys-devel/gettext