summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2017-08-18 00:09:59 -0400
committerTim Harder <radhermit@gentoo.org>2017-08-18 00:09:59 -0400
commit0fc5ee80ac2245c68dc3698a7a1170c8e95f03cc (patch)
treeaeb941d31dae4e5672a27561256c7a194d4c0da6 /media-gfx/apng2gif
parentmedia-gfx/apngasm: LGPL license is only used if 7z support is enabled (diff)
downloadgentoo-0fc5ee80ac2245c68dc3698a7a1170c8e95f03cc.tar.gz
gentoo-0fc5ee80ac2245c68dc3698a7a1170c8e95f03cc.tar.bz2
gentoo-0fc5ee80ac2245c68dc3698a7a1170c8e95f03cc.zip
media-gfx/apng2gif: version bump to 1.8
Diffstat (limited to 'media-gfx/apng2gif')
-rw-r--r--media-gfx/apng2gif/Manifest1
-rw-r--r--media-gfx/apng2gif/apng2gif-1.8.ebuild40
-rw-r--r--media-gfx/apng2gif/files/apng2gif-1.8-makefile.patch18
-rw-r--r--media-gfx/apng2gif/files/apng2gif-1.8-zlib.patch12
4 files changed, 71 insertions, 0 deletions
diff --git a/media-gfx/apng2gif/Manifest b/media-gfx/apng2gif/Manifest
index 9bc41466d7a2..a846b6c1f5e4 100644
--- a/media-gfx/apng2gif/Manifest
+++ b/media-gfx/apng2gif/Manifest
@@ -1,2 +1,3 @@
DIST apng2gif-1.6-src.zip 455673 SHA256 cd46d7d6de34fed11822ec7f2257b296ec5e45ba1cfa53f70c7974fdae456ffe SHA512 4beeb628f26614b9084ac33eba748559eeb36ee9fb9cf17559973b5c629d898f868a5ae719bff6745ce60dfa99958fd503d2c96bc816f522dbb415383af87462 WHIRLPOOL c969674ea8049c88b8c18c8bd75f8bb6598f61a0e6c84b113b3eba8b4de3a520111a3423c8331969779636aa704c8bcbd96493d3c17b0eeed39c379e080be9eb
DIST apng2gif-1.7-src.zip 465489 SHA256 6c7b2cce851378f2fc8f6b490ce098e9cf0038aa05da7099771c8be94620e6ca SHA512 3bd42eeefee161037867f35dfdf80094c4d51892930ee271caf307b29d77a387762183d4d86a413c5c654181fd391c5c09fffe24adcc18d0a91aec2b485835d6 WHIRLPOOL b2a2f8e5b826036c04e06351741dbed8470d1d9558661abe22fb864852db7e55e134f636d02b9add1f49ff1cccf738632c15203613608f317fa2aa3aeee83351
+DIST apng2gif-1.8-src.zip 476207 SHA256 9a07e386017dc696573cd7bc7b46b2575c06da0bc68c3c4f1c24a4b39cdedd4d SHA512 54fee0bf1e5448531298a816562a611cb5f2f661d40ade622e2d24e58a30de96fa69254ee891c5329e8b065c999b95620215d6e1ae276f0c596ffe69b0b31cda WHIRLPOOL 202e314d0ceb731c669349cef3217c7ce520436481694e889beda0f674c624f5c39a6e97df8f8d288259643939b719ff21bcb689c28c6bf6d771adf305c829b5
diff --git a/media-gfx/apng2gif/apng2gif-1.8.ebuild b/media-gfx/apng2gif/apng2gif-1.8.ebuild
new file mode 100644
index 000000000000..83fb20c4a942
--- /dev/null
+++ b/media-gfx/apng2gif/apng2gif-1.8.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="create a GIF from an APNG"
+HOMEPAGE="https://sourceforge.net/projects/apng2gif/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+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/apng2gif/files/apng2gif-1.8-makefile.patch b/media-gfx/apng2gif/files/apng2gif-1.8-makefile.patch
new file mode 100644
index 000000000000..c0e778cf1de7
--- /dev/null
+++ b/media-gfx/apng2gif/files/apng2gif-1.8-makefile.patch
@@ -0,0 +1,18 @@
+--- apng2gif-1.8-src/Makefile
++++ apng2gif-1.8-src/Makefile
+@@ -1,11 +1,10 @@
+ PACKAGE = apng2gif
+-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/apng2gif/files/apng2gif-1.8-zlib.patch b/media-gfx/apng2gif/files/apng2gif-1.8-zlib.patch
new file mode 100644
index 000000000000..47d7e77cb89f
--- /dev/null
+++ b/media-gfx/apng2gif/files/apng2gif-1.8-zlib.patch
@@ -0,0 +1,12 @@
+Drop unused zlib header.
+
+--- apng2gif-1.8-src/apng2gif.cpp
++++ apng2gif-1.8-src/apng2gif.cpp
+@@ -33,7 +33,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))
+