1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake desktop xdg-utils
8 DESCRIPTION="Help a girl named Violet in the struggle with hordes of monsters"
9 HOMEPAGE="https://violetland.github.io/"
10 SRC_URI="https://github.com/ooxi/${PN}/releases/download/${PV}/${P}-source-with-dependencies.tar.gz"
12 LICENSE="GPL-3 CC-BY-SA-3.0"
14 KEYWORDS="~amd64 ~x86"
17 dev-libs/boost:=[threads(+)]
18 media-libs/libsdl[sound,video]
19 media-libs/sdl-image[png]
20 media-libs/sdl-mixer[vorbis]
34 # Bizarrely fcitx is only bundled for a CMake module to find libintl
35 # but let's make sure the rest remains unused.
36 rm -r lib/fcitx/src || die
41 -DDATA_INSTALL_DIR="${EPREFIX}/usr/share/${PN}"
42 -DLOCALE_INSTALL_DIR=share/locale
50 dodoc CHANGELOG.md CONTRIBUTORS.md
52 # Remove duplicate READMEs.
53 rm -r "${ED}"/usr/share/${PN}/README* || die
55 newicon -s 64 icon-light.png ${PN}.png
56 make_desktop_entry ${PN} VioletLand
59 pkg_postinst() { xdg_icon_cache_update; }
60 pkg_postrm() { xdg_icon_cache_update; }