Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/velvet/
Date: Sat, 28 Dec 2013 23:40:07
Message-Id: 1388272809.38b3a2d1841263f329ff7e682df93c6af78ecf07.jlec@gentoo
1 commit: 38b3a2d1841263f329ff7e682df93c6af78ecf07
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 28 23:20:09 2013 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 28 23:20:09 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=38b3a2d1
7
8 merged into tree
9
10 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
11
12 ---
13 sci-biology/velvet/ChangeLog | 11 -----
14 sci-biology/velvet/metadata.xml | 5 ---
15 sci-biology/velvet/velvet-1.2.10.ebuild | 73 ---------------------------------
16 3 files changed, 89 deletions(-)
17
18 diff --git a/sci-biology/velvet/ChangeLog b/sci-biology/velvet/ChangeLog
19 deleted file mode 100644
20 index 9efc41e..0000000
21 --- a/sci-biology/velvet/ChangeLog
22 +++ /dev/null
23 @@ -1,11 +0,0 @@
24 -# ChangeLog for sci-biology/velvet
25 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: $
27 -
28 -*velvet-1.2.10 (28 Dec 2013)
29 -
30 - 28 Dec 2013; Justin Lecher <jlec@g.o> -velvet-1.2.1O.ebuild,
31 - +velvet-1.2.10.ebuild, +metadata.xml:
32 - Some improvements regarding die and optional enviromental variables; respect
33 - CC, CFLAGS
34 -
35
36 diff --git a/sci-biology/velvet/metadata.xml b/sci-biology/velvet/metadata.xml
37 deleted file mode 100644
38 index f17a827..0000000
39 --- a/sci-biology/velvet/metadata.xml
40 +++ /dev/null
41 @@ -1,5 +0,0 @@
42 -<?xml version="1.0" encoding="UTF-8"?>
43 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
44 -<pkgmetadata>
45 - <herd>sci-biology</herd>
46 -</pkgmetadata>
47
48 diff --git a/sci-biology/velvet/velvet-1.2.10.ebuild b/sci-biology/velvet/velvet-1.2.10.ebuild
49 deleted file mode 100644
50 index 3ed797e..0000000
51 --- a/sci-biology/velvet/velvet-1.2.10.ebuild
52 +++ /dev/null
53 @@ -1,73 +0,0 @@
54 -# Copyright 1999-2013 Gentoo Foundation
55 -# Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/velvet/velvet-1.2.1O.ebuild,v 1.5 2013/09/19 09:02:55 mahn Exp $
57 -
58 -EAPI=5
59 -
60 -inherit eutils flag-o-matic toolchain-funcs
61 -
62 -MY_P=${PN}_${PV}
63 -
64 -DESCRIPTION="A sequence assembler for very short reads"
65 -HOMEPAGE="http://www.ebi.ac.uk/~zerbino/velvet/"
66 -SRC_URI="http://www.ebi.ac.uk/~zerbino/velvet/${MY_P}.tgz"
67 -
68 -LICENSE="GPL-2"
69 -SLOT="0"
70 -KEYWORDS="~amd64 ~x86"
71 -IUSE="doc openmp"
72 -
73 -RDEPEND=""
74 -DEPEND="${RDEPEND}
75 - doc? ( virtual/latex-base )"
76 -
77 -S="${WORKDIR}"/${MY_P}
78 -
79 -src_prepare() {
80 - if ! use doc; then
81 - sed -i -e '/default :/ s/doc//' "${S}"/Makefile || die
82 - fi
83 - elog "Upstream recommendes using -O3 in CFLAGS"
84 - echo
85 - elog "To adjust the MAXKMERLENGTH or CATEGORIES parameters as described in the manual,"
86 - elog "please set the variables VELVET_MAXKMERLENGTH or VELVET_CATEGORIES in your"
87 - elog "environment or /etc/make.conf, then re-emerge the package. For example:"
88 - elog " VELVET_MAXKMERLENGTH=NN emerge [options] velvet"
89 - MAKEOPTS+=" -j1"
90 -
91 - if [[ $(tc-getCC) =~ gcc ]]; then
92 - local eopenmp=-fopenmp
93 - elif [[ $(tc-getCC) =~ icc ]]; then
94 - local eopenmp=-openmp
95 - else
96 - elog "Cannot detect compiler type so not setting openmp support"
97 - fi
98 - append-flags -fPIC ${eopenmp}
99 - append-ldflags ${eopenmp}
100 -
101 - tc-export CC
102 -
103 - MAKE_XOPTS=(
104 - CC=$(tc-getCC)
105 - CFLAGS="${CFLAGS}"
106 - OPT="${CFLAGS}"
107 - )
108 - if [[ ${VELVET_MAXKMERLENGTH} != "" ]]; then MAKE_XOPTS+=( MAXKMERLENGTH=${VELVET_MAXKMERLENGTH} ); fi
109 - if [[ ${VELVET_CATEGORIES} != "" ]]; then MAKE_XOPTS+=( CATEGORIES=${VELVET_CATEGORIES} ); fi
110 -}
111 -
112 -src_compile() {
113 - emake "${MAKE_XOPTS[@]}"
114 - emake "${MAKE_XOPTS[@]}" color
115 -}
116 -
117 -src_test() {
118 - emake "${MAKE_XOPTS[@]}" test
119 -}
120 -
121 -src_install() {
122 - dobin velvet{g,h,g_de,h_de}
123 - insinto /usr/share/${PN}
124 - doins -r contrib
125 - dodoc Manual.pdf CREDITS.txt ChangeLog
126 -}