diff options
author | Alexis Ballier <aballier@gentoo.org> | 2011-02-26 12:28:33 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2011-02-26 12:28:33 +0000 |
commit | 35a8b022873bcebe8426fc6126e0cff9612ed8ee (patch) | |
tree | 782824fb26d2ab461ae16c2f27211ee519f49fbb /media-sound/orpheus/orpheus-1.6-r2.ebuild | |
parent | sparc dropping keywords (bug 325621) (diff) | |
download | gentoo-2-35a8b022873bcebe8426fc6126e0cff9612ed8ee.tar.gz gentoo-2-35a8b022873bcebe8426fc6126e0cff9612ed8ee.tar.bz2 gentoo-2-35a8b022873bcebe8426fc6126e0cff9612ed8ee.zip |
Make it build with latest autotools, fix an automake warning, fix a buffer overflow (bug #339242), fix some char* vs const char* warnings.
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/orpheus/orpheus-1.6-r2.ebuild')
-rw-r--r-- | media-sound/orpheus/orpheus-1.6-r2.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/media-sound/orpheus/orpheus-1.6-r2.ebuild b/media-sound/orpheus/orpheus-1.6-r2.ebuild new file mode 100644 index 000000000000..714afd59b946 --- /dev/null +++ b/media-sound/orpheus/orpheus-1.6-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/orpheus/orpheus-1.6-r2.ebuild,v 1.1 2011/02/26 12:28:33 aballier Exp $ + +EAPI=2 + +inherit eutils autotools + +DESCRIPTION="Command line MP3 player." +HOMEPAGE="http://konst.org.ua/en/orpheus" +SRC_URI="http://konst.org.ua/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND="sys-libs/ncurses + media-libs/libvorbis + media-sound/mpg123 + media-sound/vorbis-tools[ogg123]" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/1.5-amd64.patch + + # Fix a stack-based buffer overflow in kkstrtext.h in ktools library. + # Bug 113683, CVE-2005-3863. + epatch "${FILESDIR}"/101_fix-buffer-overflow.diff + + epatch "${FILESDIR}"/${P}-nolibghttp.patch \ + "${FILESDIR}"/${P}-cppflags.patch \ + "${FILESDIR}"/${P}-bufsize.patch \ + "${FILESDIR}"/${P}-constify.patch + cp "${S}/config.rpath" "${S}/kkstrtext-0.1/" || die + + # For automake 1.9 and later + sed -i -e 's:@MKINSTALLDIRS@:$(top_srcdir)/mkinstalldirs:' \ + po/Makefile.in.in || die + + einfo "Removing outdated files..." + find . -name "missing" -print -delete + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog NEWS README TODO +} |