Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/NGSEPcore/, sci-biology/NGSEPcore/files/
Date: Fri, 10 Jan 2020 15:58:15
Message-Id: 1578671871.0495ef801513cebc129bbcd392d955e86dea2fc9.mmokrejs@gentoo
1 commit: 0495ef801513cebc129bbcd392d955e86dea2fc9
2 Author: Martin Mokrejs <mmokrejs <AT> gmail <DOT> com>
3 AuthorDate: Fri Jan 10 15:55:18 2020 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Fri Jan 10 15:57:51 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0495ef80
7
8 sci-biology/NGSEPcore: cleanup the ebuild
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Martin Mokrejs <mmokrejs <AT> gmail.com>
12
13 sci-biology/NGSEPcore/NGSEPcore-3.3.1.ebuild | 23 ++++--
14 .../files/NGSEPcore_drop_utf8_chars.patch | 81 ++++++++++++++++++++++
15 .../files/NGSEPcore_fix_compilation.patch | 0
16 3 files changed, 97 insertions(+), 7 deletions(-)
17
18 diff --git a/sci-biology/NGSEPcore/NGSEPcore-3.3.1.ebuild b/sci-biology/NGSEPcore/NGSEPcore-3.3.1.ebuild
19 index 3f844bf16..24445eb0d 100644
20 --- a/sci-biology/NGSEPcore/NGSEPcore-3.3.1.ebuild
21 +++ b/sci-biology/NGSEPcore/NGSEPcore-3.3.1.ebuild
22 @@ -1,4 +1,4 @@
23 -# Copyright 1999-2019 Gentoo Authors
24 +# Copyright 1999-2020 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 EAPI=7
28 @@ -6,7 +6,8 @@ EAPI=7
29 inherit java-pkg-2 java-ant-2
30
31 DESCRIPTION="NGSEP (CNV and indel discovery)"
32 -HOMEPAGE="https://sourceforge.net/p/ngsep/wiki/Home"
33 +HOMEPAGE="https://sourceforge.net/p/ngsep/wiki/Home
34 + https://github.com/NGSEP/NGSEPcore"
35 SRC_URI="https://sourceforge.net/projects/ngsep/files/SourceCode/NGSEPcore_${PV}.tar.gz
36 https://sourceforge.net/projects/ngsep/files/training/UserManualNGSEP_V330.pdf -> ${P}_UserManual.pdf
37 https://sourceforge.net/projects/ngsep/files/training/Tutorial.txt -> ${P}_Tutorial.txt
38 @@ -17,21 +18,29 @@ SLOT="0"
39 KEYWORDS=""
40 IUSE=""
41
42 -DEPEND="dev-java/htsjdk"
43 +DEPEND="
44 + dev-java/htsjdk
45 + dev-java/jsci-bin"
46 RDEPEND="${DEPEND}"
47
48 S="${WORKDIR}/${PN}_${PV}"
49
50 +PATCHES=( "${FILESDIR}"/NGSEPcore_drop_utf8_chars.patch "${FILESDIR}"/NGSEPcore_fix_compilation.patch )
51 +
52 src_prepare(){
53 - rm -f *.jar lib/htsjdk-1.129.jar || die
54 + rm lib/htsjdk-1.129.jar || die
55 + rm lib/jsci-core.jar || die
56 default
57 }
58
59 src_compile(){
60 - make -j1
61 + emake -j1
62 }
63
64 src_install(){
65 - java-pkg_dojar *.jar
66 - dodoc "$DISTDIR}"/${P}_user_manual.pdf
67 + java-pkg_dojar *.jar lib/*.jar
68 + dodoc "${DISTDIR}"/${P}_UserManual.pdf \
69 + "${DISTDIR}"/${P}_Tutorial.txt \
70 + "${DISTDIR}"/${P}_QuickStart.txt \
71 + README.txt
72 }
73
74 diff --git a/sci-biology/NGSEPcore/files/NGSEPcore_drop_utf8_chars.patch b/sci-biology/NGSEPcore/files/NGSEPcore_drop_utf8_chars.patch
75 new file mode 100644
76 index 000000000..eb61747be
77 --- /dev/null
78 +++ b/sci-biology/NGSEPcore/files/NGSEPcore_drop_utf8_chars.patch
79 @@ -0,0 +1,81 @@
80 +From 5161e22e7730e2637376402718ed7048f838054a Mon Sep 17 00:00:00 2001
81 +From: jorge <jorge@jorge-0420006391>
82 +Date: Thu, 28 Mar 2019 16:24:24 -0500
83 +Subject: [PATCH] Fixed encoding and manual compilation issues
84 +
85 +---
86 + makefile | 2 +-
87 + src/ngsep/discovery/TillingPoolsIndividualGenotyper.java | 5 ++---
88 + src/ngsep/simulation/TillingPopulationSimulator.java | 2 +-
89 + src/ngsep/variants/CalledSNV.java | 2 +-
90 + 4 files changed, 5 insertions(+), 6 deletions(-)
91 +
92 +diff --git a/makefile b/makefile
93 +index 517895d..0532725 100755
94 +--- a/makefile
95 ++++ b/makefile
96 +@@ -11,7 +11,7 @@ compile:
97 + copy:
98 + cp -f src/ngsep/transcriptome/ProteinTranslatorDefaultBundle.properties bin/ngsep/transcriptome/
99 + cp -f src/ngsep/main/CommandsDescriptor.xml bin/ngsep/main/
100 +- cp -f src/ngsep/assembly/GenomesAlignerLinearVisualizer.js bin/ngsep/assembly/
101 ++ cp -f src/ngsep/genome/GenomesAlignerLinearVisualizer.js bin/ngsep/genome/
102 +
103 + jar:
104 + mkdir dist
105 +diff --git a/src/ngsep/discovery/TillingPoolsIndividualGenotyper.java b/src/ngsep/discovery/TillingPoolsIndividualGenotyper.java
106 +index c8c3d42..2e7a7bf 100644
107 +--- a/src/ngsep/discovery/TillingPoolsIndividualGenotyper.java
108 ++++ b/src/ngsep/discovery/TillingPoolsIndividualGenotyper.java
109 +@@ -19,7 +19,6 @@
110 + import ngsep.main.CommandsDescriptor;
111 + import ngsep.main.ProgressNotifier;
112 + import ngsep.sequences.QualifiedSequenceList;
113 +-import ngsep.simulation.TillingPopulationSimulator;
114 + import ngsep.variants.CalledGenomicVariant;
115 + import ngsep.variants.CalledGenomicVariantImpl;
116 + import ngsep.variants.GenomicVariant;
117 +@@ -31,7 +30,7 @@
118 +
119 + public class TillingPoolsIndividualGenotyper {
120 +
121 +- private Logger log = Logger.getLogger(TillingPopulationSimulator.class.getName());
122 ++ private Logger log = Logger.getLogger(TillingPoolsIndividualGenotyper.class.getName());
123 + private ProgressNotifier progressNotifier=null;
124 +
125 + private static HashMap<String,ArrayList<Integer>> poolConfiguration;
126 +@@ -111,7 +110,7 @@ public void loadPools(String poolsDescriptor, int num_columnPools, int num_rowPo
127 + while (line != null) {
128 +
129 + String[] indInfo = line.split(";");
130 +- ArrayList<Integer> pools = new ArrayList();
131 ++ ArrayList<Integer> pools = new ArrayList<>();
132 + pools.add(Integer.parseInt(indInfo[1]));
133 + pools.add(Integer.parseInt(indInfo[2]));
134 + pools.add(Integer.parseInt(indInfo[3]));
135 +diff --git a/src/ngsep/simulation/TillingPopulationSimulator.java b/src/ngsep/simulation/TillingPopulationSimulator.java
136 +index ea44db2..37f9d3b 100644
137 +--- a/src/ngsep/simulation/TillingPopulationSimulator.java
138 ++++ b/src/ngsep/simulation/TillingPopulationSimulator.java
139 +@@ -56,7 +56,7 @@
140 + /**
141 + *
142 + * @author Juanita
143 +- * @author Juan Sebastián Andrade
144 ++ * @author Juan Sebastian Andrade
145 + *
146 + */
147 + public class TillingPopulationSimulator {
148 +diff --git a/src/ngsep/variants/CalledSNV.java b/src/ngsep/variants/CalledSNV.java
149 +index a40c8ac..773abe7 100755
150 +--- a/src/ngsep/variants/CalledSNV.java
151 ++++ b/src/ngsep/variants/CalledSNV.java
152 +@@ -241,7 +241,7 @@ public void setGenotypeQuality(short genotypeQuality) {
153 + /**
154 + * Changes the number of As, Cs, Gs and Ts observed in the sample
155 + * @param allCounts Array of length 4 with the number of times that each allele appears.
156 +- * The order must be the cu¡ount for A, the count for C, the count for G, and the count for T
157 ++ * The order must be the count for A, the count for C, the count for G, and the count for T
158 + */
159 + public void setAllBaseCounts(int [] allCounts) {
160 + this.countA = allCounts[0];
161
162 diff --git a/sci-biology/NGSEPcore/files/NGSEPcore_fix_compilation.patch b/sci-biology/NGSEPcore/files/NGSEPcore_fix_compilation.patch
163 new file mode 100644
164 index 000000000..e69de29bb