From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A8A38139083 for ; Sat, 23 Dec 2017 18:45:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0210E0E59; Sat, 23 Dec 2017 18:45:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A8826E0E59 for ; Sat, 23 Dec 2017 18:45:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 367F2340754 for ; Sat, 23 Dec 2017 18:45:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 84D87AE90 for ; Sat, 23 Dec 2017 18:45:50 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1514054734.a4fea019175a1a73486a1f759b0cafc875826072.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/bamtools/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-biology/bamtools/Manifest sci-biology/bamtools/bamtools-2.5.1.ebuild X-VCS-Directories: sci-biology/bamtools/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: a4fea019175a1a73486a1f759b0cafc875826072 X-VCS-Branch: master Date: Sat, 23 Dec 2017 18:45:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a5177790-7d29-45c5-8e37-c063ab9004c0 X-Archives-Hash: 311bc56a8d7e71c2a4db11c4233d237e commit: a4fea019175a1a73486a1f759b0cafc875826072 Author: David Seifert gentoo org> AuthorDate: Sat Dec 23 18:44:09 2017 +0000 Commit: David Seifert gentoo org> CommitDate: Sat Dec 23 18:45:34 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4fea019 sci-biology/bamtools: Version bump to 2.5.1 Package-Manager: Portage-2.3.19, Repoman-2.3.6 sci-biology/bamtools/Manifest | 1 + sci-biology/bamtools/bamtools-2.5.1.ebuild | 69 ++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/sci-biology/bamtools/Manifest b/sci-biology/bamtools/Manifest index bd3643e1a9e..da707d0eb8f 100644 --- a/sci-biology/bamtools/Manifest +++ b/sci-biology/bamtools/Manifest @@ -1 +1,2 @@ DIST bamtools-2.4.2.tar.gz 548095 BLAKE2B 19f302eb5de9c8e3f0dc53cb9cbb359b1186b44318f7cb82e83ea995920bb30331d0873c9ad9c68601306772eab1283ead2b0eb4a8cb17cb1eade600c9cdbfac SHA512 244a63609c0b10a85bba7cac210a27ea9abafba136e9c91fc789c7aa21a6cdaa7622afebc50ec8d30d4446872d5206dbd3d679ca03e95ac90771c87359cb69a0 +DIST bamtools-2.5.1.tar.gz 549750 BLAKE2B c00b42b10e074e2c6b06f8bc9277a57080b9e99cd10080b1ad9052d59a3db353b33ecf6c30642d1651897396ea65e1e19cb15db0d58a89d4375fe34a8ec38e55 SHA512 f2c761c5bf923cf2f3db3dc54e40b4781307106b9177784f930aab619bd11fae3b343f3cfd232524580d39f0526a2a2f18efcf820fe4d9c951406bdb6b953afb diff --git a/sci-biology/bamtools/bamtools-2.5.1.ebuild b/sci-biology/bamtools/bamtools-2.5.1.ebuild new file mode 100644 index 00000000000..ba21654b97f --- /dev/null +++ b/sci-biology/bamtools/bamtools-2.5.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/pezmaster31/bamtools.git" +else + SRC_URI="https://github.com/pezmaster31/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="MIT" +SLOT="0/${PV}" # no stable ABI yet +IUSE="static-libs" + +RDEPEND=" + >=dev-libs/jsoncpp-1.8.0:= + sys-libs/zlib:=" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && + MULTIBUILD_VARIANTS=( + $(usev static-libs) + shared + ) +} + +src_prepare() { + # delete bundled libs, just to be safe + rm -r src/third_party/{gtest-1.6.0,jsoncpp} || die + + 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 +}