commit:     e9900b4a2cdf333713fe88e1fec69cbb29b84978
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Sat Feb 18 19:44:17 2017 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Sat Feb 18 19:44:17 2017 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=e9900b4a

sci-biology/jtreeview: improve ebuild

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 sci-biology/jtreeview/jtreeview-1.1.6.4.ebuild | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)

diff --git a/sci-biology/jtreeview/jtreeview-1.1.6.4.ebuild 
b/sci-biology/jtreeview/jtreeview-1.1.6.4.ebuild
index 8baf45264..729fccde2 100644
--- a/sci-biology/jtreeview/jtreeview-1.1.6.4.ebuild
+++ b/sci-biology/jtreeview/jtreeview-1.1.6.4.ebuild
@@ -1,10 +1,11 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
 
-inherit java-pkg-2 java-ant-2
+PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit java-pkg-2 java-ant-2 eutils perl-module
 
 S="${WORKDIR}"/TreeView-1.1.6r4-src
 
@@ -17,9 +18,24 @@ SRC_URI="
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS=""
+KEYWORDS="" # resulting java binary does not execute for me
 IUSE=""
 
-DEPEND="virtual/jdk:*"
+DEPEND=">virtual/jdk-1.5:*"
 RDEPEND="${DEPEND}
-       virtual/jre:*"
+       >=virtual/jre-1.5:*"
+
+# TODO: use xltproc to create docs following TreeView-1.1.6r4-src/doc/README
+
+src_install(){
+       java-pkg_dojar TreeView.jar
+       java-pkg_dolauncher ${PN} TreeView.jar
+       cd ../helper-scripts-0.0.2 || die
+       perl_set_version
+       insinto "${VENDOR_LIB}"
+       doins *.pm
+       dobin *.pl
+       insinto /usr/share/"${PN}"/examples
+       doins blues.color
+       newdoc README README.helper-scripts
+}

Reply via email to