diff options
author | 2023-03-08 23:28:30 +0000 | |
---|---|---|
committer | 2023-03-08 23:28:30 +0000 | |
commit | 0617ae5ac21129d8327ee5f97aba2b2a60c59e8a (patch) | |
tree | 3e6891eb771332c6df88d3f438b30a23d1eae7d6 /dev-cpp | |
parent | app-text/lowdown: stabilize 1.0.0 for amd64 (diff) | |
download | gentoo-0617ae5ac21129d8327ee5f97aba2b2a60c59e8a.tar.gz gentoo-0617ae5ac21129d8327ee5f97aba2b2a60c59e8a.tar.bz2 gentoo-0617ae5ac21129d8327ee5f97aba2b2a60c59e8a.zip |
dev-cpp/gulrak-filesystem: Add missing 1.5.14 ebuild
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-cpp')
-rw-r--r-- | dev-cpp/gulrak-filesystem/gulrak-filesystem-1.5.14.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-cpp/gulrak-filesystem/gulrak-filesystem-1.5.14.ebuild b/dev-cpp/gulrak-filesystem/gulrak-filesystem-1.5.14.ebuild new file mode 100644 index 000000000000..cb9d6a8f4dcb --- /dev/null +++ b/dev-cpp/gulrak-filesystem/gulrak-filesystem-1.5.14.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 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" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="examples test" +RESTRICT="!test? ( test )" + +S="${WORKDIR}/${P#*-}" + +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 +} |