summaryrefslogtreecommitdiff
path: root/media-gfx/pngnq
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/pngnq
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/pngnq')
-rw-r--r--media-gfx/pngnq/Manifest7
-rw-r--r--media-gfx/pngnq/files/pngnq-1.0-libpng14.patch13
-rw-r--r--media-gfx/pngnq/files/pngnq-1.0-libpng15.patch13
-rw-r--r--media-gfx/pngnq/metadata.xml8
-rw-r--r--media-gfx/pngnq/pngnq-1.1.ebuild25
5 files changed, 66 insertions, 0 deletions
diff --git a/media-gfx/pngnq/Manifest b/media-gfx/pngnq/Manifest
new file mode 100644
index 000000000000..316428749565
--- /dev/null
+++ b/media-gfx/pngnq/Manifest
@@ -0,0 +1,7 @@
+AUX pngnq-1.0-libpng14.patch 378 SHA256 2f56e5f3c71462d70fb1e73f103bdab136399afba7ae49df3357622a7f9e17d0 SHA512 7a91550806ecc84bb5646b8a654f26d059ed253389626f5069de9e43b0667d2e2c3ee7a94efa96e908b1083d9af5efb80f942a78b6547b0bca8827c245f154fa WHIRLPOOL 9abb54c71110ceb1c6f46ef05f52061b048d9dcc498c895d7b4f7d4214e37ef07d6ccf3001d6023a62e07435cf75f0d40a0169e57762cdac9188a6653b60fc36
+AUX pngnq-1.0-libpng15.patch 355 SHA256 4f9675b5ff007fe46aad998df17a94b683aa4a647d93eb600b15c2cde117e56f SHA512 5ae6782a36bff27560318d5ca98101a49c0d66db71682d4976407af18e637740c68c1eb4b609d1b301e23d3dd62ef4a8bbe180f941e5333e91e17d900f66e96c WHIRLPOOL 2883f7dc593341fe199509ed0572b8925961d71be5c12a663f69e0ed747d39f8d247bc44a3a8993b900f74061bf5fe43be44f413ce4335075f9993410350c439
+DIST pngnq-1.1.tar.gz 117372 SHA256 c147fe0a94b32d323ef60be9fdcc9b683d1a82cd7513786229ef294310b5b6e2 SHA512 3bbc4ace1375517a7a73bbc65ff39512ef316e4b67fc3941cd0b7269e584a26f915f30591f8aa1c44eea73fe4ebe9519063a7bc426841e412c648aaa188be234 WHIRLPOOL 7d9ef79ed10d452cae47262104258210b0d51f898c477dd3d6d6ef23c7cde577c15e7b29ada4b14217bc4005a8efea2ee244b0eefa9e5bfc95adf812d133eb6d
+EBUILD pngnq-1.1.ebuild 541 SHA256 51e6f5a58cd1be7b1a9fcece3939c02c6ed8663c5d038d57201ab4a90e55441c SHA512 2c6c8e8f6b8e06945c36bd9532855e2da452f44c9796c347807ba99a8beb734d5643ce0ff195b0c09cfd4711e50b2fe0ed2e7e4ced37a9fef674c11220e9ce1e WHIRLPOOL 1dd4fd3188bc31804952d477431fb6e345ba120e467c2867b4ece267f5bdef2384502f0d04141622a4376da4cfcd599d77b2098ebd8f65af6487d1c6ecef3257
+MISC ChangeLog 2581 SHA256 7c4f67fbc46f908904a5afeb3cdd623366dddaffb5abb4de6ca9c754a6f67517 SHA512 c7f11362b39c3f682c01dbec3d5334e2e720e77aec3ca482b37dca877d8e52097027acd2e50735914fe6d80bfc4fefd997cdc179fcb289c582b5148affb61a47 WHIRLPOOL f45547ffa85392b40ee310d76ea098053ff5c02df19161125afd6349ae34d61db2a48c2e7e0a1b47b25a7244135396c9c22cef9b84f81375a19c3aca94aaf51f
+MISC ChangeLog-2015 2190 SHA256 a085a45a97edffde20feb0e8091820ba530c67cc6c1036dee529934643d531d3 SHA512 ec727a9cff3fd2c2622eb64a6c3bb4819a199d4776dfa8aea453b2c2f537b73d567e603f870f2e268a0541912beb67bb9caceeee25345bf0cc7052634c1e6185 WHIRLPOOL 65f66cc0d0dd9d889af22991b526ac8ad11bd10fb96ee401af23877210a4a635c5889dff2d6a8dd8f64818265b97f825ef9de732a2e045779fbd0591d40557de
+MISC metadata.xml 242 SHA256 8ee12910d3133c3a4f246265a674a77362383c1dea5f9e45004f6fe0f7f5cad2 SHA512 8490ed93a302cb46556d266836db2d7c6a317b2dd903cfcde06b8fb9d1455b925cd6114f41acac1175e1da6a707bf9f0ab5737d9b52936fb4e75974fd8e8d60a WHIRLPOOL ac59b6aaee4c7f84ca2a7817cf6498b33ec40dcbb3b1c2cd3719fbe18176c7c710ad2422b9d9e73e90a4729ee2908a94f8f2ece00281a58206819232d10b042e
diff --git a/media-gfx/pngnq/files/pngnq-1.0-libpng14.patch b/media-gfx/pngnq/files/pngnq-1.0-libpng14.patch
new file mode 100644
index 000000000000..e2eb9c8972e5
--- /dev/null
+++ b/media-gfx/pngnq/files/pngnq-1.0-libpng14.patch
@@ -0,0 +1,13 @@
+http://aur.archlinux.org/packages.php?ID=10325
+
+--- src/rwpng.c
++++ src/rwpng.c
+@@ -80,7 +80,7 @@
+ * have used slightly more general png_sig_cmp() function instead */
+
+ fread(sig, 1, 8, infile);
+- if (!png_check_sig(sig, 8)) {
++ if (png_sig_cmp(sig, 0, 8)) {
+ mainprog_ptr->retval = 21; /* bad signature */
+ return mainprog_ptr->retval;
+ }
diff --git a/media-gfx/pngnq/files/pngnq-1.0-libpng15.patch b/media-gfx/pngnq/files/pngnq-1.0-libpng15.patch
new file mode 100644
index 000000000000..7590431dcd3a
--- /dev/null
+++ b/media-gfx/pngnq/files/pngnq-1.0-libpng15.patch
@@ -0,0 +1,13 @@
+--- src/rwpng.c
++++ src/rwpng.c
+@@ -31,8 +31,9 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <zlib.h>
+
+-#include "png.h" /* libpng header; includes zlib.h */
++#include "png.h" /* libpng header */
+ #include "rwpng.h" /* typedefs, common macros, public prototypes */
+
+ /* future versions of libpng will provide this macro: */
diff --git a/media-gfx/pngnq/metadata.xml b/media-gfx/pngnq/metadata.xml
new file mode 100644
index 000000000000..278b141113f1
--- /dev/null
+++ b/media-gfx/pngnq/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">pngnq</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pngnq/pngnq-1.1.ebuild b/media-gfx/pngnq/pngnq-1.1.ebuild
new file mode 100644
index 000000000000..d2580bf868b5
--- /dev/null
+++ b/media-gfx/pngnq/pngnq-1.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+WANT_AUTOMAKE=1.13
+inherit autotools eutils
+
+DESCRIPTION="Pngnq is a tool for quantizing PNG images in RGBA format"
+HOMEPAGE="http://pngnq.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="BSD pngnq rwpng"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="media-libs/libpng:0="
+DEPEND=${RDEPEND}
+
+DOCS=( NEWS README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.0-libpng1{4,5}.patch
+ eautoreconf
+}