1 |
commit: 7a977369d8267432cdc288d93c6ab89aaba3c9f0 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 30 00:48:16 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 30 00:49:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a977369 |
7 |
|
8 |
media-gfx/pngtools: add 0.4_p20220314 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/712600 |
11 |
Closes: https://bugs.gentoo.org/871246 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
media-gfx/pngtools/Manifest | 1 + |
15 |
.../files/pngtools-0.4_p20220314-docbook-dtd.patch | 67 ++++++++++++++++++++++ |
16 |
media-gfx/pngtools/pngtools-0.4_p20220314.ebuild | 40 +++++++++++++ |
17 |
3 files changed, 108 insertions(+) |
18 |
|
19 |
diff --git a/media-gfx/pngtools/Manifest b/media-gfx/pngtools/Manifest |
20 |
index 55cbdd5e9bde..b06c58d53e17 100644 |
21 |
--- a/media-gfx/pngtools/Manifest |
22 |
+++ b/media-gfx/pngtools/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
+DIST pngtools-0.4_p20220314.tar.gz 651338 BLAKE2B 9df108da4a52c6292c52a08ddc59163d386bc5de4aaaac96a166ba1e5dc38029b4261e80b8a186997d199ecd11b43fe9e46a41b6b25c65595b7baa4eab43376e SHA512 d1812051d4d1e6306805c96f686798e5af0a304ec045dbf02d77ab3f6432bc0f4e0c96c800bbb159d6ca9e83e8ef479c6d4ba742072fa897ec55808061001676 |
25 |
DIST pngtools_0_4.tgz 1312178 BLAKE2B bff4be34b9a14a459cef2fb5cd1b70bb645c1fca8843bffc2a517b7f56e7a40e104b25b887f8bda227da2e12613c6c568b081b38bf70881b291bb5562eaeb6db SHA512 588b954c7c43ba48442ed4b22ad94fcfb456c7fc84a682e9126ca9d1c9b63dbb8f2d64e6e156664f327efbe11bb2ab1ac29d63ebb8a05329ac14200fb29f95a1 |
26 |
|
27 |
diff --git a/media-gfx/pngtools/files/pngtools-0.4_p20220314-docbook-dtd.patch b/media-gfx/pngtools/files/pngtools-0.4_p20220314-docbook-dtd.patch |
28 |
new file mode 100644 |
29 |
index 000000000000..4523c4ac7208 |
30 |
--- /dev/null |
31 |
+++ b/media-gfx/pngtools/files/pngtools-0.4_p20220314-docbook-dtd.patch |
32 |
@@ -0,0 +1,67 @@ |
33 |
+https://sources.debian.org/patches/pngtools/0.5~git20220314.1ccca3a-2/bug1013909.patch/ |
34 |
+ |
35 |
+Description: Fix build failure without network access caused by missing local DTD. |
36 |
+Author: Michael Schaller <misch@××××××.com> |
37 |
+Bug-Debian: https://bugs.debian.org/1013909 |
38 |
+Forwarded: no |
39 |
+Reviewed-By: Mathieu Malaterre <malat@××××××.org> |
40 |
+Last-Update: 2022-08-11 |
41 |
+ |
42 |
+--- pngtools-0.5~git20220314.1ccca3a.orig/man/docbook/head.sgml |
43 |
++++ pngtools-0.5~git20220314.1ccca3a/man/docbook/head.sgml |
44 |
+@@ -12,5 +12,4 @@ |
45 |
+ (c) Michael Still, 2001 |
46 |
+ --> |
47 |
+ |
48 |
+-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook SGML V4.4//EN" |
49 |
+- "http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd"> |
50 |
++<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" []> |
51 |
+--- pngtools-0.5~git20220314.1ccca3a.orig/man/pngchunkdesc.sgml |
52 |
++++ pngtools-0.5~git20220314.1ccca3a/man/pngchunkdesc.sgml |
53 |
+@@ -12,8 +12,7 @@ |
54 |
+ (c) Michael Still, 2001 |
55 |
+ --> |
56 |
+ |
57 |
+-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook SGML V4.4//EN" |
58 |
+- "http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd"> |
59 |
++<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" []> |
60 |
+ <refentry id="pngchunkdesc"> |
61 |
+ <refmeta> |
62 |
+ <refentrytitle>pngchunkdesc</refentrytitle> |
63 |
+--- pngtools-0.5~git20220314.1ccca3a.orig/man/pngchunks.sgml |
64 |
++++ pngtools-0.5~git20220314.1ccca3a/man/pngchunks.sgml |
65 |
+@@ -12,8 +12,7 @@ |
66 |
+ (c) Michael Still, 2001 |
67 |
+ --> |
68 |
+ |
69 |
+-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook SGML V4.4//EN" |
70 |
+- "http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd"> |
71 |
++<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" []> |
72 |
+ <refentry id="pngchunkdesc"> |
73 |
+ <refmeta> |
74 |
+ <refentrytitle>pngchunks</refentrytitle> |
75 |
+--- pngtools-0.5~git20220314.1ccca3a.orig/man/pngcp.sgml |
76 |
++++ pngtools-0.5~git20220314.1ccca3a/man/pngcp.sgml |
77 |
+@@ -12,8 +12,7 @@ |
78 |
+ (c) Michael Still, 2001 |
79 |
+ --> |
80 |
+ |
81 |
+-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook SGML V4.4//EN" |
82 |
+- "http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd"> |
83 |
++<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" []> |
84 |
+ <refentry id="pngcp"> |
85 |
+ <refmeta> |
86 |
+ <refentrytitle>pngcp</refentrytitle> |
87 |
+--- pngtools-0.5~git20220314.1ccca3a.orig/man/pnginfo.sgml |
88 |
++++ pngtools-0.5~git20220314.1ccca3a/man/pnginfo.sgml |
89 |
+@@ -12,8 +12,7 @@ |
90 |
+ (c) Michael Still, 2001 |
91 |
+ --> |
92 |
+ |
93 |
+-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook SGML V4.4//EN" |
94 |
+- "http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd"> |
95 |
++<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.4//EN" []> |
96 |
+ <refentry id="pnginfo"> |
97 |
+ <refmeta> |
98 |
+ <refentrytitle>pnginfo</refentrytitle> |
99 |
+ |
100 |
|
101 |
diff --git a/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild b/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild |
102 |
new file mode 100644 |
103 |
index 000000000000..9fe86338be40 |
104 |
--- /dev/null |
105 |
+++ b/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild |
106 |
@@ -0,0 +1,40 @@ |
107 |
+# Copyright 1999-2022 Gentoo Authors |
108 |
+# Distributed under the terms of the GNU General Public License v2 |
109 |
+ |
110 |
+EAPI=8 |
111 |
+ |
112 |
+inherit autotools |
113 |
+ |
114 |
+MY_COMMIT="1ccca3a0f3f6882661bbafbfb62feb774ca195d1" |
115 |
+DESCRIPTION="A series of tools for the PNG image format" |
116 |
+HOMEPAGE="https://github.com/mikalstill/pngtools" |
117 |
+SRC_URI="https://github.com/mikalstill/pngtools/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz" |
118 |
+S="${WORKDIR}"/${PN}-${MY_COMMIT} |
119 |
+ |
120 |
+LICENSE="GPL-2" |
121 |
+SLOT="0" |
122 |
+KEYWORDS="~amd64 ~ppc ~x86" |
123 |
+ |
124 |
+RDEPEND="media-libs/libpng:=" |
125 |
+DEPEND="${RDEPEND}" |
126 |
+# https://github.com/mikalstill/pngtools/issues/14 |
127 |
+BDEPEND="app-text/docbook-sgml-utils" |
128 |
+ |
129 |
+PATCHES=( |
130 |
+ "${FILESDIR}"/${PN}-0.4_p20220314-docbook-dtd.patch |
131 |
+) |
132 |
+ |
133 |
+src_prepare() { |
134 |
+ default |
135 |
+ |
136 |
+ eautoreconf |
137 |
+} |
138 |
+ |
139 |
+src_install() { |
140 |
+ default |
141 |
+ |
142 |
+ dodoc ABOUT chunks.txt |
143 |
+ |
144 |
+ docinto examples |
145 |
+ dodoc *.png |
146 |
+} |