blob: 4f9425fe8b1b25be8281e801ad01a775d782bd34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2012 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.5 2012/10/10 06:55:11 nativemad Exp $
EAPI=4
inherit autotools eutils toolchain-funcs
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="amd64 ~ppc x86"
IUSE=""
RDEPEND="sys-libs/ncurses
media-libs/libvorbis
media-sound/mpg123
media-sound/vorbis-tools[ogg123]"
DEPEND="${RDEPEND}"
DOCS=( AUTHORS ChangeLog NEWS README TODO )
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_compile() {
emake AR="$(tc-getAR)"
}
|