Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-biology/velvet: ChangeLog velvet-1.2.10.ebuild
Date: Sat, 28 Dec 2013 23:19:39
Message-Id: 20131228231935.7FE092004C@flycatcher.gentoo.org
1 jlec 13/12/28 23:19:35
2
3 Modified: ChangeLog
4 Added: velvet-1.2.10.ebuild
5 Log:
6 sci-biology/velvet: Import Version BUmp from sci overlay, thanks mahn for the ebuild, #495094
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
9
10 Revision Changes Path
11 1.21 sci-biology/velvet/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/velvet/ChangeLog?rev=1.21&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/velvet/ChangeLog?rev=1.21&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/velvet/ChangeLog?r1=1.20&r2=1.21
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-biology/velvet/ChangeLog,v
20 retrieving revision 1.20
21 retrieving revision 1.21
22 diff -u -r1.20 -r1.21
23 --- ChangeLog 12 Mar 2013 12:13:48 -0000 1.20
24 +++ ChangeLog 28 Dec 2013 23:19:35 -0000 1.21
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-biology/velvet
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/velvet/ChangeLog,v 1.20 2013/03/12 12:13:48 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/velvet/ChangeLog,v 1.21 2013/12/28 23:19:35 jlec Exp $
30 +
31 +*velvet-1.2.10 (28 Dec 2013)
32 +
33 + 28 Dec 2013; Justin Lecher <jlec@g.o> +velvet-1.2.10.ebuild:
34 + Import Version BUmp from sci overlay, thanks mahn for the ebuild, #495094
35
36 12 Mar 2013; Justin Lecher <jlec@g.o> metadata.xml:
37 Drop Andrey as maintainer so that bugs get assigned to sci-biology directly
38
39
40
41 1.1 sci-biology/velvet/velvet-1.2.10.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/velvet/velvet-1.2.10.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/velvet/velvet-1.2.10.ebuild?rev=1.1&content-type=text/plain
45
46 Index: velvet-1.2.10.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-biology/velvet/velvet-1.2.10.ebuild,v 1.1 2013/12/28 23:19:35 jlec Exp $
51
52 EAPI=5
53
54 inherit eutils flag-o-matic toolchain-funcs
55
56 MY_P=${PN}_${PV}
57
58 DESCRIPTION="A sequence assembler for very short reads"
59 HOMEPAGE="http://www.ebi.ac.uk/~zerbino/velvet/"
60 SRC_URI="http://www.ebi.ac.uk/~zerbino/velvet/${MY_P}.tgz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="doc openmp"
66
67 RDEPEND=""
68 DEPEND="${RDEPEND}
69 doc? ( virtual/latex-base )"
70
71 S="${WORKDIR}"/${MY_P}
72
73 src_prepare() {
74 if ! use doc; then
75 sed -i -e '/default :/ s/doc//' "${S}"/Makefile || die
76 fi
77 elog "Upstream recommendes using -O3 in CFLAGS"
78 echo
79 elog "To adjust the MAXKMERLENGTH or CATEGORIES parameters as described in the manual,"
80 elog "please set the variables VELVET_MAXKMERLENGTH or VELVET_CATEGORIES in your"
81 elog "environment or /etc/make.conf, then re-emerge the package. For example:"
82 elog " VELVET_MAXKMERLENGTH=NN emerge [options] velvet"
83 MAKEOPTS+=" -j1"
84
85 if [[ $(tc-getCC) =~ gcc ]]; then
86 local eopenmp=-fopenmp
87 elif [[ $(tc-getCC) =~ icc ]]; then
88 local eopenmp=-openmp
89 else
90 elog "Cannot detect compiler type so not setting openmp support"
91 fi
92 append-flags -fPIC ${eopenmp}
93 append-ldflags ${eopenmp}
94
95 tc-export CC
96
97 MAKE_XOPTS=(
98 CC=$(tc-getCC)
99 CFLAGS="${CFLAGS}"
100 OPT="${CFLAGS}"
101 )
102 if [[ ${VELVET_MAXKMERLENGTH} != "" ]]; then MAKE_XOPTS+=( MAXKMERLENGTH=${VELVET_MAXKMERLENGTH} ); fi
103 if [[ ${VELVET_CATEGORIES} != "" ]]; then MAKE_XOPTS+=( CATEGORIES=${VELVET_CATEGORIES} ); fi
104 }
105
106 src_compile() {
107 emake "${MAKE_XOPTS[@]}"
108 emake "${MAKE_XOPTS[@]}" color
109 }
110
111 src_test() {
112 emake "${MAKE_XOPTS[@]}" test
113 }
114
115 src_install() {
116 dobin velvet{g,h,g_de,h_de}
117 insinto /usr/share/${PN}
118 doins -r contrib
119 dodoc Manual.pdf CREDITS.txt ChangeLog
120 }