diff options
author | 2019-11-06 19:24:14 +0100 | |
---|---|---|
committer | 2019-11-06 19:24:14 +0100 | |
commit | 0891103ea34331f6e484cba291d62cf08f20a19f (patch) | |
tree | cfa9c1179c4d9301a0540fe168874bc002922d3b | |
parent | dev-games/aseprite-1.2.15 (diff) | |
download | Drauthius-0891103ea34331f6e484cba291d62cf08f20a19f.tar.gz Drauthius-0891103ea34331f6e484cba291d62cf08f20a19f.tar.bz2 Drauthius-0891103ea34331f6e484cba291d62cf08f20a19f.zip |
games-engines/love-11.2 & games-engines/love-11.3
Signed-off-by: Albert Diserholt <albert@diserholt.com>
-rw-r--r-- | games-engines/love/Manifest | 4 | ||||
-rw-r--r-- | games-engines/love/love-11.2.ebuild | 74 | ||||
-rw-r--r-- | games-engines/love/love-11.3.ebuild | 74 |
3 files changed, 152 insertions, 0 deletions
diff --git a/games-engines/love/Manifest b/games-engines/love/Manifest new file mode 100644 index 0000000..4e2b19d --- /dev/null +++ b/games-engines/love/Manifest @@ -0,0 +1,4 @@ +DIST love-11.2-linux-src.tar.gz 2766364 BLAKE2B fd2cd9374e27c4ea877b2c36ff5d74214c86a9e83583535d5610a6fc2b1a973b615b47eafcb99191775129f2377d046bfe58483e50c863195a8d1d84612936e8 SHA512 f72148abc890cfb3daf0e3fae564eba0726ae7591e2d2e32b9072ef53a9ca0bda481ee6dadc9cb171ae6ec48d15780daa269dd74ea548b2084a7b9229e7c1509 +DIST love-11.3-linux-src.tar.gz 2898851 BLAKE2B ae854dbe1f98fa2adaf118ac01b7519f87cbf684dff45622e0de6503a514bc6336c469b08a6c19ae55f7a0d65063bebffe0dc1d0a72483a9032902469c1c643f SHA512 d02900bbad658da7127bdbc52ceb8282a725b32d6a17fc51962327411be94f81b2c871d21b3c4bd8492a4ca355c3cfb1f04a7fe010d6c69ae35c7c5d64579e1b +EBUILD love-11.2.ebuild 1677 BLAKE2B 6bbf973474fa0637d087976d3c953ea14eddeb73faa6c95578afb8efd7b0d659e98ffbdccc7469b45e67b28ae0b59aff02a6575250cc85a7fbbe23cc1e235630 SHA512 293c2044a5defc519bf2395af5416314694b7357bcc2eabffe03011d5f01a2b56ff0f1e09ceb33b56b995e50e8ef6c9defda6822d5c0ee56d9810b677684b919 +EBUILD love-11.3.ebuild 1677 BLAKE2B 6bbf973474fa0637d087976d3c953ea14eddeb73faa6c95578afb8efd7b0d659e98ffbdccc7469b45e67b28ae0b59aff02a6575250cc85a7fbbe23cc1e235630 SHA512 293c2044a5defc519bf2395af5416314694b7357bcc2eabffe03011d5f01a2b56ff0f1e09ceb33b56b995e50e8ef6c9defda6822d5c0ee56d9810b677684b919 diff --git a/games-engines/love/love-11.2.ebuild b/games-engines/love/love-11.2.ebuild new file mode 100644 index 0000000..8f96555 --- /dev/null +++ b/games-engines/love/love-11.2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit gnome2-utils xdg-utils + +if [[ ${PV} == 9999* ]]; then + inherit mercurial + EHG_REPO_URI="https://bitbucket.org/rude/${PN}" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${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[deprecated] ) + 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() { + gnome2_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} diff --git a/games-engines/love/love-11.3.ebuild b/games-engines/love/love-11.3.ebuild new file mode 100644 index 0000000..8f96555 --- /dev/null +++ b/games-engines/love/love-11.3.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit gnome2-utils xdg-utils + +if [[ ${PV} == 9999* ]]; then + inherit mercurial + EHG_REPO_URI="https://bitbucket.org/rude/${PN}" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${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[deprecated] ) + 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() { + gnome2_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} |