[gentoo-commits] repo/gentoo:master commit in: media-gfx/pngtools/

2024-03-04 Thread Sam James
commit: 9a68e7e37fbe30af4d48e279af7a6b2558c6fbdc
Author: Eli Schwartz  gmail  com>
AuthorDate: Mon Mar  4 23:52:36 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Mar  5 04:46:45 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a68e7e3

media-gfx/pngtools: mark as LTO-unsafe

Closes: https://bugs.gentoo.org/875371
Signed-off-by: Eli Schwartz  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 media-gfx/pngtools/pngtools-0.4_p20220314.ebuild | 13 +++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild 
b/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
index 0e411a64e826..67bd84dbf9e8 100644
--- a/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
+++ b/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit autotools
+inherit autotools flag-o-matic
 
 MY_COMMIT="1ccca3a0f3f6882661bbafbfb62feb774ca195d1"
 DESCRIPTION="A series of tools for the PNG image format"
@@ -30,6 +30,15 @@ src_prepare() {
eautoreconf
 }
 
+src_configure() {
+   # -Werror=lto-type-mismatch
+   # https://bugs.gentoo.org/875371
+   # https://github.com/mikalstill/pngtools/issues/21
+   filter-lto
+
+   default
+}
+
 src_install() {
default
 



[gentoo-commits] repo/gentoo:master commit in: media-gfx/pngtools/

2022-10-27 Thread Agostino Sarubbo
commit: 343dfdaabf1b2cbfdcd84d9ef27dbc324f95320a
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Thu Oct 27 07:40:29 2022 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Thu Oct 27 07:40:29 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=343dfdaa

media-gfx/pngtools: Stabilize 0.4_p20220314 ppc, #873559

Signed-off-by: Agostino Sarubbo  gentoo.org>

 media-gfx/pngtools/pngtools-0.4_p20220314.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild 
b/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
index 8889ed8a1a47..0e411a64e826 100644
--- a/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
+++ b/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
@@ -13,7 +13,7 @@ S="${WORKDIR}"/${PN}-${MY_COMMIT}
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
+KEYWORDS="amd64 ppc x86"
 
 RDEPEND="media-libs/libpng:="
 DEPEND="${RDEPEND}"



[gentoo-commits] repo/gentoo:master commit in: media-gfx/pngtools/

2022-10-25 Thread Sam James
commit: 8374f7e21cabda39af4796e4c7dd0b2bbbcf8cbb
Author: Sam James  gentoo  org>
AuthorDate: Tue Oct 25 17:54:36 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Oct 25 17:54:36 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8374f7e2

media-gfx/pngtools: Stabilize 0.4_p20220314 amd64, #873559

Signed-off-by: Sam James  gentoo.org>

 media-gfx/pngtools/pngtools-0.4_p20220314.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild 
b/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
index 68eea465975b..8889ed8a1a47 100644
--- a/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
+++ b/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
@@ -13,7 +13,7 @@ S="${WORKDIR}"/${PN}-${MY_COMMIT}
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc x86"
+KEYWORDS="amd64 ~ppc x86"
 
 RDEPEND="media-libs/libpng:="
 DEPEND="${RDEPEND}"



[gentoo-commits] repo/gentoo:master commit in: media-gfx/pngtools/

2022-09-29 Thread Sam James
commit: 17f04ce2c7e6bfd6d71ce08e263f1b4edbc8b55e
Author: Sam James  gentoo  org>
AuthorDate: Fri Sep 30 00:39:53 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep 30 00:39:53 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17f04ce2

media-gfx/pngtools: add github upstream metadata

Signed-off-by: Sam James  gentoo.org>

 media-gfx/pngtools/metadata.xml | 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/media-gfx/pngtools/metadata.xml b/media-gfx/pngtools/metadata.xml
index aaab041e8885..c8df55eac61d 100644
--- a/media-gfx/pngtools/metadata.xml
+++ b/media-gfx/pngtools/metadata.xml
@@ -1,7 +1,10 @@
 
 https://www.gentoo.org/dtd/metadata.dtd;>
 
-
-  robb...@gentoo.org
-
+   
+   robb...@gentoo.org
+   
+   
+   mikalstill/pngtools
+   
 



[gentoo-commits] repo/gentoo:master commit in: media-gfx/pngtools/files/, media-gfx/pngtools/

2022-09-29 Thread Sam James
commit: 7a977369d8267432cdc288d93c6ab89aaba3c9f0
Author: Sam James  gentoo  org>
AuthorDate: Fri Sep 30 00:48:16 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Sep 30 00:49:48 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a977369

media-gfx/pngtools: add 0.4_p20220314

Closes: https://bugs.gentoo.org/712600
Closes: https://bugs.gentoo.org/871246
Signed-off-by: Sam James  gentoo.org>

 media-gfx/pngtools/Manifest|  1 +
 .../files/pngtools-0.4_p20220314-docbook-dtd.patch | 67 ++
 media-gfx/pngtools/pngtools-0.4_p20220314.ebuild   | 40 +
 3 files changed, 108 insertions(+)

diff --git a/media-gfx/pngtools/Manifest b/media-gfx/pngtools/Manifest
index 55cbdd5e9bde..b06c58d53e17 100644
--- a/media-gfx/pngtools/Manifest
+++ b/media-gfx/pngtools/Manifest
@@ -1 +1,2 @@
+DIST pngtools-0.4_p20220314.tar.gz 651338 BLAKE2B 
9df108da4a52c6292c52a08ddc59163d386bc5de4c96a166ba1e5dc38029b4261e80b8a186997d199ecd11b43fe9e46a41b6b25c65595b7baa4eab43376e
 SHA512 
d1812051d4d1e6306805c96f686798e5af0a304ec045dbf02d77ab3f6432bc0f4e0c96c800bbb159d6ca9e83e8ef479c6d4ba742072fa897ec55808061001676
 DIST pngtools_0_4.tgz 1312178 BLAKE2B 
bff4be34b9a14a459cef2fb5cd1b70bb645c1fca8843bffc2a517b7f56e7a40e104b25b887f8bda227da2e12613c6c568b081b38bf70881b291bb5562eaeb6db
 SHA512 
588b954c7c43ba48442ed4b22ad94fcfb456c7fc84a682e9126ca9d1c9b63dbb8f2d64e6e156664f327efbe11bb2ab1ac29d63ebb8a05329ac14200fb29f95a1

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
new file mode 100644
index ..4523c4ac7208
--- /dev/null
+++ b/media-gfx/pngtools/files/pngtools-0.4_p20220314-docbook-dtd.patch
@@ -0,0 +1,67 @@
+https://sources.debian.org/patches/pngtools/0.5~git20220314.1ccca3a-2/bug1013909.patch/
+
+Description: Fix build failure without network access caused by missing local 
DTD.
+Author: Michael Schaller 
+Bug-Debian: https://bugs.debian.org/1013909
+Forwarded: no
+Reviewed-By: Mathieu Malaterre 
+Last-Update: 2022-08-11
+
+--- pngtools-0.5~git20220314.1ccca3a.orig/man/docbook/head.sgml
 pngtools-0.5~git20220314.1ccca3a/man/docbook/head.sgml
+@@ -12,5 +12,4 @@
+  (c) Michael Still, 2001
+ -->
+ 
+-http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd;>
++
+--- pngtools-0.5~git20220314.1ccca3a.orig/man/pngchunkdesc.sgml
 pngtools-0.5~git20220314.1ccca3a/man/pngchunkdesc.sgml
+@@ -12,8 +12,7 @@
+  (c) Michael Still, 2001
+ -->
+ 
+-http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd;>
++
+ 
+ 
+ pngchunkdesc
+--- pngtools-0.5~git20220314.1ccca3a.orig/man/pngchunks.sgml
 pngtools-0.5~git20220314.1ccca3a/man/pngchunks.sgml
+@@ -12,8 +12,7 @@
+  (c) Michael Still, 2001
+ -->
+ 
+-http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd;>
++
+ 
+ 
+ pngchunks
+--- pngtools-0.5~git20220314.1ccca3a.orig/man/pngcp.sgml
 pngtools-0.5~git20220314.1ccca3a/man/pngcp.sgml
+@@ -12,8 +12,7 @@
+  (c) Michael Still, 2001
+ -->
+ 
+-http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd;>
++
+ 
+ 
+ pngcp
+--- pngtools-0.5~git20220314.1ccca3a.orig/man/pnginfo.sgml
 pngtools-0.5~git20220314.1ccca3a/man/pnginfo.sgml
+@@ -12,8 +12,7 @@
+  (c) Michael Still, 2001
+ -->
+ 
+-http://www.oasis-open.org/docbook/sgml/4.4/docbook.dtd;>
++
+ 
+ 
+ pnginfo
+

diff --git a/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild 
b/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
new file mode 100644
index ..9fe86338be40
--- /dev/null
+++ b/media-gfx/pngtools/pngtools-0.4_p20220314.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+MY_COMMIT="1ccca3a0f3f6882661bbafbfb62feb774ca195d1"
+DESCRIPTION="A series of tools for the PNG image format"
+HOMEPAGE="https://github.com/mikalstill/pngtools;
+SRC_URI="https://github.com/mikalstill/pngtools/archive/${MY_COMMIT}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${MY_COMMIT}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="media-libs/libpng:="
+DEPEND="${RDEPEND}"
+# https://github.com/mikalstill/pngtools/issues/14
+BDEPEND="app-text/docbook-sgml-utils"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.4_p20220314-docbook-dtd.patch
+)
+
+src_prepare() {
+   default
+
+   eautoreconf
+}
+
+src_install() {
+   default
+
+   dodoc ABOUT chunks.txt
+
+   docinto examples
+   dodoc *.png
+}



