aboutsummaryrefslogtreecommitdiff
blob: d84c4338d27570eac2840dbecf74627267bb90ef (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit eutils toolchain-funcs

MY_P="${PN}.${PV}"

DESCRIPTION="Mage is a 3D vector display program which shows 'kinemage' graphics"
HOMEPAGE="http://kinemage.biochem.duke.edu/software/mage.php"
SRC_URI="http://kinemage.biochem.duke.edu/downloads/software/mage/${MY_P}.src.tgz"

LICENSE="richardson"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

RDEPEND="sci-chemistry/prekin"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	epatch "${FILESDIR}"/${PV}-Makefile.patch
}

src_compile() {
	emake \
		CC="$(tc-getCC)" \
		dynamic \
		|| die "make failed"
}

src_install() {
	dobin "${S}"/mage || die "dobin failed"
}