1 |
commit: e101e08423f550004c4d5de0af8ec65557407807 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 26 21:24:10 2019 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 26 21:24:10 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e101e084 |
7 |
|
8 |
games-kids/tuxtype: Bump to 1.8.3, fix use of games group |
9 |
|
10 |
Suggested-by: maurerpe |
11 |
Closes: https://bugs.gentoo.org/658814 |
12 |
Package-Manager: Portage-2.3.79, Repoman-2.3.17 |
13 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
14 |
|
15 |
games-kids/tuxtype/Manifest | 1 + |
16 |
.../tuxtype/files/tuxtype-1.8.3-games-group.patch | 11 +++++ |
17 |
games-kids/tuxtype/tuxtype-1.8.3.ebuild | 55 ++++++++++++++++++++++ |
18 |
3 files changed, 67 insertions(+) |
19 |
|
20 |
diff --git a/games-kids/tuxtype/Manifest b/games-kids/tuxtype/Manifest |
21 |
index 7767407cec5..be5b7102a95 100644 |
22 |
--- a/games-kids/tuxtype/Manifest |
23 |
+++ b/games-kids/tuxtype/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST tuxtype-1.8.1.tar.gz 11470321 BLAKE2B 13650d319e75ed9770113475841780c3413b1d9918f9641bb5b32cf67a622ab731c54149e52252f69030ab8e016b4de408a835aaed29cbf5772213b58cab3e65 SHA512 c7285ece93168260215e20cb5e4f4a46da00687c22241e70f97f735e19501ea8f1abb38e4070fac108c524e5aa3f23f680acef6ef9f5654bc2dab954bcadab01 |
26 |
+DIST tuxtype-1.8.3.tar.gz 11805625 BLAKE2B f34b2386234001452a3aba8afda7206a6bf674e6e60d5e5a8ea889e462f6979615f46bd47d62353c75e814c785e6a2ce97728f8cef6c44e43bb799b633ca0175 SHA512 7638cf7b5cb3a02072d36b43d385e43797bb846c5a69fda532432fb80ece19c44ca7b9b54bd73d4d3b7462b18f90cadb4648ed82a1d9e4822d7f3bd2c7a89343 |
27 |
|
28 |
diff --git a/games-kids/tuxtype/files/tuxtype-1.8.3-games-group.patch b/games-kids/tuxtype/files/tuxtype-1.8.3-games-group.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..444794c5f5e |
31 |
--- /dev/null |
32 |
+++ b/games-kids/tuxtype/files/tuxtype-1.8.3-games-group.patch |
33 |
@@ -0,0 +1,11 @@ |
34 |
+diff -Naur a/Makefile.am b/Makefile.am |
35 |
+--- a/Makefile.am 2014-08-20 04:47:21.000000000 +0100 |
36 |
++++ b/Makefile.am 2019-11-26 21:12:23.430972975 +0000 |
37 |
+@@ -49,7 +49,6 @@ |
38 |
+ $(MKDIR_P) -m 2755 $(DESTDIR)$(pkglocalstatedir) |
39 |
+ $(MKDIR_P) -m 2755 $(DESTDIR)$(pkglocalstatedir)/words |
40 |
+ # chown root:games $(DESTDIR)$(pkglocalstatedir) |
41 |
+- chown root:games $(DESTDIR)$(pkglocalstatedir)/words |
42 |
+ |
43 |
+ |
44 |
+ uninstall-hook: |
45 |
|
46 |
diff --git a/games-kids/tuxtype/tuxtype-1.8.3.ebuild b/games-kids/tuxtype/tuxtype-1.8.3.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..b808b1e4682 |
49 |
--- /dev/null |
50 |
+++ b/games-kids/tuxtype/tuxtype-1.8.3.ebuild |
51 |
@@ -0,0 +1,55 @@ |
52 |
+# Copyright 1999-2019 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+ |
57 |
+inherit autotools desktop xdg |
58 |
+ |
59 |
+DESCRIPTION="Typing tutorial with lots of eye-candy" |
60 |
+HOMEPAGE="https://github.com/tux4kids/tuxtype" |
61 |
+SRC_URI="https://github.com/tux4kids/${PN}/archive/upstream/${PV}.tar.gz -> ${P}.tar.gz" |
62 |
+ |
63 |
+LICENSE="GPL-2 OFL-1.1" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
+IUSE="svg" |
67 |
+ |
68 |
+DEPEND="acct-group/gamestat |
69 |
+ media-libs/libsdl[video] |
70 |
+ media-libs/sdl-image |
71 |
+ media-libs/sdl-mixer |
72 |
+ media-libs/sdl-pango |
73 |
+ media-libs/sdl-ttf |
74 |
+ svg? ( gnome-base/librsvg:2 )" |
75 |
+ |
76 |
+RDEPEND="${DEPEND}" |
77 |
+ |
78 |
+S="${WORKDIR}/${PN}-upstream-${PV}" |
79 |
+ |
80 |
+PATCHES=( |
81 |
+ "${FILESDIR}"/${PN}-1.8.3-games-group.patch |
82 |
+) |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ xdg_src_prepare |
86 |
+ eautoreconf |
87 |
+} |
88 |
+ |
89 |
+src_configure() { |
90 |
+ econf \ |
91 |
+ --localedir="${EPREFIX}"/usr/share/locale \ |
92 |
+ $(use_with svg rsvg) |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ emake install DESTDIR="${D}" |
97 |
+ rm -v "${ED}"/usr/share/doc/${PF}/{ABOUT-NLS,COPYING,INSTALL} || die |
98 |
+ keepdir /etc/${PN} /var/lib/${PN}/words |
99 |
+ |
100 |
+ newicon -s 64 icon.png ${PN}.png |
101 |
+ make_desktop_entry ${PN} TuxTyping |
102 |
+ |
103 |
+ fowners root:gamestat /var/lib/${PN} /usr/bin/${PN} |
104 |
+ fperms 660 /var/lib/${PN} |
105 |
+ fperms 2755 /usr/bin/${PN} |
106 |
+} |