From b22d8d2fc69119d5d2741ad912a6b773ec79b504 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 30 Dec 2006 09:15:29 +0000 Subject: [PATCH] Add support for toolchain.eclass #124578 by Harald van Dijk. Package-Manager: portage-2.1.2_rc4-r2 --- sys-devel/gcc/ChangeLog | 7 +++- sys-devel/gcc/Manifest | 27 +++++++++++--- sys-devel/gcc/files/digest-gcc-2.95.3-r10 | 6 ++++ sys-devel/gcc/gcc-2.95.3-r10.ebuild | 43 +++++++++++++++++++++++ 4 files changed, 78 insertions(+), 5 deletions(-) create mode 100644 sys-devel/gcc/files/digest-gcc-2.95.3-r10 create mode 100644 sys-devel/gcc/gcc-2.95.3-r10.ebuild diff --git a/sys-devel/gcc/ChangeLog b/sys-devel/gcc/ChangeLog index c43a7f87ad8e..41bccb238807 100644 --- a/sys-devel/gcc/ChangeLog +++ b/sys-devel/gcc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-devel/gcc # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/ChangeLog,v 1.593 2006/12/28 20:51:59 kloeri Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/ChangeLog,v 1.594 2006/12/30 09:15:29 vapier Exp $ + +*gcc-2.95.3-r10 (30 Dec 2006) + + 30 Dec 2006; Mike Frysinger +gcc-2.95.3-r10.ebuild: + Add support for toolchain.eclass #124578 by Harald van Dijk. 28 Dec 2006; Bryan Østergaard gcc-3.4.6-r2.ebuild: Stable on Alpha. diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest index 719e46e8d80d..bd6c5d180679 100644 --- a/sys-devel/gcc/Manifest +++ b/sys-devel/gcc/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX 3.2.1/gcc31-loop-load-final-value.patch 3324 RMD160 8bb0e9133923821daf2e9d10a27a0a1930e00bbd SHA1 c73dc6e19a76a1dcbb11a15ff5ff04b11a9f0343 SHA256 70aa8433fb19c95f334b6cbc155cae22a3b61a6892ed9e18f95860509d0091a8 MD5 8ec9b0352d226e4693cabffe0fa5bba6 files/3.2.1/gcc31-loop-load-final-value.patch 3324 RMD160 8bb0e9133923821daf2e9d10a27a0a1930e00bbd files/3.2.1/gcc31-loop-load-final-value.patch 3324 @@ -293,6 +296,8 @@ DIST bounds-checking-gcc-3.4.4-1.00.patch.bz2 815608 RMD160 b5e1d4716a5ab881b5d7 DIST bounds-checking-gcc-4.0.2-1.00.patch.bz2 822351 RMD160 455246c524f04f116169abfb8760350036d7113d SHA1 52c1e98216fcea3e6c6ac150cadbf020fc8a640e SHA256 efbe7c437a4208bf3f2643d494dc7695f20779c91ecd2eceb37be68308df1f4f DIST bounds-checking-gcc-4.0.3-1.00.patch.bz2 822351 RMD160 455246c524f04f116169abfb8760350036d7113d SHA1 52c1e98216fcea3e6c6ac150cadbf020fc8a640e SHA256 efbe7c437a4208bf3f2643d494dc7695f20779c91ecd2eceb37be68308df1f4f DIST gcc-2.95.3-patches-1.2.tar.bz2 121655 RMD160 e6a8a50538587f5ad3721816271cfc927c3af90e SHA1 2bd8c0bd4b25a8908955701f80b5f284bd7591bc SHA256 c2ee770bcf7cc45e6dbc7f89514b378ca780c7ee0f8d30550eb897e925ee4eca +DIST gcc-2.95.3-patches-1.3.tar.bz2 116975 RMD160 035b33d5477bf0f9078cfdb7d07afd6f5ef80023 SHA1 9eef5b27a74705066339339cabaf380cbad364bc SHA256 4e437c8d0e176ad626918963ee2a7976353a2010a08c48498f24c2f85c542c3c +DIST gcc-2.95.3.tar.bz2 9848842 RMD160 09cca1860ce897000df19643dfd944ae28366a1d SHA1 1741fd70901a39442e5135e31dde370d1c194e6c SHA256 cf91a6b4f41248895f06bcd0570a62d2417ee99d32e6e2c5f70490e0eb6af5e4 DIST gcc-2.95.3.tar.gz 12911721 RMD160 2c506b7e80cb2b4d9953f4f9753d581cb885f610 SHA1 535d27038d161c0e7c2662702e11a48aa97ef622 SHA256 2a950e220c2f64c4abf781be3bb6d4c472ef8b3685873e77061788df85c6d5da DIST gcc-3.1.1.tar.bz2 20515451 RMD160 f1acf2739009281ffae61ceb54612d1ee795578f SHA1 75d9479d79cde4aff27617942e7fbab0ec6af5f5 SHA256 95399ef09c38cf9bde4a98909623d6a7f93ca0061857f9938af8b1970459672f DIST gcc-3.1.1_final-patches-1.0.tbz2 29791 RMD160 4406f8007e658b6b5205680b85badb20eb3b19dc SHA1 a4fa2adbdff55a9ade162952b8ed063b107d2503 SHA256 8ed2d7ca951ec195bef6ccdeb0325c673e1991890f11f2f24e4d0277537466d6 @@ -365,6 +370,10 @@ DIST protector-3.3-7.tar.gz 25068 RMD160 6e01b53477aec0c0b7a958827a38fcc8bee61c5 DIST protector-3.3.2-3.tar.gz 28195 RMD160 6e6c98ab3d1ff0d16405df8dfdded0ff1f098eb2 SHA1 80826beb60747a6fb7ec7fdd1a5c1f93d625abba SHA256 e89ce49af8a088ffa790985e57bb5c2dd59328676342ddce93ae3166c2d3b9d9 DIST protector-3.3.5.20050130-1.tar.gz 24324 RMD160 5c221415fda8795a5062cc4ce749d8d2494f9084 SHA1 fb5221179ce1328c0a96a276a57cbeb5f5993b1c SHA256 c5b0e5620ac2e30dc79b156db2165865e987a2ce529cffb6f1a695eb60c462d0 DIST protector-3.4-2.tar.gz 31066 RMD160 bbb7aeabc8308b7ab3e296923019e810f38c3305 SHA1 a4defea3acd00328f4a204124da591d045a7c0b1 SHA256 a9decc15da37c84dc7ce50f44ceb528fd6592a405109f4e3be089b58e6c14a70 +EBUILD gcc-2.95.3-r10.ebuild 1187 RMD160 03a27af4c2fbeae5f78a02cd09c250e625a4839d SHA1 cad263f58fe11d98f8891d4319950c04805e2b90 SHA256 a26e5400564953aebc86773ebfd5c32129d487b9715e4d8a15d73aa5ab10b9fe +MD5 c8df86c8cd4012b0eae589e0f6be00f4 gcc-2.95.3-r10.ebuild 1187 +RMD160 03a27af4c2fbeae5f78a02cd09c250e625a4839d gcc-2.95.3-r10.ebuild 1187 +SHA256 a26e5400564953aebc86773ebfd5c32129d487b9715e4d8a15d73aa5ab10b9fe gcc-2.95.3-r10.ebuild 1187 EBUILD gcc-2.95.3-r9.ebuild 7901 RMD160 c370d79c16e1cd641a9b8858d1abec987d82de36 SHA1 1eb4594c8d07a1d2d28a26b7af24db70d80dff0d SHA256 d8bf44e949ed8d0f004d46eef9f99a411b6151e4bb7cb27f3c1f2272520036be MD5 22697b99a169131365644493509b4637 gcc-2.95.3-r9.ebuild 7901 RMD160 c370d79c16e1cd641a9b8858d1abec987d82de36 gcc-2.95.3-r9.ebuild 7901 @@ -465,14 +474,17 @@ EBUILD gcc-4.3.0_alpha20061216.ebuild 1944 RMD160 50c1598eaed60033c1c8790d2d0ea0 MD5 1b243f78851d9c921e466fa9987b885b gcc-4.3.0_alpha20061216.ebuild 1944 RMD160 50c1598eaed60033c1c8790d2d0ea04e2b1a72c2 gcc-4.3.0_alpha20061216.ebuild 1944 SHA256 0325decf1c07715304247d4278fd9e713a627c1658a76928e8f68db4a7c72a5c gcc-4.3.0_alpha20061216.ebuild 1944 -MISC ChangeLog 116708 RMD160 3812ae98ca3f6bbed3ca5dcfebec72bcdaa2e5ad SHA1 69f28e3e9475edd3a277ad7e138ef5b7f3e6472a SHA256 f2eedb4a4941be968244e5305079fde07009b38764da31a181e25c6c9e2239c3 -MD5 3d2eea04a7d98fe915cde1fdcd262ff5 ChangeLog 116708 -RMD160 3812ae98ca3f6bbed3ca5dcfebec72bcdaa2e5ad ChangeLog 116708 -SHA256 f2eedb4a4941be968244e5305079fde07009b38764da31a181e25c6c9e2239c3 ChangeLog 116708 +MISC ChangeLog 116877 RMD160 08eb72560ba680bdd8cdebe830f7564b3f2831bb SHA1 d3cfb5210438c0d1b6a6f9d2a4769225d3d6f803 SHA256 0ab8d71f2f98852fe71b6c7f70daf592a5decfb69af9ab7bade49004421a4d57 +MD5 1813afdbbf47f0e7e1294c4e207610a7 ChangeLog 116877 +RMD160 08eb72560ba680bdd8cdebe830f7564b3f2831bb ChangeLog 116877 +SHA256 0ab8d71f2f98852fe71b6c7f70daf592a5decfb69af9ab7bade49004421a4d57 ChangeLog 116877 MISC metadata.xml 162 RMD160 d002486a43522f2116b1d9d59828c484956d66e2 SHA1 d6b4923897f6ae673b4f93646f5b4ba61d5a2c3c SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a MD5 567094e03359ffc1c95af7356395228d metadata.xml 162 RMD160 d002486a43522f2116b1d9d59828c484956d66e2 metadata.xml 162 SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a metadata.xml 162 +MD5 f3953895f0b1edf10f7fc3ef500db255 files/digest-gcc-2.95.3-r10 509 +RMD160 03dbb4ba10d3f898db949137f1ab294784ebfa33 files/digest-gcc-2.95.3-r10 509 +SHA256 63060bfa26d6480ac978023ed0470fe328a6a57b5a856408f5abdb5b855af109 files/digest-gcc-2.95.3-r10 509 MD5 f48b31f32c53bc05bf55e2836411a07e files/digest-gcc-2.95.3-r9 509 RMD160 43c31d0c399307ff38e4e7f3e090145c7d2c4bb2 files/digest-gcc-2.95.3-r9 509 SHA256 36a392cb94d32e30b347c696c1fbf9bf9ff55c9e6f4b1417e0856b363d7e7380 files/digest-gcc-2.95.3-r9 509 @@ -548,3 +560,10 @@ SHA256 ec12ba6e776244ea9cfc08dadf56bfbef96d9cb11a422fb4bb475e6b7f52def6 files/di MD5 388e955f31d3e6c7020dd5018fe77125 files/digest-gcc-4.3.0_alpha20061216 259 RMD160 5a41a2e2d597f2b212042fc0409649bc46bee774 files/digest-gcc-4.3.0_alpha20061216 259 SHA256 d3dec252b404412347f769d5e7e777fecea58c09c7116bf9f19694d245af7533 files/digest-gcc-4.3.0_alpha20061216 259 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.6 (GNU/Linux) + +iD8DBQFFli508bi6rjpTunYRAo4yAJ0clhmDwObCxalmJX2RGMTXvSRFeQCgz62Q +Dz9HdKfHrwmEv9ypDd/ft48= +=E4kx +-----END PGP SIGNATURE----- diff --git a/sys-devel/gcc/files/digest-gcc-2.95.3-r10 b/sys-devel/gcc/files/digest-gcc-2.95.3-r10 new file mode 100644 index 000000000000..a3a7b03cdadf --- /dev/null +++ b/sys-devel/gcc/files/digest-gcc-2.95.3-r10 @@ -0,0 +1,6 @@ +MD5 7ae042904892826b8854b747306e441f gcc-2.95.3-patches-1.3.tar.bz2 116975 +RMD160 035b33d5477bf0f9078cfdb7d07afd6f5ef80023 gcc-2.95.3-patches-1.3.tar.bz2 116975 +SHA256 4e437c8d0e176ad626918963ee2a7976353a2010a08c48498f24c2f85c542c3c gcc-2.95.3-patches-1.3.tar.bz2 116975 +MD5 87ee083a830683e2aaa57463940a0c3c gcc-2.95.3.tar.bz2 9848842 +RMD160 09cca1860ce897000df19643dfd944ae28366a1d gcc-2.95.3.tar.bz2 9848842 +SHA256 cf91a6b4f41248895f06bcd0570a62d2417ee99d32e6e2c5f70490e0eb6af5e4 gcc-2.95.3.tar.bz2 9848842 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 000000000000..507b8481d3de --- /dev/null +++ b/sys-devel/gcc/gcc-2.95.3-r10.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2006 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.1 2006/12/30 09:15:29 vapier Exp $ + +PATCH_VER="1.3" +SPLIT_SPECS="no" +ETYPE="gcc-compiler" + +inherit toolchain eutils flag-o-matic + +KEYWORDS="~x86 ~ppc ~sparc ~alpha" + +RDEPEND=">=sys-libs/zlib-1.1.4 + >=sys-apps/texinfo-4.2-r4 + !build? ( >=sys-libs/ncurses-5.2-r2 )" +DEPEND="${RDEPEND} + !build? ( nls? ( sys-devel/gettext ) )" +PDEPEND="|| ( app-admin/eselect-compiler sys-devel/gcc-config )" + +[[ $(tc-arch ${TARGET}) == "alpha" ]] && GENTOO_PATCH_EXCLUDE="10_all_new-atexit.patch" + +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_compile() { + strip-linguas -u */po + gcc2-flags + toolchain_src_compile +} -- 2.26.2