blob: 366566a1650871a7b448286c86a4c78ddbd75418 (
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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tendra/tendra-4.1.2.ebuild,v 1.1 2006/08/26 18:21:07 truedfx Exp $
inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="A C/C++ compiler initially developed by DERA"
HOMEPAGE="http://www.tendra.org/
http://www.ten15.org/"
SRC_URI="ftp://ftp.allbsd.org/pub/TenDRA/releases/tendra/TenDRA-${PV}.tar.bz2
mirror://gentoo/${P}-misc.patch.bz2
mirror://gentoo/${P}-minix.patch.bz2
http://dev.gentoo.org/~truedfx/${P}-misc.patch.bz2
http://dev.gentoo.org/~truedfx/${P}-minix.patch.bz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~x86"
IUSE=""
DEPEND=""
# Both tendra and tinycc install /usr/bin/tcc
RDEPEND="!dev-lang/tcc"
S=${WORKDIR}/TenDRA-${PV}
src_unpack() {
unpack TenDRA-${PV}.tar.bz2
cd "${S}"
epatch "${DISTDIR}"/${P}-misc.patch.bz2
epatch "${DISTDIR}"/${P}-minix.patch.bz2
}
src_compile() {
tc-export CC
append-flags -D_XOPEN_SOURCE=500
mkdir -p build/bin build/lib/TenDRA build/share/man
PREFIX=${S}/build CCOPTS=${CFLAGS} \
sh INSTALL || die "compilation failed"
}
src_install() {
cp -R build "${D}"/usr || die "copying failed"
DESTDIR=${D} PREFIX=/usr BUILD_COMMON=false BUILD_MACHINE=false \
sh INSTALL || die "updating failed"
}
|