commit:     2547daf2073118349d378e765f96d227104a7aa1
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Sun Feb 19 00:51:34 2017 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Sun Feb 19 00:51:34 2017 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=2547daf2

sci-biology/tablet-bin: version bump

Pass '-Djava.util.prefs.systemRoot=${TMPDIR}' to java to avoid permission denied
when writing to /etc/.java/.systemPrefs (outside our sandbox)

The /opt/Tablet/tablet wrapper falsely issues error although am on Oracle JDK 
1.8.0.121 [oracle-jdk-bin-1.8]:

  java.lang.UnsupportedClassVersionError: tablet/gui/Tablet : Unsupported 
major.minor version 52.0

However, 'java -jar /opt/Tablet/lib/tablet.jar' runs fine.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 ...blet-bin-1.15.09.01.ebuild => tablet-bin-1.16.09.06.ebuild} | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sci-biology/tablet-bin/tablet-bin-1.15.09.01.ebuild 
b/sci-biology/tablet-bin/tablet-bin-1.16.09.06.ebuild
similarity index 93%
rename from sci-biology/tablet-bin/tablet-bin-1.15.09.01.ebuild
rename to sci-biology/tablet-bin/tablet-bin-1.16.09.06.ebuild
index d894aa183..78b7b5386 100644
--- a/sci-biology/tablet-bin/tablet-bin-1.15.09.01.ebuild
+++ b/sci-biology/tablet-bin/tablet-bin-1.16.09.06.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -35,9 +35,10 @@ IUSE=""
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 DEPEND="${PYTHON_DEPS}
-       app-text/dos2unix"
+       app-text/dos2unix
+       >=virtual/jdk-1.8"
 RDEPEND="${DEPEND}
-               virtual/jre"
+               >=virtual/jre-1.8"
 
 S="${WORKDIR}"
 
@@ -73,8 +74,7 @@ src_install() {
        # directory area. We force -Duser.home . It seems also 
-Dinstall4j.userHome
        # could be done based on the figure shown at 
http://resources.ej-technologies.com/install4j/help/doc/
        sed \
-               -e "s#/bin/java\" -Dinstall4j.jvmDir#/bin/java\" 
-Duser.home="${TMPDIR}" -Dinstall4j.jvmDir#" \
-               -i "${WORKDIR}"/${P}.sh || die
+               -e "s#/bin/java\" -Dinstall4j.jvmDir#"${EPREFIX}"/bin/java\" 
-Duser.home=${TMPDIR} -Dinstall4j.jvmDir 
-Djava.util.prefs.systemRoot=${TMPDIR}#" -i "${WORKDIR}"/${P}.sh || die
        sh \
                "${WORKDIR}"/${P}.sh \
                -q -overwrite \

Reply via email to