diff options
author | David Seifert <soap@gentoo.org> | 2016-09-18 13:25:38 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-09-18 13:33:03 +0200 |
commit | 9f39270bff954737259cc2b52e97e0bde41f7d2b (patch) | |
tree | 82a797bb3adfb94a67bea21bcd1aadb7490cfd7b /sci-biology/lagan/lagan-2.0-r3.ebuild | |
parent | media-gfx/gnome-raw-thumbnailer: Update eapi and ebuild (diff) | |
download | gentoo-9f39270bff954737259cc2b52e97e0bde41f7d2b.tar.gz gentoo-9f39270bff954737259cc2b52e97e0bde41f7d2b.tar.bz2 gentoo-9f39270bff954737259cc2b52e97e0bde41f7d2b.zip |
sci-biology/lagan: Allow for compiling with GCC 6
Gentoo-bug: 594148
* EAPI=6
* Also fix QA violations due to implicit declarations and
incorrectly formatted fprintf calls.
Package-Manager: portage-2.3.0
Diffstat (limited to 'sci-biology/lagan/lagan-2.0-r3.ebuild')
-rw-r--r-- | sci-biology/lagan/lagan-2.0-r3.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sci-biology/lagan/lagan-2.0-r3.ebuild b/sci-biology/lagan/lagan-2.0-r3.ebuild new file mode 100644 index 000000000000..68cd7960621d --- /dev/null +++ b/sci-biology/lagan/lagan-2.0-r3.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit toolchain-funcs + +MY_P="lagan20" + +DESCRIPTION="The LAGAN suite of tools for whole-genome multiple alignment of genomic DNA" +HOMEPAGE="http://lagan.stanford.edu/lagan_web/index.shtml" +SRC_URI="http://lagan.stanford.edu/lagan_web/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-lang/perl" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/${PN}-2.0-flags.patch" + "${FILESDIR}/${PN}-2.0-gcc4.3.patch" + "${FILESDIR}/${PN}-2.0-fix-c++14.patch" + "${FILESDIR}/${PN}-2.0-qa-implicit-declarations.patch" +) + +src_prepare() { + sed -i "/use Getopt::Long;/ i use lib \"/usr/$(get_libdir)/${PN}/lib\";" "${S}/supermap.pl" || die + # NB: Testing with glibc-2.10 has uncovered a bug in src/utils/Sequence.h + # where libc getline is erroneously used instead of own getline + sed -i 's/getline/my_getline/' "${S}"/src/{anchors.c,glocal/io.cpp} || die + + default +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + CXXFLAGS="${CXXFLAGS}" \ + CFLAGS="${CFLAGS}" +} + +src_install() { + newbin lagan.pl lagan + newbin slagan.pl slagan + dobin mlagan + rm -f lagan.pl slagan.pl utils/Utils.pm || die + + insinto /usr/$(get_libdir)/${PN}/lib + doins Utils.pm + + exeinto /usr/$(get_libdir)/${PN}/utils + doexe utils/* + + exeinto /usr/$(get_libdir)/${PN} + doexe *.pl anchors chaos glocal order prolagan + + insinto /usr/$(get_libdir)/${PN} + doins *.txt + + dosym /usr/$(get_libdir)/${PN}/supermap.pl /usr/bin/supermap + + echo "LAGAN_DIR=\"/usr/$(get_libdir)/${PN}\"" > 99${PN} || die + doenvd 99${PN} + + dodoc Readmes/README.* +} |