summaryrefslogtreecommitdiff
path: root/games-engines/love
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
commitd934827bf44b7cfcf6711964418148fa60877668 (patch)
tree0625f358789b5e015e49db139cc1dbc9be00428f /games-engines/love
parent2e34d110f164bf74d55fced27fe0000201b3eec5 (diff)
gentoo resync : 25.11.2020
Diffstat (limited to 'games-engines/love')
-rw-r--r--games-engines/love/Manifest20
-rw-r--r--games-engines/love/files/love-0.7.2-opengl_glext_prototypes.patch19
-rw-r--r--games-engines/love/files/love-0.8.0-opengl_glext_prototypes.patch54
-rw-r--r--games-engines/love/love-0.7.2-r100.ebuild49
-rw-r--r--games-engines/love/love-0.7.2-r2.ebuild11
-rw-r--r--games-engines/love/love-0.8.0-r100.ebuild (renamed from games-engines/love/love-0.8.0-r1.ebuild)30
-rw-r--r--games-engines/love/love-0.8.0-r2.ebuild11
-rw-r--r--games-engines/love/love-11.3-r100.ebuild (renamed from games-engines/love/love-0.10.2.ebuild)39
-rw-r--r--games-engines/love/love-11.3.ebuild (renamed from games-engines/love/love-11.1.ebuild)27
-rw-r--r--games-engines/love/love-9999.ebuild29
-rw-r--r--games-engines/love/metadata.xml7
11 files changed, 219 insertions, 77 deletions
diff --git a/games-engines/love/Manifest b/games-engines/love/Manifest
index 3889fcff68f8..15d8bece3b30 100644
--- a/games-engines/love/Manifest
+++ b/games-engines/love/Manifest
@@ -1,12 +1,14 @@
+AUX love-0.7.2-opengl_glext_prototypes.patch 899 BLAKE2B 785272dc004dcba2e3415ddf0a4ff93e97364d531285333689a64b0ce452ed90e98d56da1600b308544053cfc8f8c6151194d21b88a21559a5a6a1fbca579468 SHA512 4582702bfefa07284d7278e44d56f9fc273eac72619a22e25124081cee9e3d75ae4959ebabf8a96e78076989be35834ff2e9b06e1e188839eaa7f254e0b5d28d
AUX love-0.8.0-freetype2.patch 823 BLAKE2B 1927b092c6a107aa034b65bc4fc665f711b6070f44901ae9b402734c7339d07b39989651d729f91901efce50d9e2c5ccbe5f8a84fe8a8f72b455c2e3243fbe82 SHA512 fb4326f474b403cd3ec0bf679b4177dae070faf91848825c75800a2adb5ca1c91d26a555b61f7b031632fd64f50b239bfabb2967cb5e1d7ca1a249544faa0142
-DIST love-0.10.2-linux-src.tar.gz 1698376 BLAKE2B aac7baaa51b4def09d73bcf6cbc3c98835c4b12f2608d229a8aeb3eb39a82285964f7cef0063c461bdae6e4431adf4f48e83be499a76ce463f941c7778d4a229 SHA512 81c0bb5a454ed9abc692784f155933288a2bd5ba5ffb919c7709584e7e8d68fca10b5ea1e3a386def46b18f071b217ffbc2914a8ea08424226f0580020fce076
+AUX love-0.8.0-opengl_glext_prototypes.patch 1614 BLAKE2B 70bfd445e26a933b8d9f0b4a788069c62210b3aa2dd5da96a6d0496cfa95bc3c15e564de4066d360ed64bc79325325596afc5870c0ee1f0fca1f3d42c6f509a4 SHA512 3bff492910852715960f1bb5afef7113eedb034827da22f470c2ac8aa63aa617bffc55fc814e828f8c018316f7fc1273d6177e22ef503b38849076f22a65f283
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
-EBUILD love-0.10.2.ebuild 1698 BLAKE2B 1ce0db458a52885fd5df2417fc08c59cb63d3c11e083a123828782cc2425e4888b39be4296736f1d7e6ab04383582e306c680ce464857b944293713d9940f25d SHA512 f67cf86a3917c256cc059e044445dc94e13d64523bad9e9b822793c18f6829b4166a339443fb7b904fae3ccdf45ec5ac7322300ae5ac7b114630cfdbbadb5d52
-EBUILD love-0.7.2-r2.ebuild 848 BLAKE2B 7ad7ad32850328b502c106714b1a8074122d429b5536333957b80b45e597536981a8569c6735078f34a8412c068a6a19fcb23953b4798c19abcc98a6cc6c259e SHA512 db2c45809a19d7b3f30ec8772d1208d449ca8e5c121a30bcc92e1ffba35d13f801fb8c0f622867314c164b3dc0b61679cf234e73266536b3322d1139a5ce7685
-EBUILD love-0.8.0-r1.ebuild 758 BLAKE2B d8462edf603283285d463ad560a59c8c985f31ea82ca0604b91269cac150ef84575d03a6dc0df0563abd3aefafb2b37dafe3291e36c5846bb6e8936a82003015 SHA512 e4d045bd0d071011500500748cb6b82b3b9b4aebbd252b2a16a87e1c8aa01c74f69a22caaf366b89aebf31ded5e31d22a2e9ca7abb141b31b27f00b255ab2d51
-EBUILD love-0.8.0-r2.ebuild 824 BLAKE2B 4ca130e6c6f53dee38083cc14a9c58eb744dc66edab55ed97613e87e5631c640e805d2ca6c7360a852d140c049946a4aabaa6b72b8ddbdfa8db6cf55516871a8 SHA512 30277f0ec08c0ef165cfd2a8c89462bf95bd9c469a54557d54cb59f1fa4108f748e98a2db0cef2b3c928bb32cb9d4d0fe0d59d29aef5e0425bfcfde4bf49bff5
-EBUILD love-11.1.ebuild 1677 BLAKE2B 6bbf973474fa0637d087976d3c953ea14eddeb73faa6c95578afb8efd7b0d659e98ffbdccc7469b45e67b28ae0b59aff02a6575250cc85a7fbbe23cc1e235630 SHA512 293c2044a5defc519bf2395af5416314694b7357bcc2eabffe03011d5f01a2b56ff0f1e09ceb33b56b995e50e8ef6c9defda6822d5c0ee56d9810b677684b919
-EBUILD love-9999.ebuild 1734 BLAKE2B 5bc02e137f9907b7cdc8641ffb1a5435a79cefa43aaffab2fdb18e2683dfc61fffc9edb1e2370cb6765cd521cb3107a7a50c8522bce8f4a38e3515ca362281fd SHA512 a5a8db9e509acad12bb567400391331d72acd9c70d6293411493e6784eaaec54234792a6afdf44877216a95a7ad69e265e5e2ed025c2162a865b89dbb5b576f8
-MISC metadata.xml 168 BLAKE2B 95e3160d1d6abb3e5510581fe45ddcd9ad526f89bbc0d3ad226e2782d148a0c71e50426809a87fb45e6fc9356e597a1d271002764caebc79be8846301eb82d5e SHA512 5edd6cda32972ff5e53cf5f883928bd1887b4a45572657f99101284a909ea04ff906b8f4068d247d1b3367bde813dbb37ba11565aaff880d9b500685b0f5a33d
+DIST love-11.3-linux-src.tar.gz 2898851 BLAKE2B ae854dbe1f98fa2adaf118ac01b7519f87cbf684dff45622e0de6503a514bc6336c469b08a6c19ae55f7a0d65063bebffe0dc1d0a72483a9032902469c1c643f SHA512 d02900bbad658da7127bdbc52ceb8282a725b32d6a17fc51962327411be94f81b2c871d21b3c4bd8492a4ca355c3cfb1f04a7fe010d6c69ae35c7c5d64579e1b
+EBUILD love-0.7.2-r100.ebuild 992 BLAKE2B fc4e808d37ab63d56e3dc84c6588d0f308a575e7f3b77b67639da0019d6c1b5adcddff0cd28569a46173b3ee56a4060b1c69c58261d8d542d4abdfb826166a08 SHA512 9116835de74556d5f9658b140a1e637bea20a04e084b34dd515fc6d58f6edbf27af8347c2a8c4d06974f7a46d51969f30087e1c5bf921dbcb542d3c4065cf514
+EBUILD love-0.7.2-r2.ebuild 913 BLAKE2B 262eb47a410c0ba89f95d21a7773e4651b1c4745c1f7c881cf1bcc9dfff17012c6ae1970d70a6dacaa60b30165aef38e12bf0787b3e5bbd850ca6bbe8f76c9c6 SHA512 1437cf9d0053bbd646e68b71c224a5098a8cd8bf2fb97ac1788c2914999229a7dc2fafb40db0b1c5a6e8cc2938130c0d4cc09722dd096d8fc57688165b429450
+EBUILD love-0.8.0-r100.ebuild 975 BLAKE2B 69fccb2883cd450039d7615d7e2c66047146b7175734b7c0d92bf89024f962bb86baeeac3b441a209b4efca1c3c0c758ad7f62523b47afc9d71035765847eca4 SHA512 decfb6d849aaf80337fa94b6afcf4cda466273c64deaf79288ce48534d44e8a9638b392a958fa6ffd73ffe92f2ba2cdae5eb356fcf93f205b16cf43c65f80384
+EBUILD love-0.8.0-r2.ebuild 896 BLAKE2B a785a304e875066ee7840974db3dd7379c40d5987c884811ec00445d06da7598c2ffcbce63fa8efd015e6f3f3254ac9e9a88b10c067c2c04d1b96a9e1239d9fb SHA512 9dfef7919b56d6e0d085c48e600997411356f0f22a926be894957b24f3c82107ab02de4565935d2ba8d92577b301235a1ba320c00da955c5bc194f823c9770fe
+EBUILD love-11.3-r100.ebuild 1725 BLAKE2B 179e2f030f3a07c0f78d18e26343b7d7713e19440cd3825751557fbe44268c62aabd43837ec45c9e296bb2bb5859f51734a4ad9f6fad564594f2ccd33bd78019 SHA512 bd67fd7f1d49158543a6ecf2881bfe915a6257a3cc1f8ee412f82bff5943f68f47f4d7df6f9d56220ab2dfbc79b01c6d59c99d4523b3d4bb707a196c5e1e3fd6
+EBUILD love-11.3.ebuild 1631 BLAKE2B c507a9894db2718468e84688527cfde86b57ad1810e0684b9ab76ba2143e6385122d41897bf2fdd7d02537c02c45da305ec561f382f86250f8d61c0b4d298bf8 SHA512 445e51b862edaa6ef6f7a68f86403567fc7496b230c41b31d0ed41933e9c4c29ab6521587a3327c5ce66d6892fa14ae8004c878a537a51b0c98fa45721e01fa0
+EBUILD love-9999.ebuild 1630 BLAKE2B 27150d66d6b03c5be8828dad5b9a23be987386e441ad37639891729d10b0c086fd5dd99551b3e7f1ec08b009a1d671cbc6b2c34b9c918f8c6f9249408ce66571 SHA512 3226c12336a4288e3696b9f57d941a3e317baba021aef648426bda874c55611db4f3e31c9ac966a92701e972b6ac89f6449244ab5254b9bc7b68453ab33216f1
+MISC metadata.xml 245 BLAKE2B 1564b4d8e674e807191dcc857c12585eaf336e3418e110853e311b2851b382ca8931b46a96230677251bf3784004879d8498cae2dae11c9289f4a8606dfa5d7f SHA512 bd2ae86e550344a79551fe0383e4625d28ca6fad675d84c66fc5b22ed7fe3afbfc2b4d6a7b1a5d02f6efbc56950b8295270a3dba8a1e7e51fde80a370d0c868a
diff --git a/games-engines/love/files/love-0.7.2-opengl_glext_prototypes.patch b/games-engines/love/files/love-0.7.2-opengl_glext_prototypes.patch
new file mode 100644
index 000000000000..887f61ddd560
--- /dev/null
+++ b/games-engines/love/files/love-0.7.2-opengl_glext_prototypes.patch
@@ -0,0 +1,19 @@
+diff -ur love-HEAD.orig/src/modules/graphics/opengl/Framebuffer.cpp love-HEAD/src/modules/graphics/opengl/Framebuffer.cpp
+--- love-HEAD.orig/src/modules/graphics/opengl/Framebuffer.cpp 2019-06-03 01:15:56.600016765 +0200
++++ love-HEAD/src/modules/graphics/opengl/Framebuffer.cpp 2019-06-03 01:16:16.737916762 +0200
+@@ -1,3 +1,4 @@
++#define GL_GLEXT_PROTOTYPES
+ #include "Framebuffer.h"
+ #include <common/Matrix.h>
+
+diff -ur love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp love-HEAD/src/modules/graphics/opengl/SpriteBatch.cpp
+--- love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp 2019-06-03 01:15:56.601016760 +0200
++++ love-HEAD/src/modules/graphics/opengl/SpriteBatch.cpp 2019-06-03 01:16:31.007845896 +0200
+@@ -18,6 +18,7 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ **/
+
++#define GL_GLEXT_PROTOTYPES
+ #include "SpriteBatch.h"
+
+ // STD
diff --git a/games-engines/love/files/love-0.8.0-opengl_glext_prototypes.patch b/games-engines/love/files/love-0.8.0-opengl_glext_prototypes.patch
new file mode 100644
index 000000000000..300bc3383433
--- /dev/null
+++ b/games-engines/love/files/love-0.8.0-opengl_glext_prototypes.patch
@@ -0,0 +1,54 @@
+diff -ur love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp love-HEAD/src/modules/graphics/opengl/SpriteBatch.cpp
+--- love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp
++++ love-HEAD/src/modules/graphics/opengl/SpriteBatch.cpp
+@@ -18,6 +18,7 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ **/
+
++#define GL_GLEXT_PROTOTYPES
+ #include "SpriteBatch.h"
+
+ // STD
+--- a/src/modules/graphics/opengl/VertexBuffer.cpp
++++ b/src/modules/graphics/opengl/VertexBuffer.cpp
+@@ -18,6 +18,9 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ **/
+
++#define GL_GLEXT_PROTOTYPES
++#include "SpriteBatch.h"
++
+ #include "VertexBuffer.h"
+
+ #include "common/Exception.h"
+--- a/src/modules/graphics/opengl/Graphics.cpp
++++ b/src/modules/graphics/opengl/Graphics.cpp
+@@ -18,6 +18,7 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ **/
+
++#define GL_GLEXT_PROTOTYPES
+ #include <common/config.h>
+ #include <common/math.h>
+ #include <common/Vector.h>
+--- a/src/modules/graphics/opengl/PixelEffect.cpp
++++ b/src/modules/graphics/opengl/PixelEffect.cpp
+@@ -18,6 +18,7 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ **/
+
++#define GL_GLEXT_PROTOTYPES
+ #include "PixelEffect.h"
+ #include "GLee.h"
+
+
+--- a/src/modules/graphics/opengl/Canvas.cpp
++++ b/src/modules/graphics/opengl/Canvas.cpp
+@@ -18,6 +18,7 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ **/
+
++#define GL_GLEXT_PROTOTYPES
+ #include "Canvas.h"
+ #include "Graphics.h"
+ #include <common/Matrix.h>
diff --git a/games-engines/love/love-0.7.2-r100.ebuild b/games-engines/love/love-0.7.2-r100.ebuild
new file mode 100644
index 000000000000..b28e616cd1d7
--- /dev/null
+++ b/games-engines/love/love-0.7.2-r100.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-1 )
+LUA_REQ_USE="deprecated"
+
+inherit lua-single
+
+DESCRIPTION="A framework for 2D games in Lua"
+HOMEPAGE="https://love2d.org/"
+SRC_URI="https://github.com/love2d/${PN}/releases/download/${PV}/${P}-linux-src.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0.7"
+KEYWORDS="~amd64 ~x86"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="${LUA_DEPS}
+ dev-games/physfs
+ media-libs/devil[mng,png,tiff]
+ media-libs/freetype:2
+ media-libs/libmodplug
+ media-libs/libsdl[joystick,opengl]
+ media-libs/libvorbis
+ media-libs/openal
+ media-sound/mpg123
+ virtual/opengl
+"
+DEPEND="${RDEPEND}
+ media-libs/libmng:0
+ media-libs/tiff:0
+"
+
+S="${WORKDIR}/${PN}-HEAD"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.7.2-opengl_glext_prototypes.patch
+ "${FILESDIR}"/${PN}-0.8.0-freetype2.patch
+)
+
+src_install() {
+ DOCS="readme.txt changes.txt" \
+ default
+
+ mv "${ED}/usr/bin/${PN}" "${ED}/usr/bin/${PN}-${SLOT}" || die
+}
diff --git a/games-engines/love/love-0.7.2-r2.ebuild b/games-engines/love/love-0.7.2-r2.ebuild
index e29f78d0863e..0743c3dd9250 100644
--- a/games-engines/love/love-0.7.2-r2.ebuild
+++ b/games-engines/love/love-0.7.2-r2.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="A framework for 2D games in Lua"
-HOMEPAGE="http://love2d.org/"
-SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
+HOMEPAGE="https://love2d.org/"
+SRC_URI="https://github.com/love2d/${PN}/releases/download/${PV}/${P}-linux-src.tar.gz"
LICENSE="ZLIB"
SLOT="0.7"
@@ -31,7 +31,10 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/${PN}-HEAD"
-PATCHES=( "${FILESDIR}"/${PN}-0.8.0-freetype2.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.7.2-opengl_glext_prototypes.patch
+ "${FILESDIR}"/${PN}-0.8.0-freetype2.patch
+)
src_install() {
DOCS="readme.txt changes.txt" \
diff --git a/games-engines/love/love-0.8.0-r1.ebuild b/games-engines/love/love-0.8.0-r100.ebuild
index 4545622486fc..5ac4d20e65a0 100644
--- a/games-engines/love/love-0.8.0-r1.ebuild
+++ b/games-engines/love/love-0.8.0-r100.ebuild
@@ -1,20 +1,25 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
+
+LUA_COMPAT=( lua5-1 )
+LUA_REQ_USE="deprecated"
+
+inherit lua-single
DESCRIPTION="A framework for 2D games in Lua"
-HOMEPAGE="http://love2d.org/"
-SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
-KEYWORDS="~amd64 ~arm ~x86"
+HOMEPAGE="https://love2d.org/"
+SRC_URI="https://github.com/love2d/${PN}/releases/download/${PV}/${P}-linux-src.tar.gz"
LICENSE="ZLIB"
-SLOT="0"
-IUSE=""
+SLOT="0.8"
+KEYWORDS="~amd64 ~arm ~x86"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
-RDEPEND="
+RDEPEND="${LUA_DEPS}
dev-games/physfs
- dev-lang/lua:0[deprecated]
media-libs/devil[mng,png,tiff]
media-libs/freetype:2
media-libs/libmodplug
@@ -29,9 +34,14 @@ DEPEND="${RDEPEND}
media-libs/tiff:0
"
-PATCHES=( "${FILESDIR}"/${P}-freetype2.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.8.0-freetype2.patch
+ "${FILESDIR}"/${PN}-0.8.0-opengl_glext_prototypes.patch
+)
src_install() {
DOCS="readme.md changes.txt" \
default
+
+ mv "${ED}/usr/bin/${PN}" "${ED}/usr/bin/${PN}-${SLOT}" || die
}
diff --git a/games-engines/love/love-0.8.0-r2.ebuild b/games-engines/love/love-0.8.0-r2.ebuild
index 6349e6228b72..9297277d9f52 100644
--- a/games-engines/love/love-0.8.0-r2.ebuild
+++ b/games-engines/love/love-0.8.0-r2.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="A framework for 2D games in Lua"
-HOMEPAGE="http://love2d.org/"
-SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
+HOMEPAGE="https://love2d.org/"
+SRC_URI="https://github.com/love2d/${PN}/releases/download/${PV}/${P}-linux-src.tar.gz"
KEYWORDS="~amd64 ~arm ~x86"
LICENSE="ZLIB"
@@ -29,7 +29,10 @@ DEPEND="${RDEPEND}
media-libs/tiff:0
"
-PATCHES=( "${FILESDIR}"/${P}-freetype2.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.8.0-freetype2.patch
+ "${FILESDIR}"/${PN}-0.8.0-opengl_glext_prototypes.patch
+)
src_install() {
DOCS="readme.md changes.txt" \
diff --git a/games-engines/love/love-0.10.2.ebuild b/games-engines/love/love-11.3-r100.ebuild
index 9ac920cc9cd8..4de07ea8e793 100644
--- a/games-engines/love/love-0.10.2.ebuild
+++ b/games-engines/love/love-11.3-r100.ebuild
@@ -1,30 +1,30 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit gnome2-utils xdg-utils
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..3} luajit )
+
+inherit lua-single xdg-utils
if [[ ${PV} == 9999* ]]; then
- inherit mercurial
- EHG_REPO_URI="https://bitbucket.org/rude/${PN}"
- SRC_URI=""
- KEYWORDS=""
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/love2d/${PN}.git"
else
- SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
+ 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/"
+HOMEPAGE="https://love2d.org/"
LICENSE="ZLIB"
-SLOT="0.10"
-IUSE="+luajit"
+SLOT="0"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="sys-libs/zlib
- dev-games/physfs
- !luajit? ( dev-lang/lua:0[deprecated] )
- luajit? ( dev-lang/luajit:2 )
+ ${LUA_DEPS}
media-libs/freetype
media-libs/libmodplug
media-libs/libsdl2[joystick,opengl]
@@ -46,15 +46,16 @@ src_prepare() {
}
src_configure() {
- econf --with-lua=$(usex luajit luajit lua)
+ econf --with-lua=$(usex lua_single_target_luajit luajit lua) \
+ --with-luaversion=$(ver_cut 1-2 $(lua_get_version))
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
- if [[ ${SLOT} != 0 ]]
- then
+
+ 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
@@ -63,13 +64,13 @@ src_install() {
}
pkg_postinst() {
- gnome2_icon_cache_update
xdg_desktop_database_update
+ xdg_icon_cache_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
- gnome2_icon_cache_update
xdg_desktop_database_update
+ xdg_icon_cache_update
xdg_mimeinfo_database_update
}
diff --git a/games-engines/love/love-11.1.ebuild b/games-engines/love/love-11.3.ebuild
index 8f965557a423..df62bac35ad5 100644
--- a/games-engines/love/love-11.1.ebuild
+++ b/games-engines/love/love-11.3.ebuild
@@ -1,28 +1,27 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit gnome2-utils xdg-utils
+EAPI=7
+
+inherit xdg-utils
if [[ ${PV} == 9999* ]]; then
- inherit mercurial
- EHG_REPO_URI="https://bitbucket.org/rude/${PN}"
- SRC_URI=""
- KEYWORDS=""
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/love2d/${PN}.git"
else
- SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
+ 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/"
+HOMEPAGE="https://love2d.org/"
LICENSE="ZLIB"
SLOT="0"
IUSE="+luajit"
RDEPEND="sys-libs/zlib
- !luajit? ( dev-lang/lua:0[deprecated] )
+ !luajit? ( dev-lang/lua:0 )
luajit? ( dev-lang/luajit:2 )
media-libs/freetype
media-libs/libmodplug
@@ -52,8 +51,8 @@ src_install() {
default
find "${D}" -name '*.la' -delete || die
- if [[ ${SLOT} != 0 ]]
- then
+
+ 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
@@ -62,13 +61,13 @@ src_install() {
}
pkg_postinst() {
- gnome2_icon_cache_update
xdg_desktop_database_update
+ xdg_icon_cache_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
- gnome2_icon_cache_update
xdg_desktop_database_update
+ xdg_icon_cache_update
xdg_mimeinfo_database_update
}
diff --git a/games-engines/love/love-9999.ebuild b/games-engines/love/love-9999.ebuild
index c4f181125e4f..6265299294f3 100644
--- a/games-engines/love/love-9999.ebuild
+++ b/games-engines/love/love-9999.ebuild
@@ -1,16 +1,15 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit gnome2-utils xdg-utils
+EAPI=7
+
+inherit xdg-utils
if [[ ${PV} == 9999* ]]; then
- inherit mercurial
- EHG_REPO_URI="https://bitbucket.org/rude/${PN}"
- SRC_URI=""
- KEYWORDS=""
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/love2d/${PN}.git"
else
- SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
+ SRC_URI="https://github.com/love2d/${PN}/releases/download/${PV}/${P}-linux-src.tar.gz"
KEYWORDS="~amd64 ~arm ~x86"
fi
@@ -22,7 +21,7 @@ SLOT="0"
IUSE="+luajit"
RDEPEND="sys-libs/zlib
- !luajit? ( dev-lang/lua:0[deprecated] )
+ !luajit? ( dev-lang/lua:0 )
luajit? ( dev-lang/luajit:2 )
media-libs/freetype
media-libs/libmodplug
@@ -52,23 +51,23 @@ src_install() {
default
find "${D}" -name '*.la' -delete || die
- if [ "$SLOT" != "0" ]
- then
+
+ 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 "s|/usr/bin/love|/usr/bin/love-$SLOT|" "${ED}/usr/share/applications/love-$SLOT.desktop" || die
- rm "${ED}"/usr/{lib64/liblove.so,share/{mime/packages/love.xml,pixmaps/love.svg,icons/hicolor/scalable/mimetypes/application-x-love-game.svg,man/man1/love.1}} || 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_icon_cache_update
xdg_mimeinfo_database_update
}
pkg_postrm() {
- gnome2_icon_cache_update
xdg_desktop_database_update
+ xdg_icon_cache_update
xdg_mimeinfo_database_update
}
diff --git a/games-engines/love/metadata.xml b/games-engines/love/metadata.xml
index 585b0dc75dda..3e5026ee3754 100644
--- a/games-engines/love/metadata.xml
+++ b/games-engines/love/metadata.xml
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
- </pkgmetadata>
+ <maintainer type="person">
+ <email>marecki@gentoo.org</email>
+ <name>Marek Szuba</name>
+ </maintainer>
+</pkgmetadata>