-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit cmake-utils multibuild
+inherit cmake-utils
DESCRIPTION="A programmer's API and an end-user's toolkit for handling BAM files"
HOMEPAGE="https://github.com/pezmaster31/bamtools"
LICENSE="MIT"
SLOT="0/${PV}" # no stable ABI yet
-IUSE="static-libs"
RDEPEND="
>=dev-libs/jsoncpp-1.8.0:=
DEPEND="${RDEPEND}"
BDEPEND="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
+ rm -rf src/third_party/{gtest-1.6.0,jsoncpp} || die
cmake-utils_src_prepare
}
-
-src_configure() {
- my_configure() {
- [[ ${MULTIBUILD_ID} == static-libs* ]] &&
- local mycmakeargs=( -DBUILD_SHARED_LIBS=OFF )
-
- 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
-}
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit cmake-utils multibuild
+inherit cmake-utils
DESCRIPTION="A programmer's API and an end-user's toolkit for handling BAM files"
HOMEPAGE="https://github.com/pezmaster31/bamtools"
LICENSE="MIT"
SLOT="0/${PV}" # no stable ABI yet
-IUSE="static-libs"
RDEPEND="
>=dev-libs/jsoncpp-1.8.0:=
DEPEND="${RDEPEND}"
BDEPEND="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
+ rm -rf src/third_party/{gtest-1.6.0,jsoncpp} || die
cmake-utils_src_prepare
}
-
-src_configure() {
- my_configure() {
- [[ ${MULTIBUILD_ID} == static-libs* ]] &&
- local mycmakeargs=( -DBUILD_SHARED_LIBS=OFF )
-
- 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
-}