commit:     6710439219e65405295365827841440f1cf151e2
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 26 12:25:06 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Feb 26 12:40:46 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67104392

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

 .../snpfile/files/snpfile-2.0.1-ax-boost.patch     | 35 ++++++++++++++++
 .../snpfile/files/snpfile-2.0.1-gentoo.diff        |  8 ++--
 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 0000000000..f77b476f99
--- /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, [email protected])
+ 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 e6a8d60ec6..b2a8a6b630 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, [email protected])
  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 0000000000..8062ca014a
--- /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
+}

Reply via email to