summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBetaRays <BetaRays@protonmail.com>2018-07-17 01:18:42 +0200
committerMichał Górny <mgorny@gentoo.org>2018-07-17 14:19:33 +0200
commit0896bdffb49c068957164b74122023cd3bcf2679 (patch)
treef6b7d63a7c3577e60f15e9338f199ddb1f6ace31 /games-engines
parentgames-engines/love: bump to 11.1 (diff)
downloadgentoo-0896bdffb49c068957164b74122023cd3bcf2679.tar.gz
gentoo-0896bdffb49c068957164b74122023cd3bcf2679.tar.bz2
gentoo-0896bdffb49c068957164b74122023cd3bcf2679.zip
games-engines/love: Re-add live ebuild
Closes: https://bugs.gentoo.org/646256 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/love/love-9999.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/games-engines/love/love-9999.ebuild b/games-engines/love/love-9999.ebuild
new file mode 100644
index 00000000000..d98fe51a125
--- /dev/null
+++ b/games-engines/love/love-9999.ebuild
@@ -0,0 +1,61 @@
+# 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)
+}
+
+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
+}