commit:     11a62943a13d8d1837f530fa234480991589a501
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Thu Mar 16 10:35:06 2017 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Thu Mar 16 10:35:06 2017 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=11a62943

sci-biology/imagej: there is no separate /proc/meminfo in EPREFIXed hosts

Add link to github issue. Remove CVS header line.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 sci-biology/imagej/imagej-1.51k.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sci-biology/imagej/imagej-1.51k.ebuild 
b/sci-biology/imagej/imagej-1.51k.ebuild
index 0467973e4..26a5ab0b7 100644
--- a/sci-biology/imagej/imagej-1.51k.ebuild
+++ b/sci-biology/imagej/imagej-1.51k.ebuild
@@ -1,6 +1,5 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: $
 
 EAPI=6
 
@@ -14,6 +13,7 @@ MY_PV=$(delete_all_version_separators)
 # version instead. Change to present version locally if you are sure proper
 # version has been released.
 # see https://bugs.gentoo.org/show_bug.cgi?id=112275
+# https://github.com/imagej/imagej1/issues/28
 IJ_PV=$(expr ${MY_PV::3} - 1)
 
 DESCRIPTION="Image Processing and Analysis in Java"
@@ -26,7 +26,7 @@ 
SRC_URI="http://imagej.nih.gov/ij/download/src/${MY_PN}${MY_PV}-src.zip
 #      plugins? ( 
http://rsb.info.nih.gov/ij/download/zips/${MY_PN}${IJ_PV}.zip )"
 
 RESTRICT=""
-LICENSE="public-domain"
+LICENSE="public-domain" # http://imagej.net/disclaimer.html
 SLOT="0"
 
 KEYWORDS=""
@@ -66,7 +66,7 @@ src_compile() {
        ant ${antflags} || die  "ant build failed"
 
        # Max memory usage depends on available memory and CPU type
-       MEM=$(grep MemTotal ${EPREFIX}/proc/meminfo | cut -d':' -f2 | grep -o 
[0-9]*)
+       MEM=$(grep MemTotal /proc/meminfo | cut -d':' -f2 | grep -o [0-9]*)
        IJ_MAX_MEM=$(expr ${MEM} / 1024)
        if use x86 && $IJ_MAX_MEM -gt 2048 ; then
                IJ_MAX_MEM=2048

Reply via email to