summaryrefslogtreecommitdiff
path: root/media-gfx/apngdis
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/apngdis
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/apngdis')
-rw-r--r--media-gfx/apngdis/Manifest7
-rw-r--r--media-gfx/apngdis/apngdis-2.9.ebuild39
-rw-r--r--media-gfx/apngdis/files/apngdis-2.9-makefile.patch18
-rw-r--r--media-gfx/apngdis/files/apngdis-2.9-zlib.patch12
-rw-r--r--media-gfx/apngdis/metadata.xml11
5 files changed, 87 insertions, 0 deletions
diff --git a/media-gfx/apngdis/Manifest b/media-gfx/apngdis/Manifest
new file mode 100644
index 000000000000..07d7d88480f2
--- /dev/null
+++ b/media-gfx/apngdis/Manifest
@@ -0,0 +1,7 @@
+AUX apngdis-2.9-makefile.patch 451 SHA256 b45e20fbf836f32df0721f20ab516e8240c03a1af8312f2cb0fe1786ed3531ea SHA512 0b65a55d08e536b9783c2c9a427df9c8f89cbc1acd2d7dd688a409c0b71a7fb1d4c6d6664a6c996b24ce489ef138565f667ce345fa074a2bfd06dc6260ecce16 WHIRLPOOL b12b28dc69117b85bae41623cd6e4734a3de3b8e171bd3f2f957c30a44bbbff1b32a1f93b8d4b6e46b749103e71f09f2b1bf7d027bcdd2e48ac50b420018d21b
+AUX apngdis-2.9-zlib.patch 309 SHA256 65b0c8f5004058c6cae44f3f3053359c5bb563dea7b99c46a204a80a603ca211 SHA512 e3c3df7e29cab787302d8afada3d8a5509b445ba136aa3b4ac08e15dc9148bcab2b22d4871203461cd67f21aa90b46c17507241c94631fd3701fb00b659671e0 WHIRLPOOL f419ba39264daf050d04105941dcff60a2cef7dab4823cb0ee9a567f18ce846abb89e80015e3dc6e8158adcd3417fa2394650a7332394c33c909e2d9b19f87b8
+DIST apngdis-2.9-src.zip 470989 SHA256 9d20082e770ab94b28ff5b989c5d8b7e723a23e32bc804e1638953bf5ba943f2 SHA512 4bcce5066c37ea5e4db0bfaf2f6a81e4d3ba7f5b6c952f598facff27f84cc1a3af778f4db096119cb9f4aa57c0193c90acf7bed28f283b6930f5b3121dd9cf32 WHIRLPOOL 717aab043e5c750fc1011d9ab73430157aef2dd1e0aa6cb0a464c70f57e951052304fa0161325d0207a137e4df9c18bcc34b3190d7302cce898d7bdf07565a73
+EBUILD apngdis-2.9.ebuild 648 SHA256 28207a6bfd7b900222144979287be0913c8e18c7109af1e62a0502aee5a7589e SHA512 879c2f669557667d30475e7901c6469c5eb1e7666d8ff86ae98b5c414995cafc25ad50ad68c5707bf84354d4e44227570d73e6404607565ee50960cbcb3d5625 WHIRLPOOL 432141c81e575d689a312ba402e40781c6c06fc25628cf04f037d6be0d5ed2df739dd283f3eda727440dc2be6c8c4cd4ce0556f9e3d91beea0399d36d39b3a81
+MISC ChangeLog 2778 SHA256 a9aeaba9cd9f08cb5464a0857cf3bc13d1ddd1de5a42301d8157b4c07c7d5992 SHA512 ad5388bdd7a91c5ba3e25275e0c9888b1521c160e1dd9ae6d7e450ec961f304c5cd551f2f5caf7eb42052e071158058182960d177d9c9c108f02cffac09905c4 WHIRLPOOL 0150ba02e38948a56cff7d5962baf394d7a8588725b2b5e4a53121452a161ea8d0ac90d958670fd6bcdd5e74d3693501982506312a797000d7b3a5ccd1099196
+MISC ChangeLog-2015 1328 SHA256 29afab85e5bcab6c78ebbda9da83fbaa99b619d4474a32f376f80d1973ce19db SHA512 5075cc929a5d69153c7273c207ce3f057aa46117a4d973d6d536e2f4745aa21fb57a09f2b197ee67814ebf6f8860bb6259aed2ea612f0561927b6e943f7f0022 WHIRLPOOL c2972231a6a1d79cae0999968cf2ee57f67068f03b329c1a68d33fe180672b4cb533dba8549f45c327dfb93ec7a314ec1fd46607e329e9d3f6a142d8e964efd8
+MISC metadata.xml 336 SHA256 6fba501220d8676e03e04c8f6b3f0bf7a060e60ad872a28ca692cf47ccde66ac SHA512 9c81f32fdffb922866ffb1b28b334fc11a4958bfcd400d3cd5e43ddc309b61e12e1fcdff79c2997de5f3e158350abfdb50747eaba363b5d194b113d826c4c51b WHIRLPOOL 6fdecdb0014d817747fc259cc51125389aa362c984a8068f560b7998bbfef65056c4b5a914e6f188e7fcbf8a1c620252aad048bc2efe7399fcfba12468c8213b
diff --git a/media-gfx/apngdis/apngdis-2.9.ebuild b/media-gfx/apngdis/apngdis-2.9.ebuild
new file mode 100644
index 000000000000..dd459b169f4c
--- /dev/null
+++ b/media-gfx/apngdis/apngdis-2.9.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="extract PNG frames from an APNG"
+HOMEPAGE="https://sourceforge.net/projects/apngdis/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-zlib.patch
+)
+
+src_prepare() {
+ default
+
+ # remove bundled libs
+ rm -r libpng zlib || die
+
+ tc-export CC
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/apngdis/files/apngdis-2.9-makefile.patch b/media-gfx/apngdis/files/apngdis-2.9-makefile.patch
new file mode 100644
index 000000000000..08e6b02e4fde
--- /dev/null
+++ b/media-gfx/apngdis/files/apngdis-2.9-makefile.patch
@@ -0,0 +1,18 @@
+--- apngdis-2.9-src/Makefile
++++ apngdis-2.9-src/Makefile
+@@ -1,11 +1,10 @@
+ PACKAGE = apngdis
+-CC = gcc
+-CFLAGS = -Wall -pedantic
+-CFLAGS_OPT = -O2
+-LIBS = -lstdc++ -lm -lpng -lz
++CC ?= gcc
++CFLAGS += -Wall -pedantic
++LIBS = -lstdc++ -lm -lpng
+
+ all :
+- $(CC) $(CFLAGS) $(CFLAGS_OPT) -o $(PACKAGE) $(PACKAGE).cpp -s $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PACKAGE) $(PACKAGE).cpp $(LIBS)
+
+ .PHONY : clean
+
diff --git a/media-gfx/apngdis/files/apngdis-2.9-zlib.patch b/media-gfx/apngdis/files/apngdis-2.9-zlib.patch
new file mode 100644
index 000000000000..d9ce01007cfb
--- /dev/null
+++ b/media-gfx/apngdis/files/apngdis-2.9-zlib.patch
@@ -0,0 +1,12 @@
+Drop unused zlib header.
+
+--- apngdis-2.9-src/apngdis.cpp
++++ apngdis-2.9-src/apngdis.cpp
+@@ -32,7 +32,6 @@
+ #include <string.h>
+ #include <vector>
+ #include "png.h" /* original (unpatched) libpng is ok */
+-#include "zlib.h"
+
+ #define notabc(c) ((c) < 65 || (c) > 122 || ((c) > 90 && (c) < 97))
+
diff --git a/media-gfx/apngdis/metadata.xml b/media-gfx/apngdis/metadata.xml
new file mode 100644
index 000000000000..8fc352524266
--- /dev/null
+++ b/media-gfx/apngdis/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>graphics@gentoo.org</email>
+ <name>Gentoo Graphics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">apngdis</remote-id>
+ </upstream>
+</pkgmetadata>