1 |
commit: 5d834d6d463f4d043439824ca97bb45d98e50433 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 1 17:55:43 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 1 19:35:34 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d834d6d |
7 |
|
8 |
games-rpg/zsdx: Stop using games.eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
games-rpg/zsdx/zsdx-1.9.0-r1.ebuild | 53 +++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 53 insertions(+) |
14 |
|
15 |
diff --git a/games-rpg/zsdx/zsdx-1.9.0-r1.ebuild b/games-rpg/zsdx/zsdx-1.9.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..dc00fda4954 |
18 |
--- /dev/null |
19 |
+++ b/games-rpg/zsdx/zsdx-1.9.0-r1.ebuild |
20 |
@@ -0,0 +1,53 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit cmake-utils eutils gnome2-utils |
26 |
+ |
27 |
+DESCRIPTION="A free 2D Zelda fangame" |
28 |
+HOMEPAGE="http://www.solarus-games.org/" |
29 |
+SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}.tar.gz" |
30 |
+ |
31 |
+LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64 ~x86" |
34 |
+IUSE="" |
35 |
+RESTRICT="mirror" |
36 |
+ |
37 |
+RDEPEND=" |
38 |
+ >=games-engines/solarus-1.3.0 |
39 |
+ <games-engines/solarus-1.4.0 |
40 |
+" |
41 |
+DEPEND="app-arch/zip" |
42 |
+ |
43 |
+src_configure() { |
44 |
+ local mycmakeargs=( |
45 |
+ -DSOLARUS_INSTALL_DATAROOTDIR="/usr/share" |
46 |
+ -DSOLARUS_INSTALL_BINDIR="/usr/bin" |
47 |
+ ) |
48 |
+ cmake-utils_src_configure |
49 |
+} |
50 |
+ |
51 |
+src_install() { |
52 |
+ cmake-utils_src_install |
53 |
+ newicon -s 48 build/icons/${PN}_icon_48.png ${PN}.png |
54 |
+ newicon -s 256 build/icons/${PN}_icon_256.png ${PN}.png |
55 |
+ |
56 |
+ # install proper wrapper script |
57 |
+ rm -f "${ED}"/usr/bin/${PN} |
58 |
+ make_wrapper ${PN} "solarus \"/usr/share/solarus/${PN}\"" |
59 |
+ |
60 |
+ make_desktop_entry "${PN}" "Zelda: Mystery of Solarus DX" |
61 |
+} |
62 |
+ |
63 |
+pkg_preinst() { |
64 |
+ gnome2_icon_savelist |
65 |
+} |
66 |
+ |
67 |
+pkg_postinst() { |
68 |
+ gnome2_icon_cache_update |
69 |
+} |
70 |
+ |
71 |
+pkg_postrm() { |
72 |
+ gnome2_icon_cache_update |
73 |
+} |