gcc-2.95.3-r10.ebuild 752 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. PATCH_VER="1.4"
  5. inherit eutils flag-o-matic toolchain
  6. KEYWORDS="~alpha ~ppc ~sparc ~x86"
  7. gcc2-flags() {
  8. # Are we trying to compile with gcc3 ? CFLAGS and CXXFLAGS needs to be
  9. # valid for gcc-2.95.3 ...
  10. if [[ $(tc-arch) == "x86" || $(tc-arch) == "amd64" ]] ; then
  11. CFLAGS=${CFLAGS//-mtune=/-mcpu=}
  12. CXXFLAGS=${CXXFLAGS//-mtune=/-mcpu=}
  13. fi
  14. replace-cpu-flags k6-{2,3} k6
  15. replace-cpu-flags athlon{,-{tbird,4,xp,mp}} i686
  16. replace-cpu-flags pentium-mmx i586
  17. replace-cpu-flags pentium{2,3,4} i686
  18. replace-cpu-flags ev6{7,8} ev6
  19. }
  20. src_prepare() {
  21. rm -rf texinfo
  22. strip-linguas -u */po
  23. gcc2-flags
  24. toolchain_src_prepare
  25. }