diff options
author | Tim Harder <radhermit@gentoo.org> | 2013-07-16 23:52:13 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2013-07-16 23:52:13 +0000 |
commit | 298370ebec83794246ed95862571e24cb1fdb586 (patch) | |
tree | a25c7f5ba0b0f35fde8ae8c015da5dfb10387dae /dev-lang/tcc | |
parent | Version bump. (diff) | |
download | gentoo-2-298370ebec83794246ed95862571e24cb1fdb586.tar.gz gentoo-2-298370ebec83794246ed95862571e24cb1fdb586.tar.bz2 gentoo-2-298370ebec83794246ed95862571e24cb1fdb586.zip |
Version bump (bug #466094).
(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-lang/tcc')
-rw-r--r-- | dev-lang/tcc/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/tcc/tcc-0.9.26.ebuild | 65 |
2 files changed, 71 insertions, 1 deletions
diff --git a/dev-lang/tcc/ChangeLog b/dev-lang/tcc/ChangeLog index 6fe1501fe0ff..d73917560c7a 100644 --- a/dev-lang/tcc/ChangeLog +++ b/dev-lang/tcc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/tcc # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcc/ChangeLog,v 1.33 2013/04/16 09:35:47 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcc/ChangeLog,v 1.34 2013/07/16 23:52:13 radhermit Exp $ + +*tcc-0.9.26 (16 Jul 2013) + + 16 Jul 2013; Tim Harder <radhermit@gentoo.org> +tcc-0.9.26.ebuild: + Version bump (bug #466094). 16 Apr 2013; Patrick Lauer <patrick@gentoo.org> tcc-0.9.26_pre1.ebuild: Fix for sandbox violation #454874 diff --git a/dev-lang/tcc/tcc-0.9.26.ebuild b/dev-lang/tcc/tcc-0.9.26.ebuild new file mode 100644 index 000000000000..d7ee162af2ca --- /dev/null +++ b/dev-lang/tcc/tcc-0.9.26.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcc/tcc-0.9.26.ebuild,v 1.1 2013/07/16 23:52:13 radhermit Exp $ + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="A very small C compiler for ix86/amd64" +HOMEPAGE="http://bellard.org/tcc/" +SRC_URI="http://download.savannah.gnu.org/releases/tinycc/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-lang/perl" # doc generation +# Both tendra and tinycc install /usr/bin/tcc +RDEPEND="!dev-lang/tendra" + +# Testsuite is broken, relies on gcc to compile +# invalid C code that it no longer accepts +RESTRICT="test" + +src_prepare() { + # Don't strip + sed -i -e 's|$(INSTALL) -s|$(INSTALL)|' Makefile || die + + # Fix examples + sed -i -e '1{ + i#! /usr/bin/tcc -run + /^#!/d + }' examples/ex*.c || die + sed -i -e '1s/$/ -lX11/' examples/ex4.c || die + + # fix texi2html invocation + sed -i -e 's/-number//' Makefile || die +} + +src_configure() { + local myopts + use x86 && myopts="--cpu=x86" + use amd64 && myopts="--cpu=x86-64" + econf ${myopts} --cc="$(tc-getCC)" +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + 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 + + dodoc Changelog README TODO VERSION + dohtml tcc-doc.html + exeinto /usr/share/doc/${PF}/examples + doexe examples/ex*.c +} |