summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-03-21 11:28:17 +0100
committerLars Wendler <polynomial-c@gentoo.org>2019-03-21 11:29:22 +0100
commitc2b27319336b6c56b87e4d0e0961050b3529a329 (patch)
tree5d4b890a57bad13d09af580016cdf49b490ffce5 /media-gfx/gif2png
parentpackage.mask: Last rite multiple pkgs failing w/ openssl-1.1+ (diff)
downloadgentoo-c2b27319336b6c56b87e4d0e0961050b3529a329.tar.gz
gentoo-c2b27319336b6c56b87e4d0e0961050b3529a329.tar.bz2
gentoo-c2b27319336b6c56b87e4d0e0961050b3529a329.zip
media-gfx/gif2png: Bump to version 2.5.12
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'media-gfx/gif2png')
-rw-r--r--media-gfx/gif2png/Manifest1
-rw-r--r--media-gfx/gif2png/files/gif2png-2.5.12-makefile.patch42
-rw-r--r--media-gfx/gif2png/gif2png-2.5.12.ebuild37
3 files changed, 80 insertions, 0 deletions
diff --git a/media-gfx/gif2png/Manifest b/media-gfx/gif2png/Manifest
index 9469c80841eb..86df8a3a9fd2 100644
--- a/media-gfx/gif2png/Manifest
+++ b/media-gfx/gif2png/Manifest
@@ -1,4 +1,5 @@
DIST gif2png-2.5.10.tar.gz 138944 BLAKE2B bb299a4a00920f2979455f63e8c0cdedd4046fd3cf726cf30bc73ab476277002a828f7c1f59e2292f08d53742038c11ded13d8b9f1fa7bc2c7e07b25cb3cb120 SHA512 3ca1c0d41a38b4b628f929afa231b8f67079f9998210e63b68e4438379a5d70b64d332f7e0786fb199ef866e188f5095c0d0d4570ec9da829aeac63c8918ad3e
DIST gif2png-2.5.11.tar.gz 31507 BLAKE2B d35c1afc8dc790fb99ee819495eb41ac6d0555d14c12707c0f844a33f631d7d6e074776b8f51b1439b0b0ee608f67622d92de761f42e44e2974b24f47ad0db0c SHA512 c7e42aca45f941bca970ff14f49881f485c4dee18be448ae71aa7c80dabd9384bcba6d6de05a0a78757150b3e775d99df315231ddae8e32c91c08f1c9cfefb67
+DIST gif2png-2.5.12.tar.gz 31613 BLAKE2B 8614d3e0435bab334465d3f43d8676a80f1041e6cd5572fb525295c00d9027b505741331bd3df452d55e8f49893ab611832f2d4d150794d268a436a04f5f20b2 SHA512 481775d0efc65e0606a60546ed2a1e4a976587ca1a406620f8ea9126b32dc810d3b549cc99ba33ff9f88379de2ce47a799840b92978ee621bd18d3ae08b2c6a8
DIST gif2png-2.5.8.tar.gz 128373 BLAKE2B a8b374661a03cdaaabe0a534f5fcbe1c56f40bb74cdf73bfe2a7b8f4fdbc2ac078bdd30a9232795ee804963bed1a36ec5d81e7494595de644591f6b4f855fefd SHA512 050c516c125efda315e6bc7e4fadcdd612a9596bd1e6f611865a457efb06153a45516eca343422e15ad75b1219f82ec855f03781285df411590008f5a67e0554
DIST gif2png-2.5.9.tar.gz 137750 BLAKE2B a5fb0570f6263c1911a4cad52f1b974f8010a02cf882f2e1e40ed7dbbce4be8b75290e4b0a78b5dde74cc244c9a848dd429a937e696746d3d39b8cec9dd469fd SHA512 0632f1b4b96a1e4b5567101fbac36db55e658503977c8c875d75d9c1db5b374deba5afbda5507585b6b79242781fd70afc477e686458cc124adb8e1b29860c1e
diff --git a/media-gfx/gif2png/files/gif2png-2.5.12-makefile.patch b/media-gfx/gif2png/files/gif2png-2.5.12-makefile.patch
new file mode 100644
index 000000000000..e99180f8686e
--- /dev/null
+++ b/media-gfx/gif2png/files/gif2png-2.5.12-makefile.patch
@@ -0,0 +1,42 @@
+Respect CFLAGS/LDFLAGS/DESTDIR and don't try to run missing tests.
+
+--- gif2png-2.5.12/Makefile
++++ gif2png-2.5.12/Makefile
+@@ -2,8 +2,7 @@
+
+ VERSION = $(shell sed -n <NEWS '/::/s/^\([^:]*\).*/\1/p' | head -1)
+
+-CFLAGS = -DVERSION=\"$(VERSION)\" -O2
+-LDFLAGS = -s
++CFLAGS = -DVERSION=\"$(VERSION)\"
+
+ SOURCES = 437_l1.c gif2png.c gifread.c memory.c version.c
+ OBJECTS = $(SOURCES:.c=.o)
+@@ -28,22 +27,19 @@
+ web2png.1: web2png.xml
+ xmlto man web2png.xml
+
+-check:
+- cd test; make --quiet test
+-
+ clean:
+ rm -f gif2png *.o gif2png.1 web2png.1
+
+ version:
+ @echo $(VERSION)
+
+-prefix?=/usr
++prefix ?= /usr
+
+ install: gif2png gif2png.1 web2png.1
+- mkdir -p $(prefix)/bin
+- mkdir -p $(prefix)/share/man/man1
+- cp gif2png web2png $(prefix)/bin/
+- cp gif2png.1 web2png.1 $(prefix)/share/man/man1/
++ mkdir -p $(DESTDIR)$(prefix)/bin
++ mkdir -p $(DESTDIR)$(prefix)/share/man/man1
++ cp gif2png web2png $(DESTDIR)$(prefix)/bin/
++ cp gif2png.1 web2png.1 $(DESTDIR)$(prefix)/share/man/man1/
+
+ uninstall:
+ rm $(prefix)/bin/gif2png $(prefix)/bin/web2png
diff --git a/media-gfx/gif2png/gif2png-2.5.12.ebuild b/media-gfx/gif2png/gif2png-2.5.12.ebuild
new file mode 100644
index 000000000000..937a694a8ebb
--- /dev/null
+++ b/media-gfx/gif2png/gif2png-2.5.12.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Converts images from gif format to png format"
+HOMEPAGE="http://catb.org/~esr/gif2png/"
+SRC_URI="http://catb.org/~esr/${PN}/${P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+
+RDEPEND=">=media-libs/libpng-1.2:0=
+ sys-libs/zlib:="
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.5.12-makefile.patch
+)
+
+src_prepare() {
+ default
+
+ # this release lacks the NEWS file that is being used to
+ # query the release version
+ # https://gitlab.com/esr/gif2png/issues/4
+ sed "s@^VERSION.*@VERSION = ${PV}@" -i Makefile || die
+
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${D}" prefix="${EPREFIX}/usr" install
+}