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/fastqc/, sci-biology/fastqc/files/
Date: Thu, 05 Mar 2015 20:09:59
Message-Id: 1425586161.748a9abdd6948868e36aa058ab158d4c4506fdd2.mmokrejs@gentoo
1 commit: 748a9abdd6948868e36aa058ab158d4c4506fdd2
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Thu Mar 5 20:09:21 2015 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Thu Mar 5 20:09:21 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=748a9abd
7
8 added build.xml exported by author from Eclipse IDE (it doesn't work under ant eclasses in my hands)
9
10 Package-Manager: portage-2.2.15
11
12 sci-biology/fastqc/ChangeLog | 5 +++
13 sci-biology/fastqc/fastqc-0.11.2.ebuild | 12 +++++--
14 sci-biology/fastqc/files/build.xml | 59 +++++++++++++++++++++++++++++++++
15 3 files changed, 73 insertions(+), 3 deletions(-)
16
17 diff --git a/sci-biology/fastqc/ChangeLog b/sci-biology/fastqc/ChangeLog
18 index 6b6cbf5..b828a60 100644
19 --- a/sci-biology/fastqc/ChangeLog
20 +++ b/sci-biology/fastqc/ChangeLog
21 @@ -2,6 +2,11 @@
22 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
23 # $Header: $
24
25 + 05 Mar 2015; Martin Mokrejs <mmokrejs@×××××××××××××××.cz> +files/build.xml,
26 + fastqc-0.11.2.ebuild:
27 + added build.xml exported by author from Eclipse IDE (it doesn't work under ant
28 + eclasses in my hands)
29 +
30 *fastqc-0.11.2 (24 Feb 2015)
31
32 24 Feb 2015; Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
33
34 diff --git a/sci-biology/fastqc/fastqc-0.11.2.ebuild b/sci-biology/fastqc/fastqc-0.11.2.ebuild
35 index b608266..dadc288 100644
36 --- a/sci-biology/fastqc/fastqc-0.11.2.ebuild
37 +++ b/sci-biology/fastqc/fastqc-0.11.2.ebuild
38 @@ -4,7 +4,7 @@
39
40 EAPI=5
41
42 -inherit java-pkg-2 eutils
43 +inherit java-pkg-2 eutils java-ant-2
44
45 DESCRIPTION="Perl-based wrapper around java apps to quality control FASTA/FASTQ sequence files"
46 HOMEPAGE="http://www.bioinformatics.babraham.ac.uk/projects/fastqc/"
47 @@ -16,11 +16,17 @@ KEYWORDS=""
48 IUSE=""
49
50 DEPEND="sci-biology/picard
51 - >=virtual/jre-1.5"
52 -RDEPEND="${DEPEND}"
53 + >=virtual/jre-1.5:*"
54 +RDEPEND="${DEPEND}
55 + >=virtual/jdk-1.5:*
56 + dev-java/ant-core"
57
58 S="${WORKDIR}"/FastQC
59
60 +src_prepare(){
61 + cp "${FILESDIR}"/build.xml . || die
62 +}
63 +
64 src_install(){
65 dobin fastqc run_fastqc.bat
66 dodoc README.txt RELEASE_NOTES.txt
67
68 diff --git a/sci-biology/fastqc/files/build.xml b/sci-biology/fastqc/files/build.xml
69 new file mode 100644
70 index 0000000..c4a6920
71 --- /dev/null
72 +++ b/sci-biology/fastqc/files/build.xml
73 @@ -0,0 +1,59 @@
74 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
75 +<!-- WARNING: Eclipse auto-generated file.
76 + Any modifications will be overwritten.
77 + To include a user specific buildfile here, simply create one in the same
78 + directory with the processing instruction <?eclipse.ant.import?>
79 + as the first entry and export the buildfile again. -->
80 +<project basedir="." default="build" name="FastQC">
81 + <property environment="env"/>
82 + <property name="debuglevel" value="source,lines,vars"/>
83 + <property name="target" value="1.5"/>
84 + <property name="source" value="1.5"/>
85 + <path id="FastQC.classpath">
86 + <pathelement location="bin"/>
87 + <pathelement location="jbzip2-0.9.jar"/>
88 + <pathelement location="sam-1.103.jar"/>
89 + <pathelement location="cisd-jhdf5.jar"/>
90 + </path>
91 + <target name="init">
92 + <mkdir dir="bin"/>
93 + <copy includeemptydirs="false" todir="bin">
94 + <fileset dir=".">
95 + <exclude name="**/*.launch"/>
96 + <exclude name="**/*.java"/>
97 + </fileset>
98 + </copy>
99 + </target>
100 + <target name="clean">
101 + <delete dir="bin"/>
102 + </target>
103 + <target depends="clean" name="cleanall"/>
104 + <target depends="build-subprojects,build-project" name="build"/>
105 + <target name="build-subprojects"/>
106 + <target depends="init" name="build-project">
107 + <echo message="${ant.project.name}: ${ant.file}"/>
108 + <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
109 + <src path="."/>
110 + <classpath refid="FastQC.classpath"/>
111 + </javac>
112 + </target>
113 + <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
114 + <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
115 + <copy todir="${ant.library.dir}">
116 + <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
117 + </copy>
118 + <unzip dest="${ant.library.dir}">
119 + <patternset includes="jdtCompilerAdapter.jar"/>
120 + <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
121 + </unzip>
122 + </target>
123 + <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
124 + <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
125 + <antcall target="build"/>
126 + </target>
127 + <target name="FastQCApplication">
128 + <java classname="uk.ac.babraham.FastQC.FastQCApplication" failonerror="true" fork="yes">
129 + <classpath refid="FastQC.classpath"/>
130 + </java>
131 + </target>
132 +</project>