[gentoo-commits] repo/gentoo:master commit in: media-gfx/pngtools/

2019-12-13 Thread David Seifert
commit: bb16b60fe5fe0a4ae2d0bf225b16634b1c5755f7
Author: David Seifert  gentoo  org>
AuthorDate: Fri Dec 13 15:07:19 2019 +
Commit: David Seifert  gentoo  org>
CommitDate: Fri Dec 13 15:07:19 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb16b60f

media-gfx/pngtools: Port to EAPI 7

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert  gentoo.org>

 media-gfx/pngtools/pngtools-0.4-r2.ebuild | 33 +--
 1 file changed, 18 insertions(+), 15 deletions(-)

diff --git a/media-gfx/pngtools/pngtools-0.4-r2.ebuild 
b/media-gfx/pngtools/pngtools-0.4-r2.ebuild
index b561e2cde5e..18ba166788a 100644
--- a/media-gfx/pngtools/pngtools-0.4-r2.ebuild
+++ b/media-gfx/pngtools/pngtools-0.4-r2.ebuild
@@ -1,34 +1,37 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-inherit autotools eutils
+EAPI=7
 
-MY_PV=${PV/./_}
+inherit autotools
 
 DESCRIPTION="A series of tools for the PNG image format"
 HOMEPAGE="http://www.stillhq.com/pngtools/;
