Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/maq/, sci-biology/maq/files/
Date: Mon, 06 Feb 2017 21:28:08
Message-Id: 1486416395.1be892e848feb9c23c9b1b99dbf6883d51075636.soap@gentoo
1 commit: 1be892e848feb9c23c9b1b99dbf6883d51075636
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 6 20:48:02 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 6 21:26:35 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1be892e8
7
8 sci-biology/maq: Modernise to EAPI 6
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11 Closes: https://github.com/gentoo/gentoo/pull/3856
12
13 .../maq/files/maq-0.7.1-remove-64bit-flag.patch | 19 ++++++++++
14 sci-biology/maq/maq-0.7.1-r2.ebuild | 43 ++++++++++++++++++++++
15 2 files changed, 62 insertions(+)
16
17 diff --git a/sci-biology/maq/files/maq-0.7.1-remove-64bit-flag.patch b/sci-biology/maq/files/maq-0.7.1-remove-64bit-flag.patch
18 new file mode 100644
19 index 00000000..3bcbc2b
20 --- /dev/null
21 +++ b/sci-biology/maq/files/maq-0.7.1-remove-64bit-flag.patch
22 @@ -0,0 +1,19 @@
23 +Do not hardcode -m64 into the build system
24 +
25 +--- a/configure.ac
26 ++++ b/configure.ac
27 +@@ -21,12 +21,12 @@
28 + [ext_CFLAGS="-arch x86_64 -arch i386 -arch ppc64 -arch ppc"],
29 + [ext_CFLAGS="-arch i386 -arch ppc"]);;
30 + 0) CFLAGS="-m64"
31 +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [ext_CFLAGS="-m64"], []);;
32 ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [ext_CFLAGS=""], []);;
33 + esac;;
34 + *)
35 + AC_MSG_CHECKING([if gcc accepts -m64])
36 + CFLAGS="-m64"
37 +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [ext_CFLAGS="-m64"; AC_MSG_RESULT([yes])],
38 ++ AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [ext_CFLAGS=""; AC_MSG_RESULT([yes])],
39 + [ext_CFLAGS="-D_FILE_OFFSET_BITS=64"; AC_MSG_RESULT([no])]);;
40 + esac
41 + AC_ARG_ENABLE(experimental, [ --enable-experimental enable experimental features],
42
43 diff --git a/sci-biology/maq/maq-0.7.1-r2.ebuild b/sci-biology/maq/maq-0.7.1-r2.ebuild
44 new file mode 100644
45 index 00000000..fb01400
46 --- /dev/null
47 +++ b/sci-biology/maq/maq-0.7.1-r2.ebuild
48 @@ -0,0 +1,43 @@
49 +# Copyright 1999-2017 Gentoo Foundation
50 +# Distributed under the terms of the GNU General Public License v2
51 +# $Id$
52 +
53 +EAPI=6
54 +
55 +inherit autotools
56 +
57 +DESCRIPTION="Mapping and Assembly with Qualities, mapping NGS reads to reference genomes"
58 +HOMEPAGE="http://maq.sourceforge.net/"
59 +SRC_URI="
60 + mirror://sourceforge/${PN}/${P}.tar.bz2
61 + mirror://sourceforge/${PN}/calib-36.dat.gz"
62 +
63 +LICENSE="GPL-3"
64 +SLOT="0"
65 +IUSE=""
66 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
67 +
68 +RDEPEND="sys-libs/zlib"
69 +DEPEND="${RDEPEND}"
70 +
71 +PATCHES=(
72 + "${FILESDIR}"/${P}-flags.patch
73 + "${FILESDIR}"/${P}-bfr-overfl.patch
74 + "${FILESDIR}"/${P}-gcc-4.7.patch
75 + "${FILESDIR}"/${P}-remove-64bit-flag.patch
76 +)
77 +
78 +src_prepare() {
79 + default
80 + eautoreconf
81 +}
82 +
83 +src_install() {
84 + default
85 +
86 + insinto /usr/share/${PN}
87 + doins "${WORKDIR}"/*.dat
88 +
89 + doman maq.1
90 + dodoc ${PN}.pdf
91 +}