From a9c4c0fca7795008020baf752385e94cb8792297 Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Sun, 31 Oct 2021 13:51:36 +0500 Subject: [PATCH] dev-libs/tfdn: initial import Signed-off-by: Anna (cybertailor) Vyalkova --- dev-libs/tfdn/Manifest | 1 + dev-libs/tfdn/metadata.xml | 22 +++++++++++++++ dev-libs/tfdn/tfdn-1.0.1.ebuild | 47 +++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 dev-libs/tfdn/Manifest create mode 100644 dev-libs/tfdn/metadata.xml create mode 100644 dev-libs/tfdn/tfdn-1.0.1.ebuild diff --git a/dev-libs/tfdn/Manifest b/dev-libs/tfdn/Manifest new file mode 100644 index 0000000000..b8480ccb64 --- /dev/null +++ b/dev-libs/tfdn/Manifest @@ -0,0 +1 @@ +DIST tfdn-1.0.1.tar.gz 205687 BLAKE2B b399133d2a01fec2e7f83ebf5cfc33b3682f1e8fa17d42760c2ea86fb2fbe1e573efb08afe91b416d11e50d10141770071736d23ae332746fdec23feea7f64e9 SHA512 33d9f3f8b26e495f56586ef494c88ab35623dd3927b9c419ed9e3ed46f999aaeedf9723e267635b1dbf65f39ee20eecf54a5f498008b7d16241a58d7f832141c diff --git a/dev-libs/tfdn/metadata.xml b/dev-libs/tfdn/metadata.xml new file mode 100644 index 0000000000..6ec671d564 --- /dev/null +++ b/dev-libs/tfdn/metadata.xml @@ -0,0 +1,22 @@ + + + + + cyber+gentoo@sysrq.in + Anna + + + the_Foundation is a C11 library and a coding convention for + object-oriented programming that has been designed from the point of + view of someone who appreciates the user-friendliness of Qt and some of + the thinking behind C++ STL. The preprocessor is used heavily to provide + flexibility and convenience for the programmer. + + + + jaakko.keranen@iki.fi + Jaakko Keränen + + https://codeberg.org/skyjake/the_Foundation/issues/ + + diff --git a/dev-libs/tfdn/tfdn-1.0.1.ebuild b/dev-libs/tfdn/tfdn-1.0.1.ebuild new file mode 100644 index 0000000000..ad1fa878f5 --- /dev/null +++ b/dev-libs/tfdn/tfdn-1.0.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOCS_BUILDER="doxygen" +DOCS_DEPEND="app-doc/doxygen[dot]" +DOCS_CONFIG_NAME="the_Foundation.doxygen" +inherit cmake docs + +MY_PN="the_foundation" +DESCRIPTION="Opinionated C11 library for low-level functionality" +HOMEPAGE="https://git.skyjake.fi/skyjake/the_Foundation" +SRC_URI="https://git.skyjake.fi/skyjake/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_PN}" + +LICENSE="BSD-2" +SLOT="0/1" +KEYWORDS="~amd64 ~x86" +IUSE="cpu_flags_x86_sse4_1 curl debug ssl" + +DEPEND=" + dev-libs/libpcre:3 + dev-libs/libunistring:= + sys-libs/zlib:= + curl? ( net-misc/curl ) + ssl? ( dev-libs/openssl:= ) +" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DTFDN_ENABLE_WARN_ERROR=OFF + -DTFDN_ENABLE_DEBUG_OUTPUT=$(usex debug) + -DTFDN_ENABLE_SSE41=$(usex cpu_flags_x86_sse4_1) + -DTFDN_ENABLE_TESTS=OFF # not actual tests + -DTFDN_ENABLE_TLSREQUEST=$(usex ssl) + -DTFDN_ENABLE_WEBREQUEST=$(usex curl) + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + docs_compile +}