1 |
commit: 1a58e7e9afe752003c8b6fa860565bb306c919a0 |
2 |
Author: Peter Alfredsen <crabbedhaloablution <AT> icloud <DOT> com> |
3 |
AuthorDate: Thu Dec 17 18:46:23 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 27 05:13:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a58e7e9 |
7 |
|
8 |
media-gfx/tuxpaint: version bump to 0.9.24 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/385951 |
11 |
Closes: https://bugs.gentoo.org/581036 |
12 |
Closes: https://bugs.gentoo.org/671528 |
13 |
Closes: https://bugs.gentoo.org/734048 |
14 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
15 |
Signed-off-by: Peter Alfredsen <crabbedhaloablution <AT> icloud.com> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/18669 |
17 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
18 |
|
19 |
media-gfx/tuxpaint/Manifest | 1 + |
20 |
media-gfx/tuxpaint/tuxpaint-0.9.24.ebuild | 71 +++++++++++++++++++++++++++++++ |
21 |
2 files changed, 72 insertions(+) |
22 |
|
23 |
diff --git a/media-gfx/tuxpaint/Manifest b/media-gfx/tuxpaint/Manifest |
24 |
index d655340a80e..97bc4b03c54 100644 |
25 |
--- a/media-gfx/tuxpaint/Manifest |
26 |
+++ b/media-gfx/tuxpaint/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST tuxpaint-0.9.21.tar.gz 9543034 BLAKE2B 196a743542d72e3dc5cea69b9e66a3baecdde7e3b288cb6759632d2b472f69db8d70ad404737416afe7f2ef4d0c0d21c7b2caadb64ca8d21a909e275ee6fcc46 SHA512 fafd80fe7a5a4d65236c8b5a4f15c644c76180e0e4ed7e774795572b70cc38ddb3273be2a93f041d74a1e536a5a9386c18e51987425ea1a3ff910661e4b0afb3 |
29 |
+DIST tuxpaint-0.9.24.tar.gz 15561675 BLAKE2B 971baec8b7728cbb54a2a45b604c152a9620d0f6a1856cca99482ad0fd76f2a4493aab81f54e10e5da4d81800b0e3506cb73dda0e00510ef966b0c98f8aa5cb4 SHA512 a4ee9eea833f9a6313701a4686f9f276570df84436c68d9a3d04e9448a8ea00833207e1034965e15145be744194c7b9a7d3c91bdfa3489d06a61de84b64cc723 |
30 |
|
31 |
diff --git a/media-gfx/tuxpaint/tuxpaint-0.9.24.ebuild b/media-gfx/tuxpaint/tuxpaint-0.9.24.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..21f61535665 |
34 |
--- /dev/null |
35 |
+++ b/media-gfx/tuxpaint/tuxpaint-0.9.24.ebuild |
36 |
@@ -0,0 +1,71 @@ |
37 |
+# Copyright 1999-2020 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+inherit desktop toolchain-funcs xdg |
43 |
+ |
44 |
+DESCRIPTION="Drawing program designed for young children" |
45 |
+HOMEPAGE="http://www.tuxpaint.org/" |
46 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~ppc ~x86" |
50 |
+RDEPEND=" |
51 |
+ app-text/libpaper |
52 |
+ dev-libs/fribidi |
53 |
+ gnome-base/librsvg:2 |
54 |
+ >=media-libs/libpng-1.2:0= |
55 |
+ >=media-libs/freetype-2:2 |
56 |
+ media-libs/libsdl |
57 |
+ media-libs/sdl-image[png] |
58 |
+ media-libs/sdl-mixer |
59 |
+ media-libs/sdl-pango |
60 |
+ media-libs/sdl-ttf |
61 |
+ x11-libs/cairo |
62 |
+ " |
63 |
+DEPEND="${RDEPEND}" |
64 |
+BDEPEND=" |
65 |
+ dev-util/gperf |
66 |
+ media-gfx/imagemagick[png] |
67 |
+ sys-devel/gettext |
68 |
+ " |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ xdg_src_prepare |
72 |
+ sed -i \ |
73 |
+ -e 's|linux_ARCH_INSTALL:=install-xdg|linux_ARCH_INSTALL:=|' \ |
74 |
+ -e "s|linux_PREFIX:=/usr/local|linux_PREFIX:=/usr|" \ |
75 |
+ -e "s:/lib/:/$(get_libdir)/:g" \ |
76 |
+ -e 's:/share/doc/tuxpaint-$(VER_VERSION)/:'"/share/doc/${PF}/:g" \ |
77 |
+ -e '/@gzip -f/d' \ |
78 |
+ -e '/@chmod a+rx,g-w,o-w $(MAN_PREFIX)/d' \ |
79 |
+ -e "s|linux_ARCH_CFLAGS:=|linux_ARCH_CFLAGS:= ${CFLAGS}|" \ |
80 |
+ Makefile || die |
81 |
+} |
82 |
+ |
83 |
+src_compile() { |
84 |
+ # parallel build may break things |
85 |
+ emake -j1 CC="$(tc-getCC)" |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ emake -j1 DESTDIR="${D}" install |
90 |
+ local file size |
91 |
+ for file in data/images/icon[0-9]*x[0-9]*.png; do |
92 |
+ size=${file##*/icon} |
93 |
+ size=${size%%x*} |
94 |
+ newicon -s "${size}" "${file}" tux4kids-tuxpaint.png |
95 |
+ done |
96 |
+ newmenu src/tuxpaint.desktop tux4kids-tuxpaint.desktop |
97 |
+ dodoc docs/*.txt |
98 |
+ dodoc docs/en/*.txt |
99 |
+} |
100 |
+ |
101 |
+pkg_postinst() { |
102 |
+ xdg_pkg_postinst |
103 |
+ if ! has_version "media-gfx/tuxpaint-stamps"; then |
104 |
+ elog "For additional graphic stamps, you can emerge the" |
105 |
+ elog "media-gfx/tuxpaint-stamps package." |
106 |
+ fi |
107 |
+} |