diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-11-10 13:21:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-11-10 13:21:36 +0000 |
commit | 77398e424e45d9e98c1cef3c43bdadb9d56e81ef (patch) | |
tree | 5aeffd3fc7b92fc615bd2c222fa8831aeda1925b /games-action/violetland/violetland-0.5.ebuild | |
parent | bd4aeefe33e63f613512604e47bfca7b2187697d (diff) |
gentoo resync : 10.11.2019
Diffstat (limited to 'games-action/violetland/violetland-0.5.ebuild')
-rw-r--r-- | games-action/violetland/violetland-0.5.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/games-action/violetland/violetland-0.5.ebuild b/games-action/violetland/violetland-0.5.ebuild new file mode 100644 index 000000000000..7078f00ebd3f --- /dev/null +++ b/games-action/violetland/violetland-0.5.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 xdg-utils + +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:=[threads(+)] + media-libs/libsdl[sound,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-ttf + virtual/opengl +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + sys-devel/gettext +" + +src_prepare() { + cmake-utils_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-utils_src_configure +} + +src_install() { + cmake-utils_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 +} + +pkg_postinst() { xdg_icon_cache_update; } +pkg_postrm() { xdg_icon_cache_update; } |