blob: 65b887db5615236c0d50780270081debcfe31b42 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tendra/tendra-5.0_pre20070510-r2.ebuild,v 1.1 2008/12/14 20:59:32 truedfx Exp $
inherit eutils flag-o-matic bsdmk
REV=1073
PATCHVER=1.5
DESCRIPTION="A C/C++ compiler initially developed by DERA"
HOMEPAGE="http://www.tendra.org/"
SRC_URI="mirror://gentoo/${PN}-${REV}.tbz2
mirror://gentoo/${PN}-patches-${PATCHVER}.tbz2
http://dev.gentoo.org/~truedfx/${PN}-${REV}.tbz2
http://dev.gentoo.org/~truedfx/${PN}-patches-${PATCHVER}.tbz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
# Both tendra and tinycc install /usr/bin/tcc
RDEPEND="!dev-lang/tcc"
S=${WORKDIR}/trunk
pkg_setup() {
export MAKE=$(get_bmake)
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}"/tendra-patches/*.patch
}
src_compile() {
replace-flags '-O*' '-O'
PREFIX=/usr sh makedefs || die "makedefs failed"
emake -DBOOTSTRAP || die "bootstrap failed"
emake || die "build failed"
}
src_install() {
emake PREFIX="${D}usr" \
MAN_DIR='${PREFIX}/share/man' install || die "install failed"
}
|