Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-engines/love/
Date: Tue, 17 Jul 2018 12:19:47
Message-Id: 1531829973.0896bdffb49c068957164b74122023cd3bcf2679.mgorny@gentoo
1 commit: 0896bdffb49c068957164b74122023cd3bcf2679
2 Author: BetaRays <BetaRays <AT> protonmail <DOT> com>
3 AuthorDate: Mon Jul 16 23:18:42 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 17 12:19:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0896bdff
7
8 games-engines/love: Re-add live ebuild
9
10 Closes: https://bugs.gentoo.org/646256
11 Package-Manager: Portage-2.3.40, Repoman-2.3.9
12
13 games-engines/love/love-9999.ebuild | 61 +++++++++++++++++++++++++++++++++++++
14 1 file changed, 61 insertions(+)
15
16 diff --git a/games-engines/love/love-9999.ebuild b/games-engines/love/love-9999.ebuild
17 new file mode 100644
18 index 00000000000..d98fe51a125
19 --- /dev/null
20 +++ b/games-engines/love/love-9999.ebuild
21 @@ -0,0 +1,61 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +inherit gnome2-utils xdg-utils
27 +
28 +if [[ ${PV} == 9999* ]]; then
29 + inherit mercurial
30 + EHG_REPO_URI="https://bitbucket.org/rude/${PN}"
31 + SRC_URI=""
32 + KEYWORDS=""
33 +else
34 + SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
35 + KEYWORDS="~amd64 ~arm ~x86"
36 +fi
37 +
38 +DESCRIPTION="A framework for 2D games in Lua"
39 +HOMEPAGE="http://love2d.org/"
40 +
41 +LICENSE="ZLIB"
42 +SLOT="0"
43 +IUSE="+luajit"
44 +
45 +RDEPEND="sys-libs/zlib
46 + !luajit? ( dev-lang/lua:0[deprecated] )
47 + luajit? ( dev-lang/luajit:2 )
48 + media-libs/freetype
49 + media-libs/libmodplug
50 + media-libs/libsdl2[joystick,opengl]
51 + media-libs/libogg
52 + media-libs/libtheora
53 + media-libs/libvorbis
54 + media-libs/openal
55 + media-sound/mpg123
56 + virtual/opengl"
57 +DEPEND="${RDEPEND}"
58 +
59 +DOCS=( "readme.md" "changes.txt" )
60 +
61 +src_prepare() {
62 + default
63 + if [[ ${PV} == 9999* ]]; then
64 + ./platform/unix/automagic || die
65 + fi
66 +}
67 +
68 +src_configure() {
69 + econf --with-lua=$(usex luajit luajit lua)
70 +}
71 +
72 +pkg_postinst() {
73 + gnome2_icon_cache_update
74 + xdg_desktop_database_update
75 + xdg_mimeinfo_database_update
76 +}
77 +
78 +pkg_postrm() {
79 + gnome2_icon_cache_update
80 + xdg_desktop_database_update
81 + xdg_mimeinfo_database_update
82 +}