commit:     f5965a7c3727b476c3f8392bb1bec8eae7792f45
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Fri Apr 17 22:47:44 2015 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Fri Apr 17 22:47:44 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=f5965a7c

sci-biology/cgview-bin: fixed installation of perl-related files

Package-Manager: portage-2.2.18

 sci-biology/cgview-bin/ChangeLog                  |  4 ++++
 sci-biology/cgview-bin/cgview-bin-20131130.ebuild | 18 +++++++++++++-----
 2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/sci-biology/cgview-bin/ChangeLog b/sci-biology/cgview-bin/ChangeLog
index e3de215..3ab4181 100644
--- a/sci-biology/cgview-bin/ChangeLog
+++ b/sci-biology/cgview-bin/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  17 Apr 2015; Martin Mokrejs <[email protected]>
+  cgview-bin-20131130.ebuild:
+  sci-biology/cgview-bin: fixed installation of perl-related files
+
   18 Feb 2015; Justin Lecher <[email protected]> cgview-bin-20131130.ebuild:
   sci-biology/cgview-bin: fix SLOT operators; drop KEYWORDS as fetch failed
 

diff --git a/sci-biology/cgview-bin/cgview-bin-20131130.ebuild 
b/sci-biology/cgview-bin/cgview-bin-20131130.ebuild
index 61141e3..74a9540 100644
--- a/sci-biology/cgview-bin/cgview-bin-20131130.ebuild
+++ b/sci-biology/cgview-bin/cgview-bin-20131130.ebuild
@@ -6,6 +6,9 @@ EAPI=5
 
 inherit java-pkg-2
 
+PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit perl-module eutils toolchain-funcs
+
 DESCRIPTION="CGView Comparison Tool to compare genome sequences graphically 
(aka CCT)"
 HOMEPAGE="http://stothard.afns.ualberta.ca/downloads/CCT";
 SRC_URI="http://www.ualberta.ca/~stothard/downloads/cgview_comparison_tool.zip";
@@ -34,11 +37,16 @@ src_test(){
 }
 
 src_install() {
-       echo 'CCT_HOME='${EPREFIX}'/usr/share/cgview_comparison_tool' > 
"${S}/99cgview"
+       insinto /usr/share/${PN}/scripts
+       chmod a+x scripts/* # BUG: this does not work
+       doins scripts/*
+       echo 'CCT_HOME='${EPREFIX}'/usr/share/cgview' > "${S}/99cgview"
        echo 'PATH="$PATH":"'${CCT_HOME}'/scripts"' >> "${S}/99cgview"
        doenvd "${S}/99cgview"
-       #export PATH="$PATH":"${CCT_HOME}/scripts":/path/to/blast-2.2.25/bin
-       #export 
PERL5LIB="${CCT_HOME}"/lib/bioperl-1.2.3:"${CCT_HOME}"/lib/perl_modules:"$PERL5LIB"
-
-       dobin bin/cgview.jar
+       perl_set_version
+       insinto ${VENDOR_LIB}/cgview
+       doins lib/perl_modules/Util/*.pm
+       #
+       # Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/batik/svggen/SVGGraphics2DIOException
+       java-pkg_dojar bin/cgview.jar
 }

Reply via email to