summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Jones <cretin@gentoo.org>2002-11-08 20:13:23 +0000
committerStefan Jones <cretin@gentoo.org>2002-11-08 20:13:23 +0000
commit7657bbeb632119a599af0eac51c8a68b701ba0bf (patch)
treea5fef95a7bec6a1c99f1fbe4a4119a103882f021 /dev-java
parentglibc-2.3.1 related fix (diff)
downloadgentoo-2-7657bbeb632119a599af0eac51c8a68b701ba0bf.tar.gz
gentoo-2-7657bbeb632119a599af0eac51c8a68b701ba0bf.tar.bz2
gentoo-2-7657bbeb632119a599af0eac51c8a68b701ba0bf.zip
added disk check magic!!
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild13
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