From 2771f79232c273bc2a57d23bf335dd81ccf6af28 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 5 Dec 2021 02:47:11 +0000 Subject: gentoo resync : 05.12.2021 --- sys-libs/basu/Manifest | 5 +++ sys-libs/basu/basu-0.2.0.ebuild | 41 ++++++++++++++++++ .../0001-basu-0.2.0-meson-add-libcap-option.patch | 39 +++++++++++++++++ ...on-convert-audit-option-to-feature-object.patch | 49 ++++++++++++++++++++++ sys-libs/basu/metadata.xml | 19 +++++++++ 5 files changed, 153 insertions(+) create mode 100644 sys-libs/basu/Manifest create mode 100644 sys-libs/basu/basu-0.2.0.ebuild create mode 100644 sys-libs/basu/files/0001-basu-0.2.0-meson-add-libcap-option.patch create mode 100644 sys-libs/basu/files/0002-basu-0.2.0-meson-convert-audit-option-to-feature-object.patch create mode 100644 sys-libs/basu/metadata.xml (limited to 'sys-libs/basu') diff --git a/sys-libs/basu/Manifest b/sys-libs/basu/Manifest new file mode 100644 index 000000000000..e273ccbf0235 --- /dev/null +++ b/sys-libs/basu/Manifest @@ -0,0 +1,5 @@ +AUX 0001-basu-0.2.0-meson-add-libcap-option.patch 1222 BLAKE2B 6edec60701a78f5a2f109eccfdc76363379c2c07126cac46b2ce7eab6bce8f51a67b55b5bd8d689acdc11ca703dee3c601512a206f06a6954ae20e87c774abf1 SHA512 a20c6fde6297720654cd2daafbeeb11e6b2b0c1a8c565cd7680b747b7a0b178b0931bd8aede89060e20f473f4ff1dc2bdf06262fc6196515e47ea1cb5a34e1e3 +AUX 0002-basu-0.2.0-meson-convert-audit-option-to-feature-object.patch 1574 BLAKE2B 44e2669b30b4f6f254b79031e8f4272e3d002ef152f93754dd93dbca13945d3dc49952de714ce2d5609600f89539417c1d505bd48d51d8e4b7bbd1f2dcfb8dab SHA512 645040b869ad362e4d0dc40210ed63018f224704ab121d59561c039486a9423d1b9f5995df4ddd73de2a6872f5752a006f6a4bc66aa8d8ca3604950072bc59a5 +DIST basu-0.2.0.tar.gz 238861 BLAKE2B 4fcc664d031477c2ae82e535711561d1a7cb60503fb31fa80101c2046e3fe11f7886851649d38f3d5868a3266f45e651085d99ec95f6788baddbf78e893b1528 SHA512 dbc2f72b6e1a880fa41fe6067a38a301f456e4305dae6eb4d465089d7d9c2f629677ba23752b3e1a1fd476cb440db01ef3a218c1c976f38d0058eed584c80165 +EBUILD basu-0.2.0.ebuild 871 BLAKE2B 280617e4049db3c9b9588ae5cc14d2d20b34bb7cc2f58406b06052a2e66602393795f12d0ab6fb026f095308d5b621680c30c122bdd6b3b99f1e2de68d2670da SHA512 e692aeb121525e307eef9707a891f713f4bb6bf6a6822dfd3bc6fb912f7f0390e602530c98b0e7ad831e4d5deaa9af2d91fd70f3863b2e552a2df6cc798d3aa1 +MISC metadata.xml 635 BLAKE2B 76f9661d661cd12fc608fa261e1a387755915fba2f9bd1ee148f7d32f3f38560b30334539837b30236ad2e69b7eb4d32e97d451a3a159605d681953e845fbf3f SHA512 e3659d0ab5a3c1bf3cc5f12c537d84a6c3f612efec64a1478899fa7a899637938000eeadd7236a43101f28dfa83e2a5831378bc026807a45c98d9d63c4f2db6f diff --git a/sys-libs/basu/basu-0.2.0.ebuild b/sys-libs/basu/basu-0.2.0.ebuild new file mode 100644 index 000000000000..46c936a536d0 --- /dev/null +++ b/sys-libs/basu/basu-0.2.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit meson python-any-r1 + +DESCRIPTION="The sd-bus library, extracted from systemd" +HOMEPAGE="https://sr.ht/~emersion/basu/" +LICENSE="LGPL-2.1+" +SLOT="0" + +SRC_URI="https://git.sr.ht/~emersion/basu/refs/download/v${PV}/basu-${PV}.tar.gz" +KEYWORDS="~amd64" + +IUSE="audit caps" + +DEPEND=" + audit? ( sys-process/audit ) + caps? ( sys-libs/libcap ) +" + +RDEPEND="${DEPEND}" +# Needed to generate hash tables +BDEPEND="${PYTHON_DEPS} + dev-util/gperf +" + +PATCHES=( + "${FILESDIR}"/0001-"${PN}"-0.2.0-meson-add-libcap-option.patch + "${FILESDIR}"/0002-"${PN}"-0.2.0-meson-convert-audit-option-to-feature-object.patch +) + +src_configure() { + local emesonargs=( + $(meson_feature audit) + $(meson_feature caps libcap) + ) + meson_src_configure +} diff --git a/sys-libs/basu/files/0001-basu-0.2.0-meson-add-libcap-option.patch b/sys-libs/basu/files/0001-basu-0.2.0-meson-add-libcap-option.patch new file mode 100644 index 000000000000..b2727b95a7d7 --- /dev/null +++ b/sys-libs/basu/files/0001-basu-0.2.0-meson-add-libcap-option.patch @@ -0,0 +1,39 @@ +From 64c1c624ea63f7a3eba4f0b7cf6a7d7aff952982 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= +Date: Fri, 5 Nov 2021 18:36:54 +0100 +Subject: [PATCH 1/2] meson: add libcap option + +it's better to provide the user with this choice instead of +unconditionally magically depending on it +--- + meson.build | 2 +- + meson_options.txt | 3 +++ + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 056c7c4..357b346 100644 +--- a/meson.build ++++ b/meson.build +@@ -231,7 +231,7 @@ threads = dependency('threads') + librt = cc.find_library('rt') + libm = cc.find_library('m') + +-libcap = dependency('libcap', required: false) ++libcap = dependency('libcap', required: get_option('libcap')) + have_libcap = libcap.found() + conf.set10('HAVE_LIBCAP', have_libcap) + +diff --git a/meson_options.txt b/meson_options.txt +index 8cf3a33..ae5c7b1 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -14,3 +14,6 @@ option('system-bus-address', type : 'string', + + option('audit', type : 'combo', choices : ['auto', 'true', 'false'], + description : 'libaudit support') ++ ++option('libcap', type : 'feature', ++ description : 'libcap support') +-- +2.32.0 + diff --git a/sys-libs/basu/files/0002-basu-0.2.0-meson-convert-audit-option-to-feature-object.patch b/sys-libs/basu/files/0002-basu-0.2.0-meson-convert-audit-option-to-feature-object.patch new file mode 100644 index 000000000000..3d32f0b2352b --- /dev/null +++ b/sys-libs/basu/files/0002-basu-0.2.0-meson-convert-audit-option-to-feature-object.patch @@ -0,0 +1,49 @@ +From 34d1b77f1dd15d55cfc12ef2ee52fd3b6b1d76ce Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= +Date: Fri, 5 Nov 2021 18:39:56 +0100 +Subject: [PATCH 2/2] meson: convert audit option to feature object + +features are more idiomatic and ubiquitous +--- + meson.build | 11 ++--------- + meson_options.txt | 2 +- + 2 files changed, 3 insertions(+), 10 deletions(-) + +diff --git a/meson.build b/meson.build +index 357b346..1f29690 100644 +--- a/meson.build ++++ b/meson.build +@@ -235,15 +235,8 @@ libcap = dependency('libcap', required: get_option('libcap')) + have_libcap = libcap.found() + conf.set10('HAVE_LIBCAP', have_libcap) + +-want_audit = get_option('audit') +-if want_audit != 'false' +- libaudit = dependency('audit', required : want_audit == 'true') +- have = libaudit.found() +-else +- have = false +- libaudit = [] +-endif +-conf.set10('HAVE_AUDIT', have) ++libaudit = dependency('audit', required : get_option('audit')) ++conf.set10('HAVE_AUDIT', libaudit.found()) + + tests = [] + +diff --git a/meson_options.txt b/meson_options.txt +index ae5c7b1..87adfc2 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -12,7 +12,7 @@ option('system-bus-address', type : 'string', + description : 'The address of the sytem bus (defined at dbus compilation)', + value : 'unix:path=/var/run/dbus/system_bus_socket') + +-option('audit', type : 'combo', choices : ['auto', 'true', 'false'], ++option('audit', type : 'feature', + description : 'libaudit support') + + option('libcap', type : 'feature', +-- +2.32.0 + diff --git a/sys-libs/basu/metadata.xml b/sys-libs/basu/metadata.xml new file mode 100644 index 000000000000..e97261f56145 --- /dev/null +++ b/sys-libs/basu/metadata.xml @@ -0,0 +1,19 @@ + + + + + arsen@aarsen.me + Arsen Arsenović + + + proxy-maint@gentoo.org + Proxy Maintainers + + + The sd-bus library, extracted from systemd. + + Some projects rely on the sd-bus library for DBus support. + However not all systems have systemd or elogind installed. This + library provides just sd-bus (and the busctl utility). + + -- cgit v1.2.3