summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2015-08-24 23:55:10 -0400
committerTim Harder <radhermit@gentoo.org>2015-08-24 23:57:26 -0400
commit84d4eca1e8f27477244751cd7844ccea0677a6b1 (patch)
treecda9f2c0aee7a467da96fdf05d2b589d9a05c0ed /media-gfx/apngdis
parentapp-vim/gtk-syntax: remove old (diff)
downloadgentoo-84d4eca1e8f27477244751cd7844ccea0677a6b1.tar.gz
gentoo-84d4eca1e8f27477244751cd7844ccea0677a6b1.tar.bz2
gentoo-84d4eca1e8f27477244751cd7844ccea0677a6b1.zip
media-gfx/apngdis: version bump
Diffstat (limited to 'media-gfx/apngdis')
-rw-r--r--media-gfx/apngdis/Manifest1
-rw-r--r--media-gfx/apngdis/apngdis-2.8.ebuild33
-rw-r--r--media-gfx/apngdis/files/apngdis-2.8-makefile.patch17
3 files changed, 51 insertions, 0 deletions
diff --git a/media-gfx/apngdis/Manifest b/media-gfx/apngdis/Manifest
index 33461dac107a..59ac5b789bf2 100644
--- a/media-gfx/apngdis/Manifest
+++ b/media-gfx/apngdis/Manifest
@@ -1 +1,2 @@
DIST apngdis-2.7-src.zip 450869 SHA256 cce7470d1ec0c518655d63133931e16d01050033405b67220e94ca7b2b97920d SHA512 016c9f0fe1ed7a26f9982414ea797b7a1f1b854ea9d13d089f0fbf9886520b637dc3dd0a7968137db4055f039afb1a5015fa2d1611b48ebb2e98af1b8e3c56fb WHIRLPOOL f9b7360da201de55a86f45decb265d9b71227c4ce6441d8faeb2d6d9211dca8d3da7f76f5e6dd66e8f3f61ddd9d58cb66afddac451dad7a1ec9fbec2080687ed
+DIST apngdis-2.8-src.zip 460138 SHA256 58f5082025f3e97d9072dfe3fbd3abc43252ee118a7463209b65d05b8fd71741 SHA512 f434bb10510254ac5aa581521abe45fd2437671451a5eccba65e71c2ea3f867591aa2986f865239c2495491ee37fcc0eb43e119457dba70dc27f2087082b38e8 WHIRLPOOL 19b75a02b1a2326562dd97f139013473cbb762d5e26aff32fbd410df0f04050d8d8823c434aead695fc68d7cf7398eb6a8b445f3c9a8f33382eee55afc0093f5
diff --git a/media-gfx/apngdis/apngdis-2.8.ebuild b/media-gfx/apngdis/apngdis-2.8.ebuild
new file mode 100644
index 000000000000..2fe2f33c9cbc
--- /dev/null
+++ b/media-gfx/apngdis/apngdis-2.8.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="extract PNG frames from an APNG"
+HOMEPAGE="http://sourceforge.net/projects/apngdis/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="sys-libs/zlib
+ media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+
+ tc-export CXX
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/apngdis/files/apngdis-2.8-makefile.patch b/media-gfx/apngdis/files/apngdis-2.8-makefile.patch
new file mode 100644
index 000000000000..f8f69689a6d4
--- /dev/null
+++ b/media-gfx/apngdis/files/apngdis-2.8-makefile.patch
@@ -0,0 +1,17 @@
+--- apngdis-2.8-src/Makefile
++++ apngdis-2.8-src/Makefile
+@@ -1,11 +1,10 @@
+ PACKAGE = apngdis
+-CC = gcc
+-CFLAGS = -Wall -pedantic
+-CFLAGS_OPT = -O2
++CCX ?= g++
++CXXFLAGS += -Wall -pedantic
+ LIBS = -lstdc++ -lm -lpng -lz
+
+ all :
+- $(CC) $(CFLAGS) $(CFLAGS_OPT) -o $(PACKAGE) $(PACKAGE).cpp -s $(LIBS)
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(PACKAGE) $(PACKAGE).cpp $(LIBS)
+
+ .PHONY : clean
+