diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-10-13 18:14:49 +0200 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-10-13 18:47:43 +0200 |
commit | 86b140eac3b85bfdb81aa316e3fd7affcfe7f7a1 (patch) | |
tree | f96707903352df9e00d5d45878f5d59741e07657 /games-engines/love | |
parent | app-misc/worker: migrate to lua-single.eclass (diff) | |
download | gentoo-86b140eac3b85bfdb81aa316e3fd7affcfe7f7a1.tar.gz gentoo-86b140eac3b85bfdb81aa316e3fd7affcfe7f7a1.tar.bz2 gentoo-86b140eac3b85bfdb81aa316e3fd7affcfe7f7a1.zip |
games-engines/love: bump to 11.3 and EAPI 7
Closes: https://bugs.gentoo.org/680756
Closes: https://bugs.gentoo.org/730364
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'games-engines/love')
-rw-r--r-- | games-engines/love/Manifest | 1 | ||||
-rw-r--r-- | games-engines/love/love-11.3.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/games-engines/love/Manifest b/games-engines/love/Manifest index 5edf4012ba9b..4e9a4259ad12 100644 --- a/games-engines/love/Manifest +++ b/games-engines/love/Manifest @@ -2,3 +2,4 @@ DIST love-0.10.2-linux-src.tar.gz 1698376 BLAKE2B aac7baaa51b4def09d73bcf6cbc3c9 DIST love-0.7.2-linux-src.tar.gz 900209 BLAKE2B abd0db98d210c5523d3b5a75c30bcfa2fc9d7760c7642d08dda28690ab72ddf8a0c7b60793cd7b0f902a8e3fcf2750748c75caf29638a7455572d84683be7820 SHA512 cbca1d7e3425d1ecbdae019212dfa2814d8ac3bad1faedd4b052cf3e89b5bf2fac6e422283628e4c125858c9db050dee2129476d1a73ec44ffe8a4704f170f61 DIST love-0.8.0-linux-src.tar.gz 1027356 BLAKE2B bfbc2f9a3d5c3beffb4790a69716416815534c3b390b1554722eceaec57a7530377c06c15c6551aa972b33176bccdadfc8ad12bc186ceda201527bd9f8286d6f SHA512 6a0e28d102b950d3dddf7101996fe0ad04dfd7d4ec5e58797b41ef3382b60e74f90c6e707f882cf43cc0c5cc98703857eefc6418e6a6fd34e88f8019143f55a4 DIST love-11.1-linux-src.tar.gz 2733030 BLAKE2B 28b8bb4ea65fada095d725d438fa13a3d1210b2ab6e48932d1e62d342711e0d38ab0f84380fcb7e1b03b0bca6ab112ed66e848bb63aef6fde02605ba819209ae SHA512 f4df860508b75e4bb7c0ee8a2ee4406a7c8f3ce65cdbca9ed8a0cd90df81507ba7ec9a9d45279488047cc16b6e51940edff54e7a34de63bf852dbec5115b4c03 +DIST love-11.3-linux-src.tar.gz 2898851 BLAKE2B ae854dbe1f98fa2adaf118ac01b7519f87cbf684dff45622e0de6503a514bc6336c469b08a6c19ae55f7a0d65063bebffe0dc1d0a72483a9032902469c1c643f SHA512 d02900bbad658da7127bdbc52ceb8282a725b32d6a17fc51962327411be94f81b2c871d21b3c4bd8492a4ca355c3cfb1f04a7fe010d6c69ae35c7c5d64579e1b diff --git a/games-engines/love/love-11.3.ebuild b/games-engines/love/love-11.3.ebuild new file mode 100644 index 000000000000..6265299294f3 --- /dev/null +++ b/games-engines/love/love-11.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit 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="http://love2d.org/" + +LICENSE="ZLIB" +SLOT="0" +IUSE="+luajit" + +RDEPEND="sys-libs/zlib + !luajit? ( dev-lang/lua:0 ) + luajit? ( dev-lang/luajit:2 ) + media-libs/freetype + media-libs/libmodplug + media-libs/libsdl2[joystick,opengl] + media-libs/libogg + media-libs/libtheora + media-libs/libvorbis + media-libs/openal + media-sound/mpg123 + virtual/opengl" +DEPEND="${RDEPEND}" + +DOCS=( "readme.md" "changes.txt" ) + +src_prepare() { + default + if [[ ${PV} == 9999* ]]; then + ./platform/unix/automagic || die + fi +} + +src_configure() { + econf --with-lua=$(usex luajit luajit lua) +} + +src_install() { + default + + find "${D}" -name '*.la' -delete || die + + if [[ ${SLOT} != 0 ]]; then + mv "${ED}/usr/bin/${PN}" "${ED}/usr/bin/${PN}-${SLOT}" || die + mv "${ED}"/usr/share/applications/love{,"-$SLOT"}.desktop || die + sed -i -e "/^Name=/s/$/ ($SLOT)/" -e "s|/usr/bin/love|/usr/bin/love-$SLOT|" "${ED}/usr/share/applications/love-$SLOT.desktop" || die + rm -r "${ED}"/usr/{lib64/liblove.so,share/{mime/,pixmaps/,icons/,man/}} || die + fi +} + +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 +} |