summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-12-17 10:26:21 +0000
committerTim Harder <radhermit@gentoo.org>2013-12-17 10:26:21 +0000
commitd7abb86c7524ee14318c000f99d43674617f9886 (patch)
treeb72881e58828f0411e05ba803631c394303ca079 /media-gfx/apng2gif
parentAdd dep on libpng. (diff)
downloadgentoo-2-d7abb86c7524ee14318c000f99d43674617f9886.tar.gz
gentoo-2-d7abb86c7524ee14318c000f99d43674617f9886.tar.bz2
gentoo-2-d7abb86c7524ee14318c000f99d43674617f9886.zip
Version bump.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'media-gfx/apng2gif')
-rw-r--r--media-gfx/apng2gif/ChangeLog10
-rw-r--r--media-gfx/apng2gif/apng2gif-1.6.ebuild35
-rw-r--r--media-gfx/apng2gif/files/apng2gif-1.6-gcc-4.3.patch10
-rw-r--r--media-gfx/apng2gif/files/apng2gif-1.6-makefile.patch17
4 files changed, 70 insertions, 2 deletions
diff --git a/media-gfx/apng2gif/ChangeLog b/media-gfx/apng2gif/ChangeLog
index b68e852df28e..7e7a645303da 100644
--- a/media-gfx/apng2gif/ChangeLog
+++ b/media-gfx/apng2gif/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-gfx/apng2gif
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/apng2gif/ChangeLog,v 1.6 2012/02/23 07:55:50 radhermit Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/apng2gif/ChangeLog,v 1.7 2013/12/17 10:26:21 radhermit Exp $
+
+*apng2gif-1.6 (17 Dec 2013)
+
+ 17 Dec 2013; Tim Harder <radhermit@gentoo.org> +apng2gif-1.6.ebuild,
+ +files/apng2gif-1.6-gcc-4.3.patch, +files/apng2gif-1.6-makefile.patch:
+ Version bump.
23 Feb 2012; Tim Harder <radhermit@gentoo.org> -apng2gif-1.3.ebuild:
Remove old.
diff --git a/media-gfx/apng2gif/apng2gif-1.6.ebuild b/media-gfx/apng2gif/apng2gif-1.6.ebuild
new file mode 100644
index 000000000000..27c6c46c1a30
--- /dev/null
+++ b/media-gfx/apng2gif/apng2gif-1.6.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/apng2gif/apng2gif-1.6.ebuild,v 1.1 2013/12/17 10:26:21 radhermit Exp $
+
+EAPI="5"
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="create a GIF from an APNG"
+HOMEPAGE="http://sourceforge.net/projects/apng2gif/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sys-libs/zlib
+ media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch "${FILESDIR}"/${P}-gcc-4.3.patch
+
+ tc-export CXX
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc readme.txt
+}
diff --git a/media-gfx/apng2gif/files/apng2gif-1.6-gcc-4.3.patch b/media-gfx/apng2gif/files/apng2gif-1.6-gcc-4.3.patch
new file mode 100644
index 000000000000..b3d32647b19b
--- /dev/null
+++ b/media-gfx/apng2gif/files/apng2gif-1.6-gcc-4.3.patch
@@ -0,0 +1,10 @@
+--- apng2gif-1.6-src/apng2gif.cpp
++++ apng2gif-1.6-src/apng2gif.cpp
+@@ -30,6 +30,7 @@
+ */
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <cstring>
+ #include <vector>
+ #include "png.h" /* original (unpatched) libpng is ok */
+ #include "zlib.h"
diff --git a/media-gfx/apng2gif/files/apng2gif-1.6-makefile.patch b/media-gfx/apng2gif/files/apng2gif-1.6-makefile.patch
new file mode 100644
index 000000000000..c004a3c5c0c4
--- /dev/null
+++ b/media-gfx/apng2gif/files/apng2gif-1.6-makefile.patch
@@ -0,0 +1,17 @@
+--- apng2gif-1.6-src/Makefile
++++ apng2gif-1.6-src/Makefile
+@@ -1,11 +1,10 @@
+ PACKAGE = apng2gif
+-CC = gcc
+-CFLAGS = -Wall -pedantic
+-CFLAGS_OPT = -O2
++CXX ?= g++
++CFLAGS += -Wall -pedantic
+ LIBS = -lstdc++ -lm -lpng -lz
+
+ all :
+- $(CC) $(CFLAGS) $(CFLAGS_OPT) -o apng2gif apng2gif.cpp -s $(LIBS)
++ $(CXX) $(CFLAGS) $(LDFLAGS) -o apng2gif apng2gif.cpp $(LIBS)
+
+ .PHONY : clean
+