diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-07 22:48:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-07 22:48:01 +0000 |
commit | c3bc61051d7f12b4c682efa7a5460bbc8815649e (patch) | |
tree | b6d19e96ba3c397fb8278eeb9b68170db92630ba /games-engines/love/love-11.4.ebuild | |
parent | 3517852e3b8a68d1e997770fc0650c5053bafc6c (diff) |
gentoo resync : 07.01.2022
Diffstat (limited to 'games-engines/love/love-11.4.ebuild')
-rw-r--r-- | games-engines/love/love-11.4.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/games-engines/love/love-11.4.ebuild b/games-engines/love/love-11.4.ebuild new file mode 100644 index 000000000000..fcc2e07df8e9 --- /dev/null +++ b/games-engines/love/love-11.4.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit lua-single xdg-utils + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/love2d/${PN}.git" +else + SRC_URI="https://github.com/love2d/${PN}/releases/download/${PV}/${P}-linux-src.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi + +DESCRIPTION="A framework for 2D games in Lua" +HOMEPAGE="https://love2d.org/" + +LICENSE="ZLIB" +SLOT="0" +IUSE="gme" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="sys-libs/zlib + ${LUA_DEPS} + media-libs/freetype + media-libs/libmodplug + media-libs/libsdl2[joystick,opengl] + media-libs/libtheora + media-libs/libvorbis + media-libs/openal + media-sound/mpg123 + virtual/opengl + gme? ( media-libs/game-music-emu )" +DEPEND="${RDEPEND}" + +DOCS=( "readme.md" "changes.txt" ) + +src_prepare() { + default + if [[ ${PV} == 9999* ]]; then + ./platform/unix/automagic || die + fi +} + +src_configure() { + local myeconfargs=( + $(use_enable gme) + --with-lua=$(usex lua_single_target_luajit luajit lua) + --with-luaversion=$(ver_cut 1-2 $(lua_get_version)) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + find "${D}" -name '*.la' -delete || die +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} |