diff options
author | Saleem Abdulrasool <compnerd@gentoo.org> | 2005-02-18 18:40:39 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@gentoo.org> | 2005-02-18 18:40:39 +0000 |
commit | ab8171cae37f44bc1f4e3ced56403d42a81ac640 (patch) | |
tree | a754c07bbb11a3e6931dbd36cfd9e445ee0956ff /dev-java/batik | |
parent | version bump. (diff) | |
download | historical-ab8171cae37f44bc1f4e3ced56403d42a81ac640.tar.gz historical-ab8171cae37f44bc1f4e3ced56403d42a81ac640.tar.bz2 historical-ab8171cae37f44bc1f4e3ced56403d42a81ac640.zip |
I want my memory! Resolves bug #82377
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'dev-java/batik')
-rw-r--r-- | dev-java/batik/ChangeLog | 6 | ||||
-rw-r--r-- | dev-java/batik/Manifest | 4 | ||||
-rw-r--r-- | dev-java/batik/batik-1.5.1-r3.ebuild | 15 |
3 files changed, 21 insertions, 4 deletions
diff --git a/dev-java/batik/ChangeLog b/dev-java/batik/ChangeLog index 2c65c4ec79d0..3a7b238c23ef 100644 --- a/dev-java/batik/ChangeLog +++ b/dev-java/batik/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-java/batik # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v 1.18 2005/01/29 21:25:13 luckyduck Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/ChangeLog,v 1.19 2005/02/18 18:40:39 compnerd Exp $ + + 18 Feb 2005; Saleem Abdulrasool <compnerd@gentoo.org> + batik-1.5.1-r3.ebuild: + Added memory check; Resolves bug #82377 *batik-1.5.1-r3 (29 Jan 2005) diff --git a/dev-java/batik/Manifest b/dev-java/batik/Manifest index 994e24d71543..f130d698c72a 100644 --- a/dev-java/batik/Manifest +++ b/dev-java/batik/Manifest @@ -1,6 +1,6 @@ -MD5 4575891992efe6a44792b9f733f83ccc batik-1.5.1-r3.ebuild 1410 +MD5 ef995a113c15163bc4db93eaedc0c1d4 batik-1.5.1-r3.ebuild 1718 MD5 914f1ad23f39cbaa68716d2557b2c956 batik-1.5.1.ebuild 1050 -MD5 1f0dc15e5b86ae9bd1c1ec53cc2a5deb ChangeLog 2061 +MD5 aa3b019ddd838c5f96eff9be5e78c104 ChangeLog 2184 MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 MD5 2773f6aa10bcb901bd07ea509571ccef files/digest-batik-1.5.1 66 MD5 2773f6aa10bcb901bd07ea509571ccef files/digest-batik-1.5.1-r3 66 diff --git a/dev-java/batik/batik-1.5.1-r3.ebuild b/dev-java/batik/batik-1.5.1-r3.ebuild index 1b1d29fc6e24..8e4f67d57660 100644 --- a/dev-java/batik/batik-1.5.1-r3.ebuild +++ b/dev-java/batik/batik-1.5.1-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/batik-1.5.1-r3.ebuild,v 1.1 2005/01/29 21:25:13 luckyduck Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/batik/batik-1.5.1-r3.ebuild,v 1.2 2005/02/18 18:40:39 compnerd Exp $ inherit java-pkg @@ -31,6 +31,15 @@ src_unpack() { } src_compile() { + if [ $(memory) -lt 262144 ] ; then + echo + ewarn "To build batik, atleast 256MB of RAM is recommended." + ewarn "Your system has less than 256MB of RAM, continuing anyways." + echo + + export ANT_OPTS=-Xmx256m + fi + local antflags="jars" ant ${antflags} || die "compile problem" } @@ -48,3 +57,7 @@ src_install () { dobin ${PN} } + +function memory() { + cat /proc/meminfo | grep Memtotal | sed -r "s/[^0-9]*([0-9]+).*/\1/" +} |