diff options
author | David Seifert <soap@gentoo.org> | 2016-01-25 10:32:29 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-01-25 10:52:06 +0100 |
commit | a83a4636502a9e22e64053a90a010cafc376c713 (patch) | |
tree | 6538d22a86096ef2a35dca9fbfc54810b6fa7512 /media-gfx/tgif/tgif-4.2.5-r1.ebuild | |
parent | sys-process/numactl: x86 stable wrt bug #572786 (diff) | |
download | gentoo-a83a4636502a9e22e64053a90a010cafc376c713.tar.gz gentoo-a83a4636502a9e22e64053a90a010cafc376c713.tar.bz2 gentoo-a83a4636502a9e22e64053a90a010cafc376c713.zip |
media-gfx/tgif: Fix -Werror=format-security errors
Gentoo-Bug: 542132
* EAPI=6
* Fixed QA implicit declarations
Package-Manager: portage-2.2.27
Diffstat (limited to 'media-gfx/tgif/tgif-4.2.5-r1.ebuild')
-rw-r--r-- | media-gfx/tgif/tgif-4.2.5-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/media-gfx/tgif/tgif-4.2.5-r1.ebuild b/media-gfx/tgif/tgif-4.2.5-r1.ebuild new file mode 100644 index 000000000000..1d343a85de62 --- /dev/null +++ b/media-gfx/tgif/tgif-4.2.5-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools flag-o-matic + +MY_P="${PN}-QPL-${PV}" + +DESCRIPTION="Xlib base 2-D drawing facility under X11" +HOMEPAGE="http://bourbon.usc.edu/tgif/index.html" +SRC_URI="ftp://bourbon.usc.edu/pub/${PN}/${MY_P}.tar.gz" + +LICENSE="QPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +DEPEND="sys-libs/zlib + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXt + x11-proto/xproto" +RDEPEND="${DEPEND} + media-libs/netpbm" + +PATCHES=( + "${FILESDIR}/${P}-wformat-security.patch" +) + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + sed -i \ + -e 's/^CFLAGS=/CFLAGS+=/' \ + -e 's:^TGIFDIR.*:TGIFDIR = $(datadir)/tgif:' \ + Makefile.am || die 'sed on Makefile.am failed' + + append-cppflags -D_DONT_USE_MKTEMP -DHAS_STREAMS_SUPPORT + + default + eautoreconf +} |