summaryrefslogtreecommitdiff
blob: 206f1ed9922321349002aeedf52cdbb18b5ec21c (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/odinmp/odinmp-0.167.2.ebuild,v 1.1 2003/06/03 13:00:05 tantive Exp $

DESCRIPTION="The OdinMP OpenMP compiler"

HOMEPAGE="http://odinmp.imit.kth.se/"
SRC_URI="http://odinmp.imit.kth.se:81/odinmp/OdinMP.${PV}.tar.gz
	doc? ( http://odinmp.imit.kth.se:81/odinmp/odinmp_user_manual.pdf )"

LICENSE="OdinMP"
SLOT="0"

# The makefiles are only defined for x86 and sparc
KEYWORDS="~x86 ~sparc"

IUSE="doc"
DEPEND=">=sys-devel/flex-2.5.4
	>=sys-devel/bison-1.35"
RDEPEND=""
S=${WORKDIR}/OdinMP

src_unpack() {
	unpack OdinMP.${PV}.tar.gz

}

src_compile() {

	cd ${S}/build/linux-${ARCH}
	make all || die
}

src_install() {
	dobin build/linux-${ARCH}/odinmp
	dosym odinmp /usr/bin/intonecc
	dosym odinmp /usr/bin/intoneld
	dosym odinmp /usr/bin/odinmpcc
	dosym odinmp /usr/bin/odinmpas
	dosym odinmp /usr/bin/odinmpld

	dodoc README COPYRIGHT
	use doc && cp ${DISTDIR}/odinmp_user_manual.pdf ${D}usr/share/doc/${P}

}