From a74bf6d2b35b2ef3254ba8330eac10d70d5d096f Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Mon, 15 Jun 2015 19:42:26 +0300 Subject: [gcc] adding gentoo gcc. --- sys-devel/gcc/gcc-2.95.3-r10.ebuild | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sys-devel/gcc/gcc-2.95.3-r10.ebuild (limited to 'sys-devel/gcc/gcc-2.95.3-r10.ebuild') diff --git a/sys-devel/gcc/gcc-2.95.3-r10.ebuild b/sys-devel/gcc/gcc-2.95.3-r10.ebuild new file mode 100644 index 00000000..071e85a7 --- /dev/null +++ b/sys-devel/gcc/gcc-2.95.3-r10.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-2.95.3-r10.ebuild,v 1.13 2015/05/05 06:53:03 vapier Exp $ + +EAPI="5" + +PATCH_VER="1.4" + +inherit eutils flag-o-matic toolchain + +KEYWORDS="~alpha ~ppc ~sparc ~x86" + +gcc2-flags() { + # Are we trying to compile with gcc3 ? CFLAGS and CXXFLAGS needs to be + # valid for gcc-2.95.3 ... + if [[ $(tc-arch) == "x86" || $(tc-arch) == "amd64" ]] ; then + CFLAGS=${CFLAGS//-mtune=/-mcpu=} + CXXFLAGS=${CXXFLAGS//-mtune=/-mcpu=} + fi + + replace-cpu-flags k6-{2,3} k6 + replace-cpu-flags athlon{,-{tbird,4,xp,mp}} i686 + + replace-cpu-flags pentium-mmx i586 + replace-cpu-flags pentium{2,3,4} i686 + + replace-cpu-flags ev6{7,8} ev6 +} + +src_prepare() { + rm -rf texinfo + strip-linguas -u */po + gcc2-flags + toolchain_src_prepare +} -- cgit v1.2.3