commit:     b650b7bfce54af7376575cec303cd2898ee90f4a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 23 13:54:40 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 13:55:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b650b7bf

dev-libs/liblogging: add 1.0.7

Always enable rfc3195 and stdlog, as otherwise, 1.0.7 at least doesn't
install anything. They have no extra dependencies and I can't see why not.

Closes: https://bugs.gentoo.org/926515
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/liblogging/Manifest                |  1 +
 dev-libs/liblogging/liblogging-1.0.7.ebuild | 46 +++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/dev-libs/liblogging/Manifest b/dev-libs/liblogging/Manifest
index b37e716e0da3..d7e82243af04 100644
--- a/dev-libs/liblogging/Manifest
+++ b/dev-libs/liblogging/Manifest
@@ -1 +1,2 @@
 DIST liblogging-1.0.6.tar.gz 593393 BLAKE2B 
c2ca93225b7594c2c064f14e83f475cf2f3dbf608e77e103759371e81e0052e49624740c35f29b7bf9cd1872f4f85f286a2c903f503bebb170a5337d0dfe0677
 SHA512 
09c90a93b2d32afa44be5a800705a64690810a56d21bed1455cb70680b01fecd4efef3881a43f98ebcafa996b6046ed8e5af935eacc12014f330a7fd23674964
+DIST liblogging-1.0.7.gh.tar.gz 288035 BLAKE2B 
85530ccd3ef42c0c28e6f5edf43ee4ff7af5d4707f03cf08d03b1122f0c942cf97a13ff13eb79325f3aab7b4edfe9da0c313a3327ae422cef0fe763ff444ed53
 SHA512 
74e86b093831a9a08d8868d3828654a47c3a8d03a0dc6d9345deba9d55aca6daa391b4c53d0efe61012ceee131b75b88b302dde906cd485f54a89e823963247e

diff --git a/dev-libs/liblogging/liblogging-1.0.7.ebuild 
b/dev-libs/liblogging/liblogging-1.0.7.ebuild
new file mode 100644
index 000000000000..abc98e16bb56
--- /dev/null
+++ b/dev-libs/liblogging/liblogging-1.0.7.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic
+
+DESCRIPTION="Easy to use, portable, open source library for system logging"
+HOMEPAGE="http://www.liblogging.org";
+#SRC_URI="http://download.rsyslog.com/liblogging/${P}.tar.gz";
+SRC_URI="https://github.com/rsyslog/liblogging/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.gh.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0/0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~riscv ~sparc ~x86"
+IUSE="systemd"
+
+RDEPEND="systemd? ( sys-apps/systemd )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+DOCS=( ChangeLog )
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       append-cflags -std=gnu17
+
+       local myeconfargs=(
+               # The package installs nothing if neither of these are
+               # enabled. Just enable both as that seems to do no harm.
+               --enable-rfc3195
+               --enable-stdlog
+               $(use_enable systemd journal)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to