blob: 1a63cddc4e7c49b2e9b05a7907cbd9a755cc5e29 (
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
51
|
# Copyright 1999-2009 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.4 2010/01/16 10:43:30 truedfx Exp $
inherit bsdmk eutils flag-o-matic multilib
REV=1073
PATCHVER=1.6
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="~amd64 ~x86"
IUSE=""
DEPEND=""
# Both tendra and tinycc install /usr/bin/tcc
RDEPEND="!dev-lang/tcc"
S=${WORKDIR}/trunk
pkg_setup() {
export BMAKE="$(get_bmake) ${MAKEOPTS}"
use amd64 && multilib_toolchain_setup x86
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}"/tendra-patches/*.patch
}
src_compile() {
replace-flags '-O*' '-O'
HOSTARCH=i386 PREFIX=/usr sh makedefs || die "makedefs failed"
${BMAKE} -DBOOTSTRAP || die "bootstrap failed"
${BMAKE} || die "build failed"
}
src_install() {
${BMAKE} PREFIX="${D}usr" \
MAN_DIR='${PREFIX}/share/man' install || die "install failed"
}
|