dev-cpp/gulrak-filesystem - 1.5.16 (gentoo)

Search

Install

Install this version:

emerge -a =dev-cpp/gulrak-filesystem-1.5.16

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

autounmask =dev-cpp/gulrak-filesystem-1.5.16

Or alternatively:

emerge --autounmask-write -a =dev-cpp/gulrak-filesystem-1.5.16

Package Information

Description:
Header-only single-file std::filesystem compatible helper library
Homepage:
https://github.com/gulrak/filesystem
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.5.16 8 ~amd64 ~arm64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Header-only single-file std::filesystem compatible helper library"
HOMEPAGE="https://github.com/gulrak/filesystem"
SRC_URI="https://github.com/gulrak/filesystem/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${P#*-}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="examples test"
RESTRICT="!test? ( test )"

src_prepare() {
	cmake_src_prepare
	sed -i "s:-Werror::g" cmake/GhcHelper.cmake test/CMakeLists.txt || die
}

src_configure() {
	local mycmakeargs=(
		-DGHC_FILESYSTEM_BUILD_EXAMPLES=OFF
		-DGHC_FILESYSTEM_BUILD_TESTING=$(usex test)
		-DGHC_FILESYSTEM_WITH_INSTALL=ON
	)

	cmake_src_configure
}

src_install() {
	cmake_src_install

	docinto examples
	use examples && dodoc examples/*.cpp
}

USE Flags

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

Global/Standard Flags

Inherited Eclasses

Manifest for 1.5.16

Type File Size Source URLs
DIST gulrak-filesystem-1.5.16.tar.gz 216003 bytes https://github.com/gulrak/filesystem/archive/v1.5.16.tar.gz