From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/bamtools/
Date: Sat, 23 Dec 2017 18:45:50 +0000 (UTC) [thread overview]
Message-ID: <1514054728.a1b05c071c6654e2c96dac44a6b2e599a56a42c7.soap@gentoo> (raw)
commit: a1b05c071c6654e2c96dac44a6b2e599a56a42c7
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 23 18:37:39 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Dec 23 18:45:28 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1b05c07
sci-biology/bamtools: Add support for static libraries
Package-Manager: Portage-2.3.19, Repoman-2.3.6
sci-biology/bamtools/bamtools-9999.ebuild | 38 +++++++++++++++++++++++++++++--
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/sci-biology/bamtools/bamtools-9999.ebuild b/sci-biology/bamtools/bamtools-9999.ebuild
index bd0157db0d1..ba21654b97f 100644
--- a/sci-biology/bamtools/bamtools-9999.ebuild
+++ b/sci-biology/bamtools/bamtools-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-inherit cmake-utils
+inherit cmake-utils multibuild
DESCRIPTION="A programmer's API and an end-user's toolkit for handling BAM files"
HOMEPAGE="https://github.com/pezmaster31/bamtools"
@@ -18,6 +18,7 @@ fi
LICENSE="MIT"
SLOT="0/${PV}" # no stable ABI yet
+IUSE="static-libs"
RDEPEND="
>=dev-libs/jsoncpp-1.8.0:=
@@ -25,7 +26,13 @@ RDEPEND="
DEPEND="${RDEPEND}
virtual/pkgconfig"
-mycmakeargs=( -DBUILD_SHARED_LIBS=ON )
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] &&
+ MULTIBUILD_VARIANTS=(
+ $(usev static-libs)
+ shared
+ )
+}
src_prepare() {
# delete bundled libs, just to be safe
@@ -33,3 +40,30 @@ src_prepare() {
cmake-utils_src_prepare
}
+
+src_configure() {
+ my_configure() {
+ case "${MULTIBUILD_ID}" in
+ static*)
+ local mycmakeargs=( -DBUILD_SHARED_LIBS=OFF )
+ ;;
+ shared)
+ local mycmakeargs=( -DBUILD_SHARED_LIBS=ON )
+ ;;
+ *)
+ die "${MULTIBUILD_ID} is not recognized"
+ ;;
+ esac
+
+ cmake-utils_src_configure
+ }
+ multibuild_foreach_variant my_configure
+}
+
+src_compile() {
+ multibuild_foreach_variant cmake-utils_src_compile
+}
+
+src_install() {
+ multibuild_foreach_variant cmake-utils_src_install
+}
next reply other threads:[~2017-12-23 18:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-23 18:45 David Seifert [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-06-20 20:04 [gentoo-commits] repo/gentoo:master commit in: sci-biology/bamtools/ David Seifert
2021-06-20 20:04 David Seifert
2020-04-14 8:35 Joonas Niilola
2019-11-13 18:16 David Seifert
2018-12-13 14:08 David Seifert
2018-06-02 13:25 David Seifert
2017-12-23 18:45 David Seifert
2017-12-23 18:45 David Seifert
2017-11-02 3:31 David Seifert
2017-11-02 3:19 David Seifert
2017-11-02 3:19 David Seifert
2015-12-13 9:54 Justin Lecher
2015-08-16 11:30 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1514054728.a1b05c071c6654e2c96dac44a6b2e599a56a42c7.soap@gentoo \
--to=soap@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox