Gentoo Archives: gentoo-commits

From: Christoph Mende <angelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/gimmix/files/, media-sound/gimmix/
Date: Sun, 20 Sep 2015 07:16:55
Message-Id: 1442733412.c6c38433767eaf66728809f6aca591073fda7c6f.angelos@gentoo
1 commit: c6c38433767eaf66728809f6aca591073fda7c6f
2 Author: Christoph Mende <angelos <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 20 07:16:52 2015 +0000
4 Commit: Christoph Mende <angelos <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 20 07:16:52 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6c38433
7
8 media-sound/gimmix: Fix format-security warning (bug #542140)
9
10 Package-Manager: portage-2.2.20.1
11
12 .../files/gimmix-0.5.7.2-format-security.patch | 13 +++++++
13 media-sound/gimmix/gimmix-0.5.7.2-r1.ebuild | 44 ++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/media-sound/gimmix/files/gimmix-0.5.7.2-format-security.patch b/media-sound/gimmix/files/gimmix-0.5.7.2-format-security.patch
17 new file mode 100644
18 index 0000000..ee00e64
19 --- /dev/null
20 +++ b/media-sound/gimmix/files/gimmix-0.5.7.2-format-security.patch
21 @@ -0,0 +1,13 @@
22 +diff --git a/src/gimmix-config.c b/src/gimmix-config.c
23 +index 3ef4e48..821a427 100644
24 +--- a/src/gimmix-config.c
25 ++++ b/src/gimmix-config.c
26 +@@ -146,7 +146,7 @@ gimmix_config_get_proxy_string (void)
27 + }
28 + else
29 + {
30 +- ret = g_strdup_printf (host);
31 ++ ret = g_strdup (host);
32 + }
33 + }
34 +
35
36 diff --git a/media-sound/gimmix/gimmix-0.5.7.2-r1.ebuild b/media-sound/gimmix/gimmix-0.5.7.2-r1.ebuild
37 new file mode 100644
38 index 0000000..dc9f230
39 --- /dev/null
40 +++ b/media-sound/gimmix/gimmix-0.5.7.2-r1.ebuild
41 @@ -0,0 +1,44 @@
42 +# Copyright 1999-2015 Gentoo Foundation
43 +# Distributed under the terms of the GNU General Public License v2
44 +# $Id$
45 +
46 +EAPI=4
47 +inherit autotools eutils
48 +
49 +DESCRIPTION="a graphical music player daemon (MPD) client using GTK+2"
50 +HOMEPAGE="https://launchpad.net/gimmix"
51 +SRC_URI="mirror://gentoo/${P}.tar.bz2"
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~ppc ~x86"
56 +IUSE="cover lyrics taglib"
57 +
58 +RDEPEND=">=media-libs/libmpd-0.17
59 + gnome-base/libglade
60 + x11-libs/gtk+:2
61 + cover? ( net-libs/libnxml net-misc/curl )
62 + lyrics? ( net-libs/libnxml net-misc/curl )
63 + taglib? ( >=media-libs/taglib-1.5 )"
64 +DEPEND="${RDEPEND}
65 + virtual/pkgconfig
66 + dev-util/intltool"
67 +
68 +DOCS=( AUTHORS ChangeLog README TODO )
69 +
70 +src_prepare() {
71 + epatch "${FILESDIR}"/${PN}-0.5.7.1-curl-headers.patch \
72 + "${FILESDIR}"/${P}-format-security.patch
73 + sed -i -e "/^Icon/s/\.png$//" \
74 + -e "/^Categories/s/Application;//" data/gimmix.desktop
75 +
76 + # broken build system in tarball
77 + eautoreconf
78 +}
79 +
80 +src_configure() {
81 + econf \
82 + $(use_enable cover) \
83 + $(use_enable lyrics) \
84 + $(use_enable taglib tageditor)
85 +}