Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/jvgs/, profiles/
Date: Sun, 29 Nov 2020 23:31:30
Message-Id: 1606692676.1425df15e4d5c03d9218692708a0201680f04553.marecki@gentoo
1 commit: 1425df15e4d5c03d9218692708a0201680f04553
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 23:28:35 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 23:31:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1425df15
7
8 games-arcade/jvgs: migrate to lua-single.eclass
9
10 There is no test phase but I have confirmed that cmake correctly finds
11 lua5.1 (upstream CMakeLists.txt is locked to that particular version),
12 that the compilation uses -I/usr/include/lua5.1 and that the linking of
13 the executable uses -llua5.1.
14
15 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
16
17 games-arcade/jvgs/jvgs-0.5-r100.ebuild | 42 ++++++++++++++++++++++++++++++++++
18 profiles/package.mask | 1 +
19 2 files changed, 43 insertions(+)
20
21 diff --git a/games-arcade/jvgs/jvgs-0.5-r100.ebuild b/games-arcade/jvgs/jvgs-0.5-r100.ebuild
22 new file mode 100644
23 index 00000000000..cad51405476
24 --- /dev/null
25 +++ b/games-arcade/jvgs/jvgs-0.5-r100.ebuild
26 @@ -0,0 +1,42 @@
27 +# Copyright 1999-2020 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +
32 +LUA_COMPAT=( lua5-1 )
33 +
34 +inherit cmake desktop lua-single
35 +
36 +DESCRIPTION="An open-source platform game with a sketched and minimalistic look"
37 +HOMEPAGE="http://jvgs.sourceforge.net/"
38 +SRC_URI="mirror://sourceforge/jvgs/${P}-src.tar.gz"
39 +
40 +LICENSE="WTFPL-2"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86"
43 +
44 +REQUIRED_USE="${LUA_REQUIRED_USE}"
45 +
46 +RDEPEND="${LUA_DEPS}
47 + media-libs/libsdl[video]
48 + media-libs/sdl-mixer[vorbis]
49 + media-libs/freetype:2
50 + sys-libs/zlib:=
51 + virtual/opengl"
52 +DEPEND="${RDEPEND}"
53 +BDEPEND="dev-lang/swig"
54 +
55 +S=${WORKDIR}/${P}-src
56 +PATCHES=( "${FILESDIR}"/${PN}-0.5-fix-build-system.patch )
57 +
58 +src_install() {
59 + dobin src/${PN}
60 +
61 + insinto /usr/share/${PN}
62 + doins -r main.lua resources
63 +
64 + newicon resources/drawing.svg ${PN}.svg
65 + make_desktop_entry ${PN} ${PN}
66 +
67 + einstalldocs
68 +}
69
70 diff --git a/profiles/package.mask b/profiles/package.mask
71 index 6cce1d5fd6d..219353df675 100644
72 --- a/profiles/package.mask
73 +++ b/profiles/package.mask
74 @@ -548,6 +548,7 @@ dev-lua/luacrypto
75 >=dev-lua/toluapp-1.0.93_p20190513-r100
76 >=dev-util/geany-plugins-1.37-r100
77 =games-action/minetest-5.3.0-r100
78 +>=games-arcade/jvgs-0.5-r100
79 >=games-engines/love-0.7.2-r100:0.7
80 >=games-engines/love-0.8.0-r100:0.8
81 >=games-engines/love-11.3-r100:0