diff options
author | Stefan Jones <cretin@gentoo.org> | 2002-11-08 20:13:23 +0000 |
---|---|---|
committer | Stefan Jones <cretin@gentoo.org> | 2002-11-08 20:13:23 +0000 |
commit | d19b0a087fdce7544db0dc606b4a0e65176ab430 (patch) | |
tree | 0b111f152d1856b42252c3013b079fd1a74aa9c5 /dev-java/sun-j2sdk | |
parent | glibc-2.3.1 related fix (diff) | |
download | historical-d19b0a087fdce7544db0dc606b4a0e65176ab430.tar.gz historical-d19b0a087fdce7544db0dc606b4a0e65176ab430.tar.bz2 historical-d19b0a087fdce7544db0dc606b4a0e65176ab430.zip |
added disk check magic!!
Diffstat (limited to 'dev-java/sun-j2sdk')
-rw-r--r-- | dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild b/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild index 2d1fc360bd69..67d8f7f4a752 100644 --- a/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild +++ b/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # Maintainer: Stefan Jones <cretin@gentoo.org> # Author: Stefan Jones <cretin@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild,v 1.3 2002/11/08 15:02:59 cretin Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild,v 1.4 2002/11/08 20:13:23 cretin Exp $ # Based on http://tushar.lfsforum.org/javafromscratch.txt (LFS) # By Tushar Teredesai <Tush@Yahoo.Com> @@ -46,7 +46,16 @@ DEPEND="${RDEPEND} PROVIDE="virtual/jre-1.4.0 virtual/jdk-1.4.0 virtual/java-scheme-2" - + +pkg_setup() { + #Check if we have enough space + if [ `df /var/tmp/portage/ | tail -n 1 | awk '{ print $4 }'` -le 2097152 ] ; then + eerror "You need about 2G of disk space to compile this at /var/tmp/portage," + eerror "it seems you don't have that much, quiting, sorry!" + die "Not enough disk space" + fi +} + src_unpack() { die_flag="" if [ ! -f ${DISTDIR}/${SRC_MOZHEADERS} ] ; then |