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/abyss/, sci-biology/abyss/files/
Date: Thu, 30 Jun 2016 22:03:17
Message-Id: 1467324179.76c8aa5fabb5f1ae43d4fdf831bcf94b7e6e09a6.mmokrejs@gentoo
1 commit: 76c8aa5fabb5f1ae43d4fdf831bcf94b7e6e09a6
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Thu Jun 30 22:02:59 2016 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Thu Jun 30 22:02:59 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=76c8aa5f
7
8 sci-biology/abyss: version bump, update SRC_URI
9
10 Package-Manager: portage-2.2.28
11
12 sci-biology/abyss/abyss-1.9.0.ebuild | 52 ++++++++++++++++++++++
13 .../abyss/files/abyss-1.9.0-ac_prog_ar.patch | 18 ++++++++
14 sci-biology/abyss/metadata.xml | 15 +++++++
15 3 files changed, 85 insertions(+)
16
17 diff --git a/sci-biology/abyss/abyss-1.9.0.ebuild b/sci-biology/abyss/abyss-1.9.0.ebuild
18 new file mode 100644
19 index 0000000..b2de141
20 --- /dev/null
21 +++ b/sci-biology/abyss/abyss-1.9.0.ebuild
22 @@ -0,0 +1,52 @@
23 +# Copyright 1999-2016 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Id$
26 +
27 +EAPI=6
28 +
29 +inherit autotools toolchain-funcs
30 +
31 +DESCRIPTION="Assembly By Short Sequences - a de novo, parallel, paired-end sequence assembler"
32 +HOMEPAGE="http://www.bcgsc.ca/platform/bioinfo/software/abyss/"
33 +SRC_URI="https://github.com/bcgsc/abyss/archive/1.9.0.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="abyss"
36 +SLOT="0"
37 +IUSE="+mpi openmp misc-haskell"
38 +KEYWORDS="~amd64 ~x86"
39 +
40 +RDEPEND="
41 + dev-cpp/sparsehash
42 + dev-libs/boost
43 + misc-haskell? ( dev-libs/gmp:0=
44 + virtual/libffi:0=
45 + )
46 + mpi? ( virtual/mpi )
47 +"
48 +DEPEND="${RDEPEND}
49 + misc-haskell? ( dev-lang/ghc
50 + dev-haskell/mmap )
51 +"
52 +
53 +# todo: --enable-maxk=N configure option
54 +# todo: fix automagic mpi toggling
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/${P}-ac_prog_ar.patch
58 +)
59 +
60 +src_prepare() {
61 + default
62 + tc-export AR
63 + sed -i -e "s/-Werror//" configure.ac || die #365195
64 + sed -i -e "/dist_pkgdoc_DATA/d" Makefile.am || die
65 + eautoreconf
66 +}
67 +
68 +src_configure() {
69 + # disable building haskell tool Misc/samtobreak
70 + # unless request by user: bug #534412
71 + use misc-haskell || export ac_cv_prog_ac_ct_GHC=
72 +
73 + econf $(use_enable openmp)
74 +}
75
76 diff --git a/sci-biology/abyss/files/abyss-1.9.0-ac_prog_ar.patch b/sci-biology/abyss/files/abyss-1.9.0-ac_prog_ar.patch
77 new file mode 100644
78 index 0000000..158e9b1
79 --- /dev/null
80 +++ b/sci-biology/abyss/files/abyss-1.9.0-ac_prog_ar.patch
81 @@ -0,0 +1,18 @@
82 + configure.ac | 4 ++++
83 + 1 file changed, 4 insertions(+)
84 +
85 +diff --git a/configure.ac b/configure.ac
86 +index 9d4bb66..aa94364 100644
87 +--- a/configure.ac
88 ++++ b/configure.ac
89 +@@ -12,6 +12,10 @@ AC_PROG_CPP
90 + AC_PROG_CXX
91 + AC_PROG_INSTALL
92 + AC_PROG_RANLIB
93 ++AN_MAKEVAR([AR], [AC_PROG_AR])
94 ++AN_PROGRAM([ar], [AC_PROG_AR])
95 ++AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
96 ++AC_PROG_AR
97 + AC_CHECK_TOOL(GHC, ghc)
98 + AM_CONDITIONAL([HAVE_GHC], [test "$GHC"])
99 +
100
101 diff --git a/sci-biology/abyss/metadata.xml b/sci-biology/abyss/metadata.xml
102 new file mode 100644
103 index 0000000..c0c84f0
104 --- /dev/null
105 +++ b/sci-biology/abyss/metadata.xml
106 @@ -0,0 +1,15 @@
107 +<?xml version="1.0" encoding="UTF-8"?>
108 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
109 +<pkgmetadata>
110 + <maintainer type="project">
111 + <email>sci-biology@g.o</email>
112 + <name>Gentoo Biology Project</name>
113 + </maintainer>
114 + <maintainer type="project">
115 + <email>haskell@g.o</email>
116 + <name>Gentoo Haskell</name>
117 + </maintainer>
118 + <use>
119 + <flag name='misc-haskell'>build abyss-samtobreak tool, pull in haskell toolchain</flag>
120 + </use>
121 +</pkgmetadata>