1 |
commit: 2f83ebdaefce2859c2035e23226983365b3fc98e |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu May 20 21:21:16 2021 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 28 22:12:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f83ebda |
7 |
|
8 |
games-misc/opengfx: update to 0.6.1 |
9 |
|
10 |
Change installation path location from `/usr/share/games/openttd/data/` |
11 |
to `/usr/share/openttd/baseset/`. |
12 |
|
13 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
14 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
15 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
16 |
|
17 |
games-misc/opengfx/Manifest | 1 + |
18 |
games-misc/opengfx/metadata.xml | 3 ++ |
19 |
games-misc/opengfx/opengfx-0.6.1.ebuild | 64 +++++++++++++++++++++++++++++++++ |
20 |
3 files changed, 68 insertions(+) |
21 |
|
22 |
diff --git a/games-misc/opengfx/Manifest b/games-misc/opengfx/Manifest |
23 |
index 58d2808cd62..7015fc40a86 100644 |
24 |
--- a/games-misc/opengfx/Manifest |
25 |
+++ b/games-misc/opengfx/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
DIST opengfx-0.6.0-source.tar.xz 9693320 BLAKE2B cb1d25fb038b3b481c0abe206426b5843c2f7b81b7cf81a525ebf8b217359c5ea50c0e1ee1ed37d5093a0186231a1e1b9134624a8b69362f6733c6c13d5e1500 SHA512 275b9040e6938bdd5bee2d39361e0b78f447a8e497cc8ff018c7874dc16a357870f8b560999ebb2f2f0b275644c7c9ce85c964875f5a798e2ec45e62a8bc768f |
28 |
+DIST opengfx-0.6.1-source.tar.xz 9690748 BLAKE2B faa3ca805166a1716f8a235048506620bbb98a4265c72571b3a33e88f3375caff75b5576b64ef451e99dea734145f3be748a9109c7003d1ad9043a90cdd34dad SHA512 4ba3528dbdddea1baa2875f917f959034659c8205fbda2b2a67c5fe80161235d15c25dab323e6da8cba2711b7b4f0c9a96d4187fd2de61ae9a2ff9fd077b063b |
29 |
|
30 |
diff --git a/games-misc/opengfx/metadata.xml b/games-misc/opengfx/metadata.xml |
31 |
index 78274e0fa55..60f4cf275b2 100644 |
32 |
--- a/games-misc/opengfx/metadata.xml |
33 |
+++ b/games-misc/opengfx/metadata.xml |
34 |
@@ -5,4 +5,7 @@ |
35 |
<email>games@g.o</email> |
36 |
<name>Gentoo Games Project</name> |
37 |
</maintainer> |
38 |
+<upstream> |
39 |
+ <remote-id type="github">OpenTTD/OpenGFX</remote-id> |
40 |
+</upstream> |
41 |
</pkgmetadata> |
42 |
|
43 |
diff --git a/games-misc/opengfx/opengfx-0.6.1.ebuild b/games-misc/opengfx/opengfx-0.6.1.ebuild |
44 |
new file mode 100644 |
45 |
index 00000000000..95f257d7145 |
46 |
--- /dev/null |
47 |
+++ b/games-misc/opengfx/opengfx-0.6.1.ebuild |
48 |
@@ -0,0 +1,64 @@ |
49 |
+# Copyright 1999-2021 Gentoo Authors |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=7 |
53 |
+ |
54 |
+PYTHON_COMPAT=( python3_{7..9} ) |
55 |
+ |
56 |
+inherit python-any-r1 |
57 |
+ |
58 |
+DESCRIPTION="OpenGFX data files for OpenTTD" |
59 |
+HOMEPAGE="https://wiki.openttd.org/en/Basesets/OpenGFX https://github.com/OpenTTD/OpenGFX" |
60 |
+SRC_URI="https://cdn.openttd.org/${PN}-releases/${PV}/${P}-source.tar.xz" |
61 |
+S="${WORKDIR}/${P}-source" |
62 |
+ |
63 |
+LICENSE="GPL-2" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
66 |
+ |
67 |
+DEPEND=" |
68 |
+ games-util/grfcodec |
69 |
+ games-util/nml |
70 |
+ ${PYTHON_DEPS} |
71 |
+" |
72 |
+ |
73 |
+DOCS=( "README.md" "changelog.txt" ) |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ default |
77 |
+ |
78 |
+ python-any-r1_pkg_setup |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ local myemakeargs=( |
83 |
+ GIMP="" |
84 |
+ PYTHON="${EPYTHON}" |
85 |
+ ) |
86 |
+ |
87 |
+ emake "${myemakeargs[@]}" all |
88 |
+} |
89 |
+ |
90 |
+src_test() { |
91 |
+ local myemakeargs=( |
92 |
+ GIMP="" |
93 |
+ PYTHON="${EPYTHON}" |
94 |
+ ) |
95 |
+ |
96 |
+ emake "${myemakeargs[@]}" check |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ local myemakeargs=( |
101 |
+ DO_NOT_INSTALL_README="true" |
102 |
+ DO_NOT_INSTALL_LICENSE="true" |
103 |
+ DO_NOT_INSTALL_CHANGELOG="true" |
104 |
+ GIMP="" |
105 |
+ INSTALL_DIR="${ED}/usr/share/openttd/baseset/" |
106 |
+ PYTHON="${EPYTHON}" |
107 |
+ ) |
108 |
+ |
109 |
+ emake "${myemakeargs[@]}" install |
110 |
+ |
111 |
+ einstalldocs |
112 |
+} |