commit:     565f9b0c0ef3c2c6917d27a17495dbc279bc92de
Author:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Sat Mar 23 15:01:39 2019 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Sat Mar 23 15:01:39 2019 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=565f9b0c

sci-biology/bamql: add IUSE="static-libs"

Provided one specifies `--enable-static=no --enable-static-llvm=no` the
patch in
https://github.com/BoutrosLaboratory/bamql/commit/94417720bc7653a90cd9edd932ba6ba52d7bb89b
is really needed (as these two args are enough to compile bamql-1.6 and
llvm with only shared libs).

See https://github.com/BoutrosLaboratory/bamql/issues/14

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Martin Mokrejs <mmokrejs <AT> fold.natur.cuni.cz>

 sci-biology/bamql/{bamql-1.5.ebuild => bamql-1.6.ebuild} | 15 +++++++++++----
 sci-biology/bamql/bamql-9999.ebuild                      | 11 +++++++++--
 2 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/sci-biology/bamql/bamql-1.5.ebuild 
b/sci-biology/bamql/bamql-1.6.ebuild
similarity index 53%
rename from sci-biology/bamql/bamql-1.5.ebuild
rename to sci-biology/bamql/bamql-1.6.ebuild
index ef78e3753..535b31f44 100644
--- a/sci-biology/bamql/bamql-1.5.ebuild
+++ b/sci-biology/bamql/bamql-1.6.ebuild
@@ -1,19 +1,19 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit autotools
+inherit autotools eutils
 
 DESCRIPTION="Extract reads from BAM files"
 HOMEPAGE="https://github.com/BoutrosLaboratory/bamql
        
https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-016-1162-y";
-SRC_URI="https://github.com/BoutrosLaboratory/bamql/archive/v1.5.tar.gz -> 
${P}.tar.gz"
+SRC_URI="https://github.com/BoutrosLaboratory/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="static-libs"
 
 DEPEND="
        sys-devel/llvm:=
@@ -26,3 +26,10 @@ src_prepare(){
        eautoreconf
        default
 }
+
+src_configure(){
+       local mycmakeargs=()
+       use static-libs && mycmakeargs+=( "--enable-static=yes" 
"--enable-static-llvm=yes" ) || \
+               mycmakeargs+=( "--enable-static=no" "--enable-static-llvm=no" )
+       econf ${mycmakeargs[@]}
+}

diff --git a/sci-biology/bamql/bamql-9999.ebuild 
b/sci-biology/bamql/bamql-9999.ebuild
index 44a7d85f5..409804dc7 100644
--- a/sci-biology/bamql/bamql-9999.ebuild
+++ b/sci-biology/bamql/bamql-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -13,7 +13,7 @@ EGIT_REPO_URI="https://github.com/BoutrosLaboratory/bamql.git";
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS=""
-IUSE=""
+IUSE="static-libs"
 
 DEPEND="
        sys-devel/llvm:=
@@ -26,3 +26,10 @@ src_prepare(){
        eautoreconf
        default
 }
+
+src_configure(){
+       local mycmakeargs=()
+       use static-libs && mycmakeargs+=( "--enable-static=yes" 
"--enable-static-llvm=yes" ) || \
+               mycmakeargs+=( "--enable-static=no" "--enable-static-llvm=no" )
+       econf ${mycmakeargs[@]}
+}

Reply via email to