ottxor      14/04/02 23:46:23

  Modified:             tcc-9999.ebuild ChangeLog
  Added:                tcc-0.9.26-r2.ebuild
  Log:
  added prefix support (bug #499440)
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
C2000586)

Revision  Changes    Path
1.6                  dev-lang/tcc/tcc-9999.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcc/tcc-9999.ebuild?rev=1.6&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcc/tcc-9999.ebuild?rev=1.6&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcc/tcc-9999.ebuild?r1=1.5&r2=1.6

Index: tcc-9999.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-lang/tcc/tcc-9999.ebuild,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- tcc-9999.ebuild     13 Oct 2013 06:56:00 -0000      1.5
+++ tcc-9999.ebuild     2 Apr 2014 23:46:23 -0000       1.6
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcc/tcc-9999.ebuild,v 1.5 
2013/10/13 06:56:00 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcc/tcc-9999.ebuild,v 1.6 
2014/04/02 23:46:23 ottxor Exp $
 
 EAPI="5"
 
@@ -40,12 +40,9 @@
                                        # better fixes welcome, it feels wrong 
to hack the env like this
        # not autotools, so call configure directly
        ./configure --cc="$(tc-getCC)" \
-                --bindir=/usr/bin \
-                --libdir=/usr/$(get_libdir) \
-                --tccdir=tcc \
-                --includedir=/usr/include \
-                --docdir=/usr/share/doc/${PF} \
-                --mandir=/usr/share/man
+               --prefix="${EPREFIX}/usr" \
+               --libdir="${EPREFIX}/usr/$(get_libdir)" \
+               --docdir="${EPREFIX}/usr/share/doc/${PF}"
 }
 
 src_compile() {



1.42                 dev-lang/tcc/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcc/ChangeLog?rev=1.42&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcc/ChangeLog?rev=1.42&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcc/ChangeLog?r1=1.41&r2=1.42

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-lang/tcc/ChangeLog,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- ChangeLog   7 Mar 2014 02:37:03 -0000       1.41
+++ ChangeLog   2 Apr 2014 23:46:23 -0000       1.42
@@ -1,6 +1,12 @@
 # ChangeLog for dev-lang/tcc
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcc/ChangeLog,v 1.41 2014/03/07 
02:37:03 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcc/ChangeLog,v 1.42 2014/04/02 
23:46:23 ottxor Exp $
+
+*tcc-0.9.26-r2 (02 Apr 2014)
+
+  02 Apr 2014; Christoph Junghans <ott...@gentoo.org> +tcc-0.9.26-r2.ebuild,
+  tcc-9999.ebuild:
+  added prefix support (bug #499440)
 
   07 Mar 2014; Tim Harder <radher...@gentoo.org>
   -files/tcc-0.9.23-anonunion.patch, -files/tcc-0.9.23-asneeded.patch,



1.1                  dev-lang/tcc/tcc-0.9.26-r2.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcc/tcc-0.9.26-r2.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/tcc/tcc-0.9.26-r2.ebuild?rev=1.1&content-type=text/plain

Index: tcc-0.9.26-r2.ebuild
===================================================================
# Copyright 1999-2014 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-r2.ebuild,v 1.1 
2014/04/02 23:46:23 ottxor 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 ~amd64-linux"

DEPEND="dev-lang/perl" # doc generation
# Both tendra and tinycc install /usr/bin/tcc
RDEPEND="!dev-lang/tendra"
IUSE="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
        sed -i -e 's/--sections//' Makefile || die
}

src_configure() {
        use test && unset CFLAGS LDFLAGS # Tests run with CC=tcc etc, they will 
fail hard otherwise
                                        # better fixes welcome, it feels wrong 
to hack the env like this
        # not autotools, so call configure directly
        ./configure --cc="$(tc-getCC)" \
                --prefix="${EPREFIX}/usr" \
                --libdir="${EPREFIX}/usr/$(get_libdir)" \
                --docdir="${EPREFIX}/usr/share/doc/${PF}"
}

src_compile() {
        emake AR="$(tc-getAR)"
}

src_install() {
        emake DESTDIR="${D}" install

        dodoc Changelog README TODO VERSION
        #dohtml tcc-doc.html
        exeinto /usr/share/doc/${PF}/examples
        doexe examples/ex*.c
}

src_test() {
        # this is using tcc bits that don't know as-needed etc.
        TCCFLAGS="" emake test
}




Reply via email to