# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake DESCRIPTION="A C++ template library for embedded applications" HOMEPAGE="https://www.etlcpp.com/" SRC_URI="https://github.com/ETLCPP/etl/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/etl-${PV}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="test" RESTRICT="!test? ( test )" # Run-time dependencies. Must be defined to whatever this depends on to run. # Example: # ssl? ( >=dev-libs/openssl-1.0.2q:0= ) # >=dev-lang/perl-5.24.3-r1 # It is advisable to use the >= syntax show above, to reflect what you # had installed on your system when you tested the package. Then # other users hopefully won't be caught without the right version of # a dependency. #RDEPEND="" # Build-time dependencies that need to be binary compatible with the system # being built (CHOST). These include libraries that we link against. # The below is valid if the same run-time depends are required to compile. #DEPEND="${RDEPEND}" # Build-time dependencies that are executed during the emerge process, and # only need to be present in the native build system (CBUILD). Example: #BDEPEND="virtual/pkgconfig" src_configure() { local mycmakeargs=( -DBUILD_TESTS=$(usex test) ) cmake_src_configure }