diff options
author | David Seifert <soap@gentoo.org> | 2017-02-26 13:25:06 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-02-26 13:40:46 +0100 |
commit | 6710439219e65405295365827841440f1cf151e2 (patch) | |
tree | ad781c7b51fa7ad041e97c255fe7b050e2b236c9 /sci-biology | |
parent | sci-biology/blossoc: Remove old (diff) | |
download | gentoo-6710439219e65405295365827841440f1cf151e2.tar.gz gentoo-6710439219e65405295365827841440f1cf151e2.tar.bz2 gentoo-6710439219e65405295365827841440f1cf151e2.zip |
sci-biology/snpfile: Modernise to EAPI 6
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/4083
Diffstat (limited to 'sci-biology')
-rw-r--r-- | sci-biology/snpfile/files/snpfile-2.0.1-ax-boost.patch | 35 | ||||
-rw-r--r-- | sci-biology/snpfile/files/snpfile-2.0.1-gentoo.diff | 8 | ||||
-rw-r--r-- | sci-biology/snpfile/snpfile-2.0.1-r2.ebuild | 47 |
3 files changed, 86 insertions, 4 deletions
diff --git a/sci-biology/snpfile/files/snpfile-2.0.1-ax-boost.patch b/sci-biology/snpfile/files/snpfile-2.0.1-ax-boost.patch new file mode 100644 index 000000000000..f77b476f990d --- /dev/null +++ b/sci-biology/snpfile/files/snpfile-2.0.1-ax-boost.patch @@ -0,0 +1,35 @@ +Modernise autoconf code to use modern archive macros. + +--- a/configure.in ++++ b/configure.in +@@ -1,7 +1,7 @@ + AC_INIT(snpfile, 2.0.1, mailund@birc.au.dk) + AM_INIT_AUTOMAKE + AC_CONFIG_MACRO_DIR([m4]) +-AM_CONFIG_HEADER(config.hh) ++AC_CONFIG_HEADERS([config.hh]) + + LT_INIT + AC_PROG_CXX +@@ -14,18 +14,9 @@ + fi + AC_DEFINE_UNQUOTED(PREFIX, "$thePREFIX", [Installation prefix]) + +-AX_BOOST([1.33.1],, +-AC_ERROR([[ +-************************************************************************ +-************************************************************************ +-The Boost library was not found on this system. We use this library +-extensively, and cannot proceed without it. You can obtain it from +-<http://www.boost.org>. +-************************************************************************ +-************************************************************************ +-]]) +-) +- ++AX_BOOST_BASE([1.33.1]) ++AX_BOOST_PROGRAM_OPTIONS ++AX_BOOST_SIGNALS + + AC_OUTPUT([ + Makefile diff --git a/sci-biology/snpfile/files/snpfile-2.0.1-gentoo.diff b/sci-biology/snpfile/files/snpfile-2.0.1-gentoo.diff index e6a8d60ec69c..b2a8a6b630ce 100644 --- a/sci-biology/snpfile/files/snpfile-2.0.1-gentoo.diff +++ b/sci-biology/snpfile/files/snpfile-2.0.1-gentoo.diff @@ -2,8 +2,8 @@ Fixing as-needed issues, provide shared libs https://bugs.gentoo.org/show_bug.cgi?id=294971 ---- Makefile.am -+++ Makefile.am +--- a/Makefile.am ++++ b/Makefile.am @@ -1,440 +1,92 @@ ACLOCAL_AMFLAGS = -I m4 @@ -516,8 +516,8 @@ https://bugs.gentoo.org/show_bug.cgi?id=294971 + type_trait.hh +libsnpfile_la_LIBADD = $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_SIGNALS_LIB) + ---- configure.in -+++ configure.in +--- a/configure.in ++++ b/configure.in @@ -1,10 +1,11 @@ AC_INIT(snpfile, 2.0.1, mailund@birc.au.dk) AM_INIT_AUTOMAKE diff --git a/sci-biology/snpfile/snpfile-2.0.1-r2.ebuild b/sci-biology/snpfile/snpfile-2.0.1-r2.ebuild new file mode 100644 index 000000000000..8062ca014a66 --- /dev/null +++ b/sci-biology/snpfile/snpfile-2.0.1-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools + +DESCRIPTION="A library and API for manipulating large SNP datasets" +HOMEPAGE="http://www.birc.au.dk/~mailund/SNPFile/" +SRC_URI="http://www.birc.au.dk/~mailund/SNPFile/download/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +IUSE="static-libs" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-libs/boost:=" +DEPEND=" + ${RDEPEND} + >=sys-devel/autoconf-archive-2016.09.16" + +PATCHES=( + "${FILESDIR}"/${P}-gcc44.patch + "${FILESDIR}"/${P}-gentoo.diff + "${FILESDIR}"/${P}-gold.patch + "${FILESDIR}"/${P}-ax-boost.patch +) + +src_prepare() { + default + mv configure.{in,ac} || die + rm m4/ax_boost.m4 || die + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + + if ! use static-libs; then + find "${D}" -name '*.la' -delete || die + fi +} |