summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/tigcc/ChangeLog8
-rw-r--r--dev-embedded/tigcc/Manifest62
-rw-r--r--dev-embedded/tigcc/files/digest-tigcc-0.95-r212
-rw-r--r--dev-embedded/tigcc/files/digest-tigcc-0.95_p312
-rw-r--r--dev-embedded/tigcc/files/digest-tigcc-0.96_beta212
-rw-r--r--dev-embedded/tigcc/files/digest-tigcc-0.96_beta815
-rw-r--r--dev-embedded/tigcc/tigcc-0.96_beta8.ebuild248
7 files changed, 337 insertions, 32 deletions
diff --git a/dev-embedded/tigcc/ChangeLog b/dev-embedded/tigcc/ChangeLog
index 8a137db7a318..8aff9711da20 100644
--- a/dev-embedded/tigcc/ChangeLog
+++ b/dev-embedded/tigcc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-embedded/tigcc
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/tigcc/ChangeLog,v 1.13 2006/03/19 22:14:05 halcy0n Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/tigcc/ChangeLog,v 1.14 2006/11/04 01:34:20 dragonheart Exp $
+
+*tigcc-0.96_beta8 (04 Nov 2006)
+
+ 04 Nov 2006; Daniel Black <dragonheart@gentoo.org>
+ +tigcc-0.96_beta8.ebuild:
+ version bump as per bug #82335 thanks to Christian Helbling for the ebuild
19 Mar 2006; Mark Loeser <halcy0n@gentoo.org> tigcc-0.96_beta2.ebuild:
Add DEPEND on app-arch/unzip
diff --git a/dev-embedded/tigcc/Manifest b/dev-embedded/tigcc/Manifest
index e01f90ae046e..ab2562c2f2e9 100644
--- a/dev-embedded/tigcc/Manifest
+++ b/dev-embedded/tigcc/Manifest
@@ -1,37 +1,61 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 bb26989085a2bc405a8c3e8d9bf22abd ChangeLog 1932
-RMD160 0847b2d7b863611339b29ab5fe62c522b718d395 ChangeLog 1932
-SHA256 437873cf67f43bc38e71c4df28d2d1369a5d89700a96515680447c8aa02d3aac ChangeLog 1932
+AUX a68k-fix.patch 625 RMD160 8849731255aaa0746587d0d36de98a2841a914bf SHA1 6d10fd21e79d7ee792fa613b8c2b429627dce142 SHA256 8c2f78daafa407fac7c3fc82bb4b4658d2f053741cdb974c0dcdc36ed3f83034
MD5 627b7e86641edb82ffa0702ff65de4c1 files/a68k-fix.patch 625
RMD160 8849731255aaa0746587d0d36de98a2841a914bf files/a68k-fix.patch 625
SHA256 8c2f78daafa407fac7c3fc82bb4b4658d2f053741cdb974c0dcdc36ed3f83034 files/a68k-fix.patch 625
-MD5 75b1dd6ba9dd67df855f5d0a3165fd06 files/digest-tigcc-0.95-r2 315
-RMD160 ebbf1cb036f407d9c3bd64e5d54f7579ff3c4bfc files/digest-tigcc-0.95-r2 315
-SHA256 95c0d0573ee2a39498196107e89d9349c2ced72ccc16fa72cbe449bda7108326 files/digest-tigcc-0.95-r2 315
-MD5 1ea537485d88f982402fa3bf8930fd64 files/digest-tigcc-0.95_p3 315
-RMD160 c07eac761fb9ea169f62bf306383dbd418bd6c8f files/digest-tigcc-0.95_p3 315
-SHA256 e41278ab011a44202e7148629252a8defce1d9cdacae531fa1e6e89d5b0dc081 files/digest-tigcc-0.95_p3 315
-MD5 e161f0140b76a6dc3981581bc5103585 files/digest-tigcc-0.96_beta2 318
-RMD160 624654419fbd03bbde080b2761367df5604fc591 files/digest-tigcc-0.96_beta2 318
-SHA256 79d5fc895ab668ea2323a58a959c2f72d1ab915ddad8f5e78bcfc7dd1f2d5c27 files/digest-tigcc-0.96_beta2 318
-MD5 420df847a3db1c4969aff20243f656dd metadata.xml 165
-RMD160 3965c22a153ed350bcbd52de07c08ad47dd03cd7 metadata.xml 165
-SHA256 fb7ede94a0633f77d601e3e81580eac1624a3bca14401a49d94082579507ba0a metadata.xml 165
+DIST binutils-2.14.tar.bz2 10921504
+DIST binutils-2.15.tar.bz2 11515075
+DIST binutils-2.16.1.tar.bz2 12549917 RMD160 638861a6b709ac380f1bc13d55c6b48d0532b3d0 SHA1 5c80fd5657da47efc16a63fdd93ef7395319fbbf SHA256 351a6846ee179a37ed87a487971547159a7f4f92a1dec598c727f184a0de61ae
+DIST flashosa.zip 2437 RMD160 9424861be569e6af751271c3143c927f412277ab SHA1 4d8e5504f4c13c697a45727caec45eafb6958107 SHA256 ae0be66d99aea7f7d84364347c220ed1bc8cae5f898a6e8b1a9458b445fdfea4
+DIST gcc-4.1-20060728.tar.bz2 37038705 RMD160 6bd10730f466963440c4fb54df36b34636d9f204 SHA1 5e26d5931fbe4d42b7492272d23f65391b748d93 SHA256 2600728a9448522c80ff64f99eff93a4499f0a7aa460c55bb08e76875084417b
+DIST gcc-core-3.3.3.tar.bz2 11553433
+DIST libfargo.zip 14766 RMD160 08c28c71ead68edcc0e5702bfabce7c9bd225549 SHA1 97a2e70477e53ff237ed538d3ad632c45ca9372b SHA256 c37bacb744c94519b1dea0b0b855baa4379b009ec7200437521895f8a9ea90eb
+DIST tigcc-0.95-r2.tar.bz2 3207132
+DIST tigcc-0.95_p3.tar.bz2 3206165
+DIST tigcc-0.96_beta2.tar.bz2 3295616
+DIST tigcc-0.96_beta7.tar.bz2 2828952 RMD160 11c431a08c0fc8630aab4dcc6f5315b5b38f5f6d SHA1 c302a5c95767d80abbeffc89448f8b16e4a84bbd SHA256 da3d75515f1a0091203b3c1f47f8fa342302e45e0bbe62849391ce0935521b0b
+EBUILD tigcc-0.95-r2.ebuild 6492 RMD160 f996302f315031df39da80bf0e431242c29a1a41 SHA1 8d33d5aed66c952434ef4f3c73ead64964814511 SHA256 94371782d65cf114cbad5196540c67f5d2f02fa6b601862fef29160fef783fdc
MD5 2185d14d5b7a000dd09c66fa6c1425c6 tigcc-0.95-r2.ebuild 6492
RMD160 f996302f315031df39da80bf0e431242c29a1a41 tigcc-0.95-r2.ebuild 6492
SHA256 94371782d65cf114cbad5196540c67f5d2f02fa6b601862fef29160fef783fdc tigcc-0.95-r2.ebuild 6492
+EBUILD tigcc-0.95_p3.ebuild 6493 RMD160 8b3c885054ff7153d3c2598a7774f4ff181538df SHA1 ab964762375e8be5c305c316f0de5f361eef0a83 SHA256 d138b1bdb89ec7592a9d82e4247523bd2b52867e95f8045d3a54c50924f3bef8
MD5 ab3a26d7b8a324524371943f5425e13b tigcc-0.95_p3.ebuild 6493
RMD160 8b3c885054ff7153d3c2598a7774f4ff181538df tigcc-0.95_p3.ebuild 6493
SHA256 d138b1bdb89ec7592a9d82e4247523bd2b52867e95f8045d3a54c50924f3bef8 tigcc-0.95_p3.ebuild 6493
+EBUILD tigcc-0.96_beta2.ebuild 6307 RMD160 debae289305d8aa6deabcddc7314a1ad1691ef7a SHA1 a22f9f12c71246d853c2051c820eac290246ecd2 SHA256 3b1f76a98955668391ef3795a8f57532fe743c3949c89e81a335bf96f1818d2f
MD5 aba71e4e3d724b864f2c46e689355bab tigcc-0.96_beta2.ebuild 6307
RMD160 debae289305d8aa6deabcddc7314a1ad1691ef7a tigcc-0.96_beta2.ebuild 6307
SHA256 3b1f76a98955668391ef3795a8f57532fe743c3949c89e81a335bf96f1818d2f tigcc-0.96_beta2.ebuild 6307
+EBUILD tigcc-0.96_beta8.ebuild 6847 RMD160 67bc22380cec740f11af7db9f8a2fb511b261b57 SHA1 b3e73919366f3c86e85a729dc61e89a574fa7ecf SHA256 33c7f6f322199c3d8d791b0a579f3a2fee3af6c83f402ac9ac01921797418ab0
+MD5 e9b3747197d0741dd9740848a625e702 tigcc-0.96_beta8.ebuild 6847
+RMD160 67bc22380cec740f11af7db9f8a2fb511b261b57 tigcc-0.96_beta8.ebuild 6847
+SHA256 33c7f6f322199c3d8d791b0a579f3a2fee3af6c83f402ac9ac01921797418ab0 tigcc-0.96_beta8.ebuild 6847
+MISC ChangeLog 2128 RMD160 b4e7d6b9be35b4767cb6cad76a3e4c11271d0dbd SHA1 0fb17beabf070d0c664ce07187879ee330a9380f SHA256 62a4e05c86c8359ea75669e8ccf4981f7401e1398fafd5dac25cb14168fa3977
+MD5 2075e40607d86391d411ec797f17e749 ChangeLog 2128
+RMD160 b4e7d6b9be35b4767cb6cad76a3e4c11271d0dbd ChangeLog 2128
+SHA256 62a4e05c86c8359ea75669e8ccf4981f7401e1398fafd5dac25cb14168fa3977 ChangeLog 2128
+MISC metadata.xml 165 RMD160 3965c22a153ed350bcbd52de07c08ad47dd03cd7 SHA1 54b9da7fdc6d8376c990288c72938be9855ef8b6 SHA256 fb7ede94a0633f77d601e3e81580eac1624a3bca14401a49d94082579507ba0a
+MD5 420df847a3db1c4969aff20243f656dd metadata.xml 165
+RMD160 3965c22a153ed350bcbd52de07c08ad47dd03cd7 metadata.xml 165
+SHA256 fb7ede94a0633f77d601e3e81580eac1624a3bca14401a49d94082579507ba0a metadata.xml 165
+MD5 fc5df6c27da14f62ff49605847ed534a files/digest-tigcc-0.95-r2 629
+RMD160 6ac2779d045f0713771a5b9d46ee07e1ebcfc458 files/digest-tigcc-0.95-r2 629
+SHA256 08b095d3c3342bc8685f1c33ff537d373f1c19788921e2f09cf964dfa9dc6628 files/digest-tigcc-0.95-r2 629
+MD5 7d12aba85c5ededa72eaebbf319fc6c2 files/digest-tigcc-0.95_p3 629
+RMD160 5e13c6bc9707162acd165547d08caab4897ae917 files/digest-tigcc-0.95_p3 629
+SHA256 9efc8329edba2748ccba28f837b5f33722a089ea678fa7a622b30b836f6159aa files/digest-tigcc-0.95_p3 629
+MD5 4801efb42950a150c4448c66666f49ce files/digest-tigcc-0.96_beta2 632
+RMD160 227a4c38444c0054634a72997668efaf21065f60 files/digest-tigcc-0.96_beta2 632
+SHA256 df4155ba2f44b2379e5e7b7cba7330230b309ca8ada1f47c2edd9d9fbc401cf2 files/digest-tigcc-0.96_beta2 632
+MD5 dd7ff5898baf31136e4ad5e715095f23 files/digest-tigcc-0.96_beta8 1196
+RMD160 a540623758ae8c4d4136076bc7da3553c1f65991 files/digest-tigcc-0.96_beta8 1196
+SHA256 b332fc139d5e4f81f2da11dcf4012ddc6146c4100ecc6adffc874119ede195bd files/digest-tigcc-0.96_beta8 1196
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2.2 (GNU/Linux)
+Version: GnuPG v1.4.5-ecc0.1.6 (GNU/Linux)
-iD8DBQFEHde3CRZPokWLroQRAt0qAKCSNsxcjCFmI/NhnzTTBnEhikEklwCgwQh3
-rA1xAiYhcOSsjxnivowbWf8=
-=q1YG
+iD8DBQFFS/FqmdTrptrqvGERAgypAKCSc5NR8ZS/zzjwIW8HT6u9K/+HBACfe4T8
+u9tkOdcOdF98YS+6l/1N0rE=
+=PmLf
-----END PGP SIGNATURE-----
diff --git a/dev-embedded/tigcc/files/digest-tigcc-0.95-r2 b/dev-embedded/tigcc/files/digest-tigcc-0.95-r2
index f5083a7fab7e..427258885f82 100644
--- a/dev-embedded/tigcc/files/digest-tigcc-0.95-r2
+++ b/dev-embedded/tigcc/files/digest-tigcc-0.95-r2
@@ -1,5 +1,9 @@
-MD5 c62c63d45f9d2f1819bc4d2d83a0c615 tigcc-0.95-r2.tar.bz2 3207132
-MD5 f878a455b14b3830aaf2da0a17f003c0 gcc-core-3.3.3.tar.bz2 11553433
MD5 2da8def15d28af3ec6af0982709ae90a binutils-2.14.tar.bz2 10921504
-MD5 cdf21c9161d140468929473723b9c48f libfargo.zip 14658
-MD5 4c9eea1d6d2a6ab967e81b57a6021e84 flashosa.zip 2397
+MD5 ab4540a43406f08f442a28cf40d29e0c flashosa.zip 2437
+RMD160 9424861be569e6af751271c3143c927f412277ab flashosa.zip 2437
+SHA256 ae0be66d99aea7f7d84364347c220ed1bc8cae5f898a6e8b1a9458b445fdfea4 flashosa.zip 2437
+MD5 f878a455b14b3830aaf2da0a17f003c0 gcc-core-3.3.3.tar.bz2 11553433
+MD5 ef4d19d5d502288f24611598ce335153 libfargo.zip 14766
+RMD160 08c28c71ead68edcc0e5702bfabce7c9bd225549 libfargo.zip 14766
+SHA256 c37bacb744c94519b1dea0b0b855baa4379b009ec7200437521895f8a9ea90eb libfargo.zip 14766
+MD5 c62c63d45f9d2f1819bc4d2d83a0c615 tigcc-0.95-r2.tar.bz2 3207132
diff --git a/dev-embedded/tigcc/files/digest-tigcc-0.95_p3 b/dev-embedded/tigcc/files/digest-tigcc-0.95_p3
index db2819ba8009..ffbbd4a81bf8 100644
--- a/dev-embedded/tigcc/files/digest-tigcc-0.95_p3
+++ b/dev-embedded/tigcc/files/digest-tigcc-0.95_p3
@@ -1,5 +1,9 @@
-MD5 e067e151fcd7929bf6deca8b2c00ec41 tigcc-0.95_p3.tar.bz2 3206165
-MD5 f878a455b14b3830aaf2da0a17f003c0 gcc-core-3.3.3.tar.bz2 11553433
MD5 2da8def15d28af3ec6af0982709ae90a binutils-2.14.tar.bz2 10921504
-MD5 cdf21c9161d140468929473723b9c48f libfargo.zip 14658
-MD5 4c9eea1d6d2a6ab967e81b57a6021e84 flashosa.zip 2397
+MD5 ab4540a43406f08f442a28cf40d29e0c flashosa.zip 2437
+RMD160 9424861be569e6af751271c3143c927f412277ab flashosa.zip 2437
+SHA256 ae0be66d99aea7f7d84364347c220ed1bc8cae5f898a6e8b1a9458b445fdfea4 flashosa.zip 2437
+MD5 f878a455b14b3830aaf2da0a17f003c0 gcc-core-3.3.3.tar.bz2 11553433
+MD5 ef4d19d5d502288f24611598ce335153 libfargo.zip 14766
+RMD160 08c28c71ead68edcc0e5702bfabce7c9bd225549 libfargo.zip 14766
+SHA256 c37bacb744c94519b1dea0b0b855baa4379b009ec7200437521895f8a9ea90eb libfargo.zip 14766
+MD5 e067e151fcd7929bf6deca8b2c00ec41 tigcc-0.95_p3.tar.bz2 3206165
diff --git a/dev-embedded/tigcc/files/digest-tigcc-0.96_beta2 b/dev-embedded/tigcc/files/digest-tigcc-0.96_beta2
index dc4c8e4103f0..7eb14c409d2f 100644
--- a/dev-embedded/tigcc/files/digest-tigcc-0.96_beta2
+++ b/dev-embedded/tigcc/files/digest-tigcc-0.96_beta2
@@ -1,5 +1,9 @@
-MD5 afdb56ddc1537922883b10aed1a0d353 tigcc-0.96_beta2.tar.bz2 3295616
-MD5 f878a455b14b3830aaf2da0a17f003c0 gcc-core-3.3.3.tar.bz2 11553433
MD5 624e6b74983ac6b2960edaf2d522ca58 binutils-2.15.tar.bz2 11515075
-MD5 cdf21c9161d140468929473723b9c48f libfargo.zip 14658
-MD5 4c9eea1d6d2a6ab967e81b57a6021e84 flashosa.zip 2397
+MD5 ab4540a43406f08f442a28cf40d29e0c flashosa.zip 2437
+RMD160 9424861be569e6af751271c3143c927f412277ab flashosa.zip 2437
+SHA256 ae0be66d99aea7f7d84364347c220ed1bc8cae5f898a6e8b1a9458b445fdfea4 flashosa.zip 2437
+MD5 f878a455b14b3830aaf2da0a17f003c0 gcc-core-3.3.3.tar.bz2 11553433
+MD5 ef4d19d5d502288f24611598ce335153 libfargo.zip 14766
+RMD160 08c28c71ead68edcc0e5702bfabce7c9bd225549 libfargo.zip 14766
+SHA256 c37bacb744c94519b1dea0b0b855baa4379b009ec7200437521895f8a9ea90eb libfargo.zip 14766
+MD5 afdb56ddc1537922883b10aed1a0d353 tigcc-0.96_beta2.tar.bz2 3295616
diff --git a/dev-embedded/tigcc/files/digest-tigcc-0.96_beta8 b/dev-embedded/tigcc/files/digest-tigcc-0.96_beta8
new file mode 100644
index 000000000000..0db2f7870317
--- /dev/null
+++ b/dev-embedded/tigcc/files/digest-tigcc-0.96_beta8
@@ -0,0 +1,15 @@
+MD5 6a9d529efb285071dad10e1f3d2b2967 binutils-2.16.1.tar.bz2 12549917
+RMD160 638861a6b709ac380f1bc13d55c6b48d0532b3d0 binutils-2.16.1.tar.bz2 12549917
+SHA256 351a6846ee179a37ed87a487971547159a7f4f92a1dec598c727f184a0de61ae binutils-2.16.1.tar.bz2 12549917
+MD5 ab4540a43406f08f442a28cf40d29e0c flashosa.zip 2437
+RMD160 9424861be569e6af751271c3143c927f412277ab flashosa.zip 2437
+SHA256 ae0be66d99aea7f7d84364347c220ed1bc8cae5f898a6e8b1a9458b445fdfea4 flashosa.zip 2437
+MD5 17b79ad78932e8711782c1adb48453e9 gcc-4.1-20060728.tar.bz2 37038705
+RMD160 6bd10730f466963440c4fb54df36b34636d9f204 gcc-4.1-20060728.tar.bz2 37038705
+SHA256 2600728a9448522c80ff64f99eff93a4499f0a7aa460c55bb08e76875084417b gcc-4.1-20060728.tar.bz2 37038705
+MD5 ef4d19d5d502288f24611598ce335153 libfargo.zip 14766
+RMD160 08c28c71ead68edcc0e5702bfabce7c9bd225549 libfargo.zip 14766
+SHA256 c37bacb744c94519b1dea0b0b855baa4379b009ec7200437521895f8a9ea90eb libfargo.zip 14766
+MD5 84baea5ce72eac4a46adf784a23a312e tigcc-0.96_beta7.tar.bz2 2828952
+RMD160 11c431a08c0fc8630aab4dcc6f5315b5b38f5f6d tigcc-0.96_beta7.tar.bz2 2828952
+SHA256 da3d75515f1a0091203b3c1f47f8fa342302e45e0bbe62849391ce0935521b0b tigcc-0.96_beta7.tar.bz2 2828952
diff --git a/dev-embedded/tigcc/tigcc-0.96_beta8.ebuild b/dev-embedded/tigcc/tigcc-0.96_beta8.ebuild
new file mode 100644
index 000000000000..330cbe242414
--- /dev/null
+++ b/dev-embedded/tigcc/tigcc-0.96_beta8.ebuild
@@ -0,0 +1,248 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/tigcc/tigcc-0.96_beta8.ebuild,v 1.1 2006/11/04 01:34:20 dragonheart Exp $
+
+inherit eutils
+
+BASE_BINUTILS="2.16.1"
+GCC_VER="4.1.2"
+GCC_SNAPSHOT="20060728"
+BIN_VER=${BASE_BINUTILS:0:4}
+ENV_FILE=${D}/etc/env.d/99tigcc
+S=$WORKDIR
+DESCRIPTION="Cross compiler for Texas Instruments TI-89, TI-92(+) and V200 calculators"
+HOMEPAGE="http://tigcc.ticalc.org"
+
+
+#original source can be found at:
+#SRC_URI="http://tigcc.ticalc.org/linux/tigcc_src.tar.bz2"
+#but in fact this file changes as soon as there comes a new beta
+
+#when it hits portage of course it should be mirrored on a gentoo mirror:
+#SRC_URI="mirror://gentoo/${PF}.tar.bz2"
+
+SRC_URI="http://www.helch.ch/gentoo/distfiles/tigcc-0.96_beta7.tar.bz2
+ ftp://gcc.gnu.org/pub/gcc/snapshots/4.1-${GCC_SNAPSHOT}/gcc-4.1-${GCC_SNAPSHOT}.tar.bz2
+ mirror:/kernel/linux/devel/binutils/binutils-${BASE_BINUTILS}.tar.bz2
+ http://members.chello.at/gerhard.kofler/kevin/ti89prog/libfargo.zip
+ http://members.chello.at/gerhard.kofler/kevin/ti89prog/flashosa.zip"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="doc"
+
+DEPEND="virtual/libc
+ >=sys-devel/binutils-2.14.90.0.6-r1
+ >=sys-devel/bison-1.875"
+
+RESTRICT="strip"
+
+src_unpack() {
+ unpack ${A}
+
+ # start by patching and cleaning out binutils and gcc directories.
+ cd ${WORKDIR}/binutils-${BASE_BINUTILS}
+ epatch ${S}/sources/gcc/gas-${BIN_VER}-tigcc-*.diff
+
+ rm -f .brik
+ rm -f md5.sum
+ rm -f -r INSTALL
+ rm -f -r maintainer-scripts
+ rm -f -r binutils
+ rm -f -r cpu
+ rm -f -r etc
+ rm -f -r gas/doc
+ rm -f -r gas/po
+ rm -f -r gprof
+ rm -f -r include/nlm
+ rm -f -r include/regs
+ rm -f -r ld
+ rm -f -r texinfo
+
+ cd ${WORKDIR}/gcc-4.1-${GCC_SNAPSHOT}
+ epatch ${S}/sources/gcc/gcc-4.1-tigcc-patch.diff
+
+ rm -f .brik
+ rm -f md5.sum
+ rm -f -r INSTALL
+ rm -f -r fixincludes
+ rm -f -r gcc/ginclude
+ rm -f -r gcc/po
+ rm -f -r gcc/doc
+ rm -f -r gcc/treelang
+ rm -f -r libcpp/po
+ rm -f -r maintainer-scripts
+ rm -f -r etc
+ rm -f -r gprof
+ rm -f -r include/nlm
+ rm -f -r include/regs
+ rm -f -r texinfo
+
+ # create build directories for binutils and gcc
+ mkdir -p ${WORKDIR}/build/binutils
+ mkdir ${WORKDIR}/build/gcc
+
+ # Workaround for non-existing directories
+ sed -ie '/SUBDIRS =/d' ${WORKDIR}/binutils-${BASE_BINUTILS}/gas/Makefile.in
+}
+
+src_compile() {
+ # build binutils
+ cd ${WORKDIR}/build/binutils
+ CFLAGS="${CFLAGS}" ${WORKDIR}/binutils-${BASE_BINUTILS}/configure \
+ --disable-serial-configure --target=m68k-coff --disable-shared \
+ --enable-static --disable-multilib --disable-nls \
+ || die
+ emake || die "gas"
+
+ # build gcc
+ cd ${WORKDIR}/build/gcc
+ CFLAGS="${CFLAGS}" ${WORKDIR}/gcc-4.1-${GCC_SNAPSHOT}/configure --target=m68k-coff \
+ --with-gnu-as --with-as=${WORKDIR}/build/binutils/gas/as-new --with-gnu-ld \
+ --disable-nls --disable-multilib --disable-shared --enable-static \
+ --disable-threads --enable-languages=c --disable-win32-registry \
+ --disable-checking --disable-werror --disable-pch --disable-mudflap \
+ || die
+
+ # GCC compilations _is intended_ to fail on a certain point,
+ # don't worry about that.
+ emake -j1
+
+ # Check if gcc has been built, die otherwise
+ ( [ -e ${WORKDIR}/build/gcc/gcc/xgcc ] && [ -e ${WORKDIR}/build/gcc/gcc/cc1 ] ) || die "gcc"
+
+ # build a68k assembler
+ cd ${S}/sources/a68k
+ emake -e || die "a68k"
+
+ # build ld-tigcc linker
+ cd ${S}/sources/ld-tigcc
+ emake -e || die "ld-tigcc"
+
+ # build tigcc front-end
+ cd ${S}/sources/tigcc/src
+ emake -e || die "tigcc"
+
+ # build tprbuilder (TIGCC project builder)
+ cd ${S}/sources/tprbuilder/src
+ emake -e || die "tprbuilder"
+
+ # build patcher (object file patcher)
+ cd ${S}/sources/patcher/src
+ emake -e || die "patcher"
+
+}
+
+src_install() {
+ # install documentation
+ dodir /usr/bin
+
+ if use doc ; then
+ # patch the script that launches the documentation
+ # browser to point to the correct location
+ sed "s:\${TIGCC}/doc:/usr/share/doc/${P}:g" \
+ ${S}/tigcclib/doc/converter/tigccdoc \
+ > ${S}/tigcclib/doc/converter/tigccdoc.new
+
+ cd ${S}/tigcclib/doc/converter
+ newbin tigccdoc.new tigccdoc
+ cd ${S}/tigcclib/doc
+ dohtml -r html/*
+ cp html/qt-assistant.adp ${D}/usr/share/doc/${PF}/html
+
+ cd ${S}/sources/a68k
+ fi
+
+ dodir /usr/share/doc/${PF}
+ cd ${S}
+ dodoc AUTHORS BUGS CHANGELOG COPYING DIRECTORIES HOWTO \
+ INSTALL README README.linux README.osX
+
+ cd ${S}/sources/tigcc
+ docinto tigcc
+ dodoc AUTHORS COPYING ChangeLog README
+
+ cd ${S}/sources/tprbuilder
+ docinto tprbuilder
+ dodoc AUTHORS COPYING ChangeLog README
+
+ cd ${S}/sources/patcher
+ docinto patcher
+ dodoc AUTHORS COPYING ChangeLog README
+
+ exeinto /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}
+ # install gcc
+ cd ${WORKDIR}/build/gcc
+ doexe gcc/cc1
+ newexe gcc/xgcc gcc
+ dosym /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/gcc \
+ /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/ti-linux-gnu-gcc
+
+ # install gas
+ # exeinto /usr/ti-linux-gnu/bin <-- a symlink will be
+ # created so that gas resides in /usr/ti-linux-gnu/bin too
+ cd ${WORKDIR}/build/binutils
+ newexe gas/as-new as
+
+ # install a68k
+ cd ${S}/sources/a68k
+ newexe A68k a68k
+
+ # install ld-tigcc
+ cd ${S}/sources/ld-tigcc
+ doexe ld-tigcc
+ doexe ar-tigcc
+
+ # install tigcc
+ cd ${S}/sources/tigcc/src
+ doexe tigcc
+ dosym /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/tigcc \
+ /usr/ti-linux-gnu/tigcc-bin/${GCC_VER}/ti-linux-gnu-tigcc
+
+ # install tprbuilder
+ cd ${S}/sources/tprbuilder/src
+ doexe tprbuilder
+
+ # install patcher
+ cd ${S}/sources/patcher/src
+ doexe patcher
+
+ # install header files
+ dodir /usr/include/tigcc
+ cp -R ${S}/tigcclib/include/* ${D}/usr/include/tigcc
+ dosym /usr/include/tigcc/asm/os.h /usr/include/tigcc/asm/OS.h
+
+ insinto /usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER}
+ # install library
+ cd ${S}/tigcclib
+ doins lib/*
+ cd ${WORKDIR}
+ doins flashos.a
+ doins fargo.a
+
+ dodir /usr/share/tigcc
+ # copy example programs
+ # cp -r ${S}/examples ${D}/usr/share/tigcc
+
+ # create TIGCC env variable
+ dodir /etc/env.d/gcc
+ # echo -e "TIGCC=\"/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}\"" >> ${ENV_FILE}
+ # echo -e "CC=\"tigcc\"" >> ${ENV_FILE}
+ echo -e "TIGCC=\"/usr/ti-linux-gnu\"" >> ${ENV_FILE}
+ echo -e "PATH=\"/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}:/usr/ti-linux-gnu/bin\"" >> ${ENV_FILE}
+ echo -e "ROOTPATH=\"/usr/ti-linux-gnu/tigcc-bin/${GCC_VER}:/usr/ti-linux-gnu/bin\"" >> ${ENV_FILE}
+ echo -e "LDPATH=\"/usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER}\"" >> ${ENV_FILE}
+
+ # a cross-compiling gcc with hard-coded names has been built.
+ # therefore, we must place some symlinks.
+ dosym /usr/include/tigcc /usr/ti-linux-gnu/include
+ dosym /usr/lib/gcc-lib/ti-linux-gnu/${GCC_VER} /usr/ti-linux-gnu/lib
+ dosym /usr/share/doc/${PF} /usr/ti-linux-gnu/doc
+ dosym /usr/ti-linux-gnu/tigcc-bin/${GCC_VER} /usr/ti-linux-gnu/bin
+}
+
+pkg-postinst() {
+ env-update && source /etc/profile
+}