/[gentoo-x86]/dev-lang/tcc/tcc-0.9.23-r1.ebuild
Gentoo

Contents of /dev-lang/tcc/tcc-0.9.23-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Jan 4 21:03:25 2009 UTC (5 years, 11 months ago) by patrick
Branch: MAIN
Changes since 1.5: +2 -2 lines
Bump to 0.9.24. Homepage and SRC_URI fix. Patches no longer needed.
(Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/tcc/tcc-0.9.23-r1.ebuild,v 1.5 2009/01/04 20:52:31 patrick Exp $
4
5 inherit eutils
6
7 IUSE=""
8 DESCRIPTION="A very small C compiler for ix86"
9 HOMEPAGE="http://bellard.org/tcc/"
10 SRC_URI="http://download.savannah.nongnu.org/releases/tinycc/${P}.tar.gz"
11
12 LICENSE="LGPL-2.1"
13 SLOT="0"
14 KEYWORDS="-* x86"
15
16 DEPEND=""
17 # Both tendra and tinycc install /usr/bin/tcc
18 RDEPEND="!dev-lang/tendra"
19
20 # Testsuite is broken, relies on gcc to compile
21 # invalid C code that it no longer accepts
22 RESTRICT="test"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27 epatch "${FILESDIR}"/${P}-anonunion.patch
28 epatch "${FILESDIR}"/${P}-asneeded.patch
29 epatch "${FILESDIR}"/${P}-nxbit.patch
30
31 # Don't strip
32 sed -i -e 's|$(INSTALL) -s|$(INSTALL)|' Makefile
33
34 # Fix examples
35 sed -i -e '1{
36 i#! /usr/bin/tcc -run
37 /^#!/d
38 }' examples/ex*.c
39 sed -i -e '1s/$/ -lX11/' examples/ex4.c
40 }
41
42 src_install() {
43 #autoconf for the package does not create dirs if they are missing for some reason
44 dodir /usr/bin
45 dodir /usr/lib/tcc
46 dodir /usr/share/man/man1
47 dodir /usr/include
48 dodir /usr/share/doc/${PF}
49 make \
50 bindir="${D}"/usr/bin \
51 libdir="${D}"/usr/lib \
52 tccdir="${D}"/usr/lib/tcc \
53 includedir="${D}"/usr/include \
54 docdir="${D}"/usr/share/doc/${PF} \
55 mandir="${D}"/usr/share/man install || die
56 dodoc Changelog README TODO VERSION COPYING
57 dohtml tcc-doc.html
58 exeinto /usr/share/doc/${PF}/examples
59 doexe examples/ex*.c
60 }

  ViewVC Help
Powered by ViewVC 1.1.20