1 |
commit: 3d70d539efdee4713fc377c55a0585791f965179 |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Thu Jul 23 00:13:48 2015 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Thu Jul 23 00:13:48 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3d70d539 |
7 |
|
8 |
sci-biology/consed-29.0: version bump |
9 |
|
10 |
Package-Manager: portage-2.2.18 |
11 |
|
12 |
sci-biology/consed/ChangeLog | 9 ++++ |
13 |
sci-biology/consed/consed-29.ebuild | 93 +++++++++++++++++++++++++++++++++++++ |
14 |
sci-biology/consed/metadata.xml | 9 ++++ |
15 |
3 files changed, 111 insertions(+) |
16 |
|
17 |
diff --git a/sci-biology/consed/ChangeLog b/sci-biology/consed/ChangeLog |
18 |
new file mode 100644 |
19 |
index 0000000..a580e1e |
20 |
--- /dev/null |
21 |
+++ b/sci-biology/consed/ChangeLog |
22 |
@@ -0,0 +1,9 @@ |
23 |
+# ChangeLog for sci-biology/consed |
24 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
25 |
+# $Header: $ |
26 |
+ |
27 |
+*consed-29 (23 Jul 2015) |
28 |
+ |
29 |
+ 23 Jul 2015; Martin Mokrejs <mmokrejs@×××××××××××××××.cz> +consed-29.ebuild, |
30 |
+ +metadata.xml: |
31 |
+ sci-biology/consed-29.0: version bump |
32 |
|
33 |
diff --git a/sci-biology/consed/consed-29.ebuild b/sci-biology/consed/consed-29.ebuild |
34 |
new file mode 100644 |
35 |
index 0000000..c6e3cf9 |
36 |
--- /dev/null |
37 |
+++ b/sci-biology/consed/consed-29.ebuild |
38 |
@@ -0,0 +1,93 @@ |
39 |
+# Copyright 1999-2015 Gentoo Foundation |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/consed/consed-27.ebuild,v 1.1 2014/10/26 16:13:23 jlec Exp $ |
42 |
+ |
43 |
+EAPI=5 |
44 |
+ |
45 |
+inherit eutils toolchain-funcs |
46 |
+ |
47 |
+DESCRIPTION="A genome sequence finishing program" |
48 |
+HOMEPAGE="http://bozeman.mbt.washington.edu/consed/consed.html" |
49 |
+SRC_URI=" |
50 |
+ ${P}-sources.tar.gz |
51 |
+ ${P}-linux.tar.gz" |
52 |
+ |
53 |
+LICENSE="phrap" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~x86" |
56 |
+IUSE="" |
57 |
+ |
58 |
+DEPEND=">=x11-libs/motif-2.3:0" |
59 |
+# it needs samtools-0.18 with khash.h |
60 |
+# This file was about sci-biology/samtools-1.2 time moved to sci-libs/htslib-1.2.1 |
61 |
+RDEPEND="${DEPEND} |
62 |
+ <sci-biology/samtools-1.0 |
63 |
+ >=sci-biology/phred-000925 |
64 |
+ >=sci-biology/phrap-1.080721 |
65 |
+ dev-lang/perl" |
66 |
+ |
67 |
+S="${WORKDIR}" |
68 |
+ |
69 |
+RESTRICT="fetch" |
70 |
+ |
71 |
+pkg_nofetch() { |
72 |
+ einfo "Please visit ${HOMEPAGE} and obtain the file" |
73 |
+ einfo "\"sources.tar.gz\", then rename it to \"${P}-sources.tar.gz\"" |
74 |
+ einfo "and place it in ${DISTDIR}," |
75 |
+ einfo "obtain the file" |
76 |
+ einfo "\"consed_linux.tar.gz\", then rename it to \"${P}-linux.tar.gz\"" |
77 |
+ einfo "and place it in ${DISTDIR}" |
78 |
+} |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ sed -i '/#include/ s/<new.h>/<new>/' "${S}/main.cpp" || die |
82 |
+ sed -i \ |
83 |
+ -e '/CLIBS=/ s/$/ -lXm -lXt -lSM -lICE -lXext -lXmu -lXp -lm -lbam -lz/' \ |
84 |
+ -e 's/ARCHIVES=/ARCHIVES=\n_ARCHIVES=/' \ |
85 |
+ -e 's/CFLGS=/CFLGS= ${CFLAGS} /' \ |
86 |
+ -e 's#/me1/gordon/samtools/samtools-0.1.18#/usr/include/bam/ -I/usr/include/htslib/#' "${S}/makefile" || die |
87 |
+ sed -i -e 's/CFLAGS=/CFLAGS += /' "${S}"/misc/*/Makefile || die |
88 |
+ sed \ |
89 |
+ -e 's!\($szPhredParameterFile =\).*!\1 $ENV{PHRED_PARAMETER_FILE} || "'${EPREFIX}'/usr/share/phred/phredpar.dat";!' \ |
90 |
+ -i "${S}"/scripts/* || die |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ einfo "consed does not compile with sys-devel/gcc-4.6:* or newer (but 4.4.7 works)" |
95 |
+ emake |
96 |
+ emake -C misc/mktrace |
97 |
+ emake -C misc/phd2fasta |
98 |
+ (cd misc/454; $(tc-getCC) ${CFLAGS} ${LDFLAGS} sff2scf.c -o sff2scf) || die |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ dobin consed misc/{mktrace/mktrace,phd2fasta/phd2fasta,454/sff2scf} |
103 |
+ dobin scripts/* contributions/* |
104 |
+ insinto /usr/lib/screenLibs |
105 |
+ doins misc/*.{fa*,seq} |
106 |
+ insinto /usr/share/${PN}/examples |
107 |
+ doins -r \ |
108 |
+ standard polyphred autofinish assembly_view 454_newbler \ |
109 |
+ align454reads align454reads_answer solexa_example \ |
110 |
+ solexa_example_answer selectRegions selectRegionsAnswer |
111 |
+ echo 'CONSED_HOME="${EPREFIX}/usr"' > "${S}"/99consed || die |
112 |
+ echo 'CONSED_PARAMETERS="${EPREFIX}/etc/consedrc"' >> "${S}"/99consed || die |
113 |
+ mkdir -p "${ED}"/etc/consedrc || die |
114 |
+ touch "${ED}"/etc/consedrc || die |
115 |
+ doenvd "${S}/99consed" || die |
116 |
+ sed \ |
117 |
+ -e "s#/usr/local/genome#${EPREFIX}/usr#" \ |
118 |
+ -i "${ED}"/usr/bin/{*.perl,phredPhrap,phredPhrapWithPhdBalls} || die |
119 |
+ sed \ |
120 |
+ -e 's#niceExe = "/bin/nice"#niceExe = "/usr/bin/nice"#' \ |
121 |
+ -i "${ED}"/usr/bin/phredPhrap || die |
122 |
+ sed \ |
123 |
+ -e 's#/wt1/gordon/genome#/usr/bin#' \ |
124 |
+ -i "${ED}"/usr/bin/fastq2Phrap.perl || die |
125 |
+ dodoc README.txt *_announcement.txt || die |
126 |
+} |
127 |
+ |
128 |
+pkg_postinst() { |
129 |
+ einfo "Package documentation is available at" |
130 |
+ einfo "http://www.phrap.org/consed/distributions/README.${PV}.0.txt" |
131 |
+} |
132 |
|
133 |
diff --git a/sci-biology/consed/metadata.xml b/sci-biology/consed/metadata.xml |
134 |
new file mode 100644 |
135 |
index 0000000..2bc8930 |
136 |
--- /dev/null |
137 |
+++ b/sci-biology/consed/metadata.xml |
138 |
@@ -0,0 +1,9 @@ |
139 |
+<?xml version="1.0" encoding="UTF-8"?> |
140 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
141 |
+<pkgmetadata> |
142 |
+ <herd>sci-biology</herd> |
143 |
+ <maintainer> |
144 |
+ <email>mmokrejs@×××××××××××××××.cz</email> |
145 |
+ <name>Martin Mokrejs</name> |
146 |
+ </maintainer> |
147 |
+</pkgmetadata> |