dev-cpp/scnlib - 4.0.1 (guru)

Search

Install

Install this version:

emerge -a =dev-cpp/scnlib-4.0.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-cpp/scnlib-4.0.1

Or alternatively:

emerge --autounmask-write -a =dev-cpp/scnlib-4.0.1

Package Information

Description:
scanf for modern C++
Homepage:
https://www.scnlib.dev/
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
4.0.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="scanf for modern C++ "
HOMEPAGE="https://www.scnlib.dev/"
SRC_URI="https://github.com/eliaskosunen/scnlib/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"

BDEPEND="
	test? ( dev-cpp/gtest )
"

RESTRICT="!test? ( test )"

src_configure() {
	local mycmakeargs=(
		-DSCN_BENCHMARKS=OFF
		-DSCN_BENCHMARKS_BINARYSIZE=OFF
		-DSCN_BENCHMARKS_BUILDTIME=OFF
		-DSCN_DISABLE_FAST_FLOAT=ON
		-DSCN_DOCS=OFF
		-DSCN_EXAMPLES=$(usex test ON OFF)
		-DSCN_TESTS=$(usex test ON OFF)
		-DSCN_USE_EXTERNAL_FAST_FLOAT=ON
		-DSCN_USE_EXTERNAL_GTEST=ON
	)
	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-cpp/scnlib | euse -E <flag> -p dev-cpp/scnlib | euse -D <flag> -p dev-cpp/scnlib

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

	test? ( dev-cpp/gtest )

Manifest for 4.0.1

Type File Size Source URLs
DIST scnlib-4.0.1.tar.gz 434107 bytes https://github.com/eliaskosunen/scnlib/archive/refs/tags/v4.0.1.tar.gz