-SRC_URI="http://www.stillhq.com/pngtools/source/pngtools_${MY_PV}.tgz;
+SRC_URI="http://www.stillhq.com/pngtools/source/pngtools_${PV/./_}.tgz;
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
-IUSE=""
 
-RDEPEND=">=media-libs/libpng-1.4:0"
+RDEPEND="media-libs/libpng:="
 DEPEND="${RDEPEND}"
 
-src_prepare() {
-   epatch "${FILESDIR}"/${PN}-0.3-implicit-declarations.patch
-   epatch "${FILESDIR}"/${P}-libpng14.patch
-   epatch "${FILESDIR}"/${P}-libpng15-fixes.patch
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.3-implicit-declarations.patch
+   "${FILESDIR}"/${P}-libpng14.patch
+   "${FILESDIR}"/${P}-libpng15-fixes.patch
+)
 
+src_prepare() {
+   default
+   mv configure.{in,ac} || die
eautoreconf
 }
 
 src_install() {
-   emake DESTDIR="${D}" install
-   dodoc ABOUT AUTHORS ChangeLog NEWS README chunks.txt
-   insinto /usr/share/doc/${PF}/examples
-   doins *.png
+   default
+   dodoc ABOUT chunks.txt
+
+   docinto examples
+   dodoc *.png
 }