diff options
author | Harald van Dijk <truedfx@gentoo.org> | 2006-08-24 08:42:33 +0000 |
---|---|---|
committer | Harald van Dijk <truedfx@gentoo.org> | 2006-08-24 08:42:33 +0000 |
commit | 74795ae23a705d16703b6dc37e365c7cb9a80ae3 (patch) | |
tree | d30f6f94664d24cf493fee18d88bdcc0549e5426 /dev-lang/tcc/tcc-0.9.23-r1.ebuild | |
parent | Stable on ppc64 (diff) | |
download | historical-74795ae23a705d16703b6dc37e365c7cb9a80ae3.tar.gz historical-74795ae23a705d16703b6dc37e365c7cb9a80ae3.tar.bz2 historical-74795ae23a705d16703b6dc37e365c7cb9a80ae3.zip |
Make tcc install correctly and work with glibc 2.4 (#132095)
Package-Manager: portage-2.1.1_pre5-r2
Diffstat (limited to 'dev-lang/tcc/tcc-0.9.23-r1.ebuild')
-rw-r--r-- | dev-lang/tcc/tcc-0.9.23-r1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-lang/tcc/tcc-0.9.23-r1.ebuild b/dev-lang/tcc/tcc-0.9.23-r1.ebuild new file mode 100644 index 000000000000..d5fcd19175aa --- /dev/null +++ b/dev-lang/tcc/tcc-0.9.23-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcc/tcc-0.9.23-r1.ebuild,v 1.1 2006/08/24 08:42:33 truedfx Exp $ + +inherit eutils + +IUSE="" +DESCRIPTION="A very small C compiler for ix86" +HOMEPAGE="http://www.tinycc.org/" +SRC_URI="http://fabrice.bellard.free.fr/tcc/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="-* ~x86" + +DEPEND="" + +# Testsuite is broken, relies on gcc to compile +# invalid C code that it no longer accepts +RESTRICT="test" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-anonunion.patch + epatch "${FILESDIR}"/${P}-asneeded.patch + + # Don't strip + sed -i -e 's|$(INSTALL) -s|$(INSTALL)|' Makefile + + # Fix examples + sed -i -e '1{ + i#! /usr/bin/tcc -run + /^#!/d + }' examples/ex*.c + sed -i -e '1s/$/ -lX11/' examples/ex4.c +} + +src_install() { + #autoconf for the package does not create dirs if they are missing for some reason + dodir /usr/bin + dodir /usr/lib/tcc + dodir /usr/share/man/man1 + dodir /usr/include + dodir /usr/share/doc/${PF} + make \ + bindir="${D}"/usr/bin \ + libdir="${D}"/usr/lib \ + tccdir="${D}"/usr/lib/tcc \ + includedir="${D}"/usr/include \ + docdir="${D}"/usr/share/doc/${PF} \ + mandir="${D}"/usr/share/man install || die + dodoc Changelog README TODO VERSION COPYING + dohtml tcc-doc.html + exeinto /usr/share/doc/${PF}/examples + doexe examples/ex*.c +} |