net-libs/yder: new package, add 1.4.20

Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
This commit is contained in:
Kurt Kanzenbach
2023-11-07 20:28:27 +01:00
parent e957a638b5
commit 6dc7020482
3 changed files with 74 additions and 0 deletions

1
net-libs/yder/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST yder-1.4.20.tar.gz 30058 BLAKE2B e063f1c400a9d205022b58540d5991753c6111be79e0a85476ac31b111db5f7de04dc7e3deaf271e86d00be2a9330d6a28489f8c803781e35082d025e3edf8a6 SHA512 5866558e5d23acd4d82459433449dcbca2c9ab8744f7bc23fc6e4b1349fe683bfa396897e0c38d10b08a52b03fe26fa7bf83cc2e11a0b10066cb6dedf5bb499b

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>kurt@kmk-computers.de</email>
<name>Kurt Kanzenbach</name>
</maintainer>
<longdescription lang="en">
Logging library written in C.
Simple and easy to use logging library. You can log messages to the console,
a file, Syslog, journald or a callback function.
Yder is mono-thread, which mean that you can use only one instance of Yder
log at the same time in your program.
</longdescription>
<upstream>
<remote-id type="github">babelouest/yder</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,53 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Logging library for C applications"
HOMEPAGE="https://github.com/babelouest/yder/"
SRC_URI="https://github.com/babelouest/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc systemd"
RESTRICT="test"
BDEPEND="
doc? (
app-doc/doxygen
media-gfx/graphviz
)
systemd? (
sys-apps/systemd
)
virtual/pkgconfig
"
DEPEND="
"
RDEPEND="
${DEPEND}
"
src_configure() {
local mycmakeargs=(
-DBUILD_YDER_DOCUMENTATION=$(usex doc)
-DWITH_JOURNALD=$(usex systemd)
)
sed -i -e "s/-Werror//g" CMakeLists.txt || die
cmake_src_configure
}
src_compile() {
cmake_src_compile
use doc && cmake_build doc
}
src_install() {
use doc && local HTML_DOCS=( doc/html/* )
cmake_src_install
}