summaryrefslogtreecommitdiff
blob: 31104110f1f0abc1d0622d04f8abaf70bce5e946 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/mcdp/mcdp-0.3j.ebuild,v 1.12 2005/07/25 13:19:38 dholm Exp $

inherit eutils toolchain-funcs

DESCRIPTION="A very small console cd player"
HOMEPAGE="http://www.mcmilk.de/projects/mcdp/"
SRC_URI="${HOMEPAGE}/dl/${P}.tar.gz"
IUSE="diet"
SLOT="0"
KEYWORDS="amd64 ~ppc sparc x86"
LICENSE="GPL-2"
DEPEND="diet? ( dev-libs/dietlibc )"
RDEPEND="!diet? ( virtual/libc )"

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/${P}-dietlibc-fix.patch
}

src_compile() {
	if use diet; then
		emake || die
	else
		emake CC="$(tc-getCC)" || die
	fi
}

src_install() {
	dobin mcdp || die
	doman mcdp.1 || die

	cd ${S}/doc
	dodoc CHANGES INSTALL README THANKS profile.sh
}