diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-23 16:04:21 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-23 16:04:21 +0000 |
commit | 9d937e6be698c304f6159df056d705c55b4bf9ed (patch) | |
tree | 3198a345ffdda02daa2253fc61e9cbf32a9a9e1a /media-sound/shell-fm/shell-fm-0.8-r1.ebuild | |
parent | Stable for amd64, wrt bug #361335 (diff) | |
download | gentoo-2-9d937e6be698c304f6159df056d705c55b4bf9ed.tar.gz gentoo-2-9d937e6be698c304f6159df056d705c55b4bf9ed.tar.bz2 gentoo-2-9d937e6be698c304f6159df056d705c55b4bf9ed.zip |
Patch to prevent (double free) crash wrt #392413 by "nzqr"
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/shell-fm/shell-fm-0.8-r1.ebuild')
-rw-r--r-- | media-sound/shell-fm/shell-fm-0.8-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/media-sound/shell-fm/shell-fm-0.8-r1.ebuild b/media-sound/shell-fm/shell-fm-0.8-r1.ebuild new file mode 100644 index 000000000000..91451cd26491 --- /dev/null +++ b/media-sound/shell-fm/shell-fm-0.8-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/shell-fm/shell-fm-0.8-r1.ebuild,v 1.1 2012/01/23 16:04:21 ssuominen Exp $ + +EAPI=4 +inherit flag-o-matic toolchain-funcs eutils + +DESCRIPTION="A lightweight console based player for Last.FM radio streams" +HOMEPAGE="http://nex.scrapping.cc/shell-fm/" +SRC_URI="https://github.com/jkramer/${PN}/tarball/v${PV} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux" +IUSE="" + +RDEPEND="media-libs/libao + media-libs/libmad + media-libs/taglib" +DEPEND="${RDEPEND} + dev-util/pkgconfig + sys-apps/sed" + +src_unpack() { + unpack ${A} + mv *-${PN}-* "${S}" +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-doublefree.patch #392413 + + sed -i -e 's:-Os::' source/Makefile || die + + tc-export CC AR + use ppc && append-flags -DWORDS_BIGENDIAN=1 +} + +src_install() { + dobin source/${PN} + doman manual/${PN}.1 + exeinto /usr/share/${PN}/scripts + doexe scripts/{*.sh,*.pl,zcontrol} +} |