/[gentoo-x86]/dev-lang/tcc/tcc-0.9.26_pre1.ebuild
Gentoo

Contents of /dev-lang/tcc/tcc-0.9.26_pre1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jan 29 09:31:34 2013 UTC (18 months, 4 weeks ago) by patrick
Branch: MAIN
Bump to snapshot for #454500

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 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.25.ebuild,v 1.3 2010/08/16 20:05:34 truedfx Exp $
4
5 EAPI="5"
6
7 inherit eutils toolchain-funcs
8
9 IUSE=""
10 DESCRIPTION="A very small C compiler for ix86/amd64"
11 HOMEPAGE="http://bellard.org/tcc/"
12 SRC_URI="http://dev.gentoo.org/~patrick/${P}.tar.bz2"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17
18 DEPEND="app-text/texi2html" # doc generation
19 # Both tendra and tinycc install /usr/bin/tcc
20 RDEPEND="!dev-lang/tendra"
21
22 # Testsuite is broken, relies on gcc to compile
23 # invalid C code that it no longer accepts
24 RESTRICT="test"
25
26 src_prepare() {
27 # Don't strip
28 sed -i -e 's|$(INSTALL) -s|$(INSTALL)|' Makefile || die
29
30 # Fix examples
31 sed -i -e '1{
32 i#! /usr/bin/tcc -run
33 /^#!/d
34 }' examples/ex*.c || die
35 sed -i -e '1s/$/ -lX11/' examples/ex4.c || die
36
37 # fix texi2html invocation
38 sed -i -e 's/-number//' Makefile || die
39 }
40
41 src_configure() {
42 local myopts
43 use x86 && myopts="--cpu=x86"
44 use amd64 && myopts="--cpu=x86-64"
45 econf ${myopts} --cc="$(tc-getCC)"
46 }
47
48 src_install() {
49 emake \
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 "make install failed"
56 dodoc Changelog README TODO VERSION
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