From 236e75597883501f8700d9ba1a5c8276f578a17f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 May 2024 00:06:25 +0100 Subject: gentoo auto-resync : 22:05:2024 - 00:06:25 --- dev-libs/pfs/Manifest | 4 ++++ dev-libs/pfs/files/pfs-0.10.0-Werror.patch | 11 ++++++++++ dev-libs/pfs/metadata.xml | 11 ++++++++++ dev-libs/pfs/pfs-0.10.0.ebuild | 35 ++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 dev-libs/pfs/Manifest create mode 100644 dev-libs/pfs/files/pfs-0.10.0-Werror.patch create mode 100644 dev-libs/pfs/metadata.xml create mode 100644 dev-libs/pfs/pfs-0.10.0.ebuild (limited to 'dev-libs/pfs') diff --git a/dev-libs/pfs/Manifest b/dev-libs/pfs/Manifest new file mode 100644 index 000000000000..ca1616e319e5 --- /dev/null +++ b/dev-libs/pfs/Manifest @@ -0,0 +1,4 @@ +AUX pfs-0.10.0-Werror.patch 484 BLAKE2B c868d20a78e51c7aff1a427ef4e68c9652e995a8d529136efa4d1faa64dd9cbf79dcd01a29dc4a688a88c0ca9730a1f5c93391b6f186cf8e2ad49b00d23c872b SHA512 3be787dd23876b0864c25388a5044488f199230277ac964f9d1526efdd5e182a74eae40d4548e7bbd1e78de2edf74263f2157fdd11dd04c31d24439235dedcda +DIST pfs-0.10.0.tar.gz 239987 BLAKE2B 60c918e184cd2896da8df35daa5b33fb5a90a776d1297ffc48fa15fc0bab5c852e23418924b7427f6fe3fcce30a21ed7a291b5ab02cdd42d41b2189d5add8b28 SHA512 f8f46e664142f8b52f97f8c5974a8ae0a2002dca1a778f23e23b7d4da4d184c87441928cd5d0b40cc2106b2bb7cb9be330bdda0c4374a66acaf10edff069563f +EBUILD pfs-0.10.0.ebuild 694 BLAKE2B 69a330567e97e38ba5e278826e1be867afc04f3c628ca9efc4621445aa30946b37acf158cedd0edba4dc9fad0b82ea99d17fa5f9191ebba1da92f348dc9f523f SHA512 72c254b926a9379cfe02944aafddd1cd148bcf84dc2b01fdf16da50c109cd493824fa8ed8904102d62542451a667117e7d04163cefc0030edb7560a76a300245 +MISC metadata.xml 325 BLAKE2B 6907da8e3a8c24dde3c3f88f4b18eda6e98645bb2d80dbe12f2a817f51ca538d048b089e0249106b86a96ff4fb5f0119ba92d28b876cc1db9b2b84cb127df981 SHA512 9304a391bdcdaa195f703a3a3e98fb4f13f7c96958582aea118d2a9f479f7f67969d25b9941fe4839b55377c40303dcd83503e07d181a026dec4388780717a49 diff --git a/dev-libs/pfs/files/pfs-0.10.0-Werror.patch b/dev-libs/pfs/files/pfs-0.10.0-Werror.patch new file mode 100644 index 000000000000..c319d4b6e984 --- /dev/null +++ b/dev-libs/pfs/files/pfs-0.10.0-Werror.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt 2024-05-21 20:11:22.098008343 +0200 ++++ b/CMakeLists.txt 2024-05-21 20:11:35.538853965 +0200 +@@ -31,7 +31,7 @@ + # Actual configuration + # ------------------------------------------------------------------------ + +-add_compile_options (-std=c++11 -Wall -Wextra -pedantic -Werror) ++add_compile_options (-std=c++11 -Wall -Wextra -pedantic) + + set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out) + set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) diff --git a/dev-libs/pfs/metadata.xml b/dev-libs/pfs/metadata.xml new file mode 100644 index 000000000000..e8b86cf9074c --- /dev/null +++ b/dev-libs/pfs/metadata.xml @@ -0,0 +1,11 @@ + + + + + tupone@gentoo.org + Tupone Alfredo + + + dtrugman/pfs + + diff --git a/dev-libs/pfs/pfs-0.10.0.ebuild b/dev-libs/pfs/pfs-0.10.0.ebuild new file mode 100644 index 000000000000..f40731e44a48 --- /dev/null +++ b/dev-libs/pfs/pfs-0.10.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Production grade, very easy to use, procfs parsing library in C++" +HOMEPAGE="https://github.com/dtrugman/pfs" +SRC_URI="https://github.com/dtrugman/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +PATCHES=( "${FILESDIR}"/${P}-Werror.patch ) + +src_prepare() { + rm test/test_proc_stat.cpp | dir + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -Dpfs_BUILD_TESTS=$(usex test) + ) + cmake_src_configure +} + +src_test() { + "${BUILD_DIR}"/out/unittest || die +} -- cgit v1.2.3