diff options
author | David Holm <dholm@gentoo.org> | 2004-03-05 13:29:09 +0000 |
---|---|---|
committer | David Holm <dholm@gentoo.org> | 2004-03-05 13:29:09 +0000 |
commit | b65669349fd20d4aedbb3b24f73a8a7d4cda0101 (patch) | |
tree | 1fa26e574fad4d8e73a447c74938a96fe1fb4c36 /app-emulation/uae | |
parent | stable on sparc (diff) | |
download | historical-b65669349fd20d4aedbb3b24f73a8a7d4cda0101.tar.gz historical-b65669349fd20d4aedbb3b24f73a8a7d4cda0101.tar.bz2 historical-b65669349fd20d4aedbb3b24f73a8a7d4cda0101.zip |
Added splitter script from Michal Januszewski (spock@g.o)
Diffstat (limited to 'app-emulation/uae')
-rw-r--r-- | app-emulation/uae/ChangeLog | 7 | ||||
-rw-r--r-- | app-emulation/uae/Manifest | 5 | ||||
-rw-r--r-- | app-emulation/uae/files/split_cpuemu.pl | 32 | ||||
-rw-r--r-- | app-emulation/uae/uae-0.8.25_pre20040302.ebuild | 19 |
4 files changed, 53 insertions, 10 deletions
diff --git a/app-emulation/uae/ChangeLog b/app-emulation/uae/ChangeLog index 0c65d3ff164b..fa7fd3604c08 100644 --- a/app-emulation/uae/ChangeLog +++ b/app-emulation/uae/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/uae # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/ChangeLog,v 1.14 2004/03/04 21:04:12 dholm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/ChangeLog,v 1.15 2004/03/05 13:29:09 dholm Exp $ + + 05 Mar 2004; David Holm <dholm@gentoo.org> uae-0.8.25_pre20040302.ebuild, + files/split_cpuemu.pl: + Added split script from Michal Januszewski which reduces the amount of time + and memory needed to compile the CPU-core. 04 Mar 2004; David Holm <dholm@gentoo.org> uae-0.8.25_pre20040302.ebuild, files/install_libscg_gentoo: diff --git a/app-emulation/uae/Manifest b/app-emulation/uae/Manifest index 39a6537b3719..2f4b8eb93f55 100644 --- a/app-emulation/uae/Manifest +++ b/app-emulation/uae/Manifest @@ -1,8 +1,9 @@ -MD5 d8b01c760b4e6291119ca205968eeb6b ChangeLog 2313 +MD5 73fefc76e7aa030a2c0c93b69571de2a ChangeLog 2538 MD5 9942fdc6d0c4e617f237b18ed3f71768 uae-0.8.22.ebuild 1251 MD5 800d59bca6b74f54268ca8c63af928ee metadata.xml 668 MD5 a79fb678ea1d364d3105b6fbc3ddacc4 uae-0.8.23_pre20040129.ebuild 1348 -MD5 4864bd6964906719d773b6ad309c7bab uae-0.8.25_pre20040302.ebuild 1438 +MD5 bcfcafc2f832275ae56f4693c4945e25 uae-0.8.25_pre20040302.ebuild 1615 +MD5 77b204c71d52f0a0423054b5a9b8a0cb files/split_cpuemu.pl 498 MD5 b2fac0f21ee34abaa6279cf7ad023119 files/digest-uae-0.8.22 62 MD5 4d3af2d2cc2945b006249066cb8c7adb files/uae-patch.diff 364 MD5 24ce02be9243fef32739ff76bd9ba84c files/digest-uae-0.8.23_pre20040129 73 diff --git a/app-emulation/uae/files/split_cpuemu.pl b/app-emulation/uae/files/split_cpuemu.pl new file mode 100644 index 000000000000..0ddacecc6c87 --- /dev/null +++ b/app-emulation/uae/files/split_cpuemu.pl @@ -0,0 +1,32 @@ +#!/usr/bin/perl + +open(INPUT, "<cpuemu_6.c"); +open(OUT1, ">cpuemu_6.t"); +open(OUT2, ">cpuemu_7.c"); + +$header = 1; +$part = 0; + +while ($line = <INPUT>) { + + $size += length($line); + + if (($line =~ /^#/ || $line eq "\n") && ($line ne "#ifdef PART_1\n") && $header) { + print OUT1 $line; + print OUT2 $line; + } else { + + $header = 0; + + if ($line ne "#ifdef PART_4\n" && $part == 0) { + print OUT1 $line; + } else { + $part = 1; + print OUT2 $line; + } + } +} + +close(OUT2); +close(OUT1); +close(INPUT); diff --git a/app-emulation/uae/uae-0.8.25_pre20040302.ebuild b/app-emulation/uae/uae-0.8.25_pre20040302.ebuild index 0ef924c0e572..a9c99d568716 100644 --- a/app-emulation/uae/uae-0.8.25_pre20040302.ebuild +++ b/app-emulation/uae/uae-0.8.25_pre20040302.ebuild @@ -1,8 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/uae-0.8.25_pre20040302.ebuild,v 1.2 2004/03/04 21:04:12 dholm Exp $ - -inherit flag-o-matic +# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/uae-0.8.25_pre20040302.ebuild,v 1.3 2004/03/05 13:29:09 dholm Exp $ MY_PV="0.8.25-20040302" S="${WORKDIR}/${PN}-${MY_PV}" @@ -22,18 +20,25 @@ DEPEND="X? ( virtual/x11 gtk? x11-libs/gtk+ ) : games-emulation/caps" src_compile() { - ewarn "Compiling the CPU-core requires a substantial amount of RAM." - ewarn "Make sure that you have at least 512MB of RAM+SWAP available." - - replace-flags "-O3" "-O2" use sdl && myconf="--with-sdl-sound --with-sdl-gfx" + cp ${FILESDIR}/split_cpuemu.pl ${S}/src + chmod +x ${S}/src/split_cpuemu.pl + econf ${myconf} \ --enable-threads \ --enable-scsi-device \ --with-libscg-includedir=/usr/include/scsilib \ || die "./configure failed" + cd ${S}/src + + sed -ir 's#cpuemu_6.\([a-z]*\)#cpuemu_6.\1 cpuemu_7.\1#g' Makefile + sed -ir 's#cpuemu_nf_6.\([a-z]*\)#cpuemu_nf_6.\1 cpuemu_nf_7.\1#g' Makefile + sed -ir 's#\(./tools/build68k <../src/table68k >cpudefs.c\)#\1\n ./split_cpuemu.pl; mv cpuemu_6.t cpuemu_6.c#' Makefile + + cd ${S} + emake -j1 || die "emake failed" } |