commit:     53864d579db00c5140b12a2a4bb22969202b8b5e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 27 01:18:48 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 27 01:32:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53864d57

sys-apps/bfs: add 4.0.1

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/bfs/Manifest         |  1 +
 sys-apps/bfs/bfs-4.0.1.ebuild | 57 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/sys-apps/bfs/Manifest b/sys-apps/bfs/Manifest
index e7e394fb495c..f8e7bdf426ed 100644
--- a/sys-apps/bfs/Manifest
+++ b/sys-apps/bfs/Manifest
@@ -2,3 +2,4 @@ DIST bfs-3.1.3.tar.gz 237696 BLAKE2B 
ca76ef02cd8ea65ab7d866a9c677063367c16c89b5f
 DIST bfs-3.2.tar.gz 252756 BLAKE2B 
444d23c8df92c6c0bcbd38889cec29012c40d742a23e1755390259a325fab9d082a23ef444bf76462b21fcdeb41fa749593f5ec7d640f7270252ed4268ccc3fe
 SHA512 
2881a37b65d8015853a658a4f759a5213ea433a726ee9952b82bd2d6c682f92e7d014eaa7ec8f1d127b3c25b5d3b04e3b24ae61ec2549212a7a4f9335f91bf8b
 DIST bfs-3.3.1.tar.gz 262841 BLAKE2B 
bc848f4daa98172531e6c13100dcd1f3b722f4282acc5fd3677b2c4a83effa49e681d0cac3fa2c104fd1db03543c4f0a6ca9bc494ee3737d0c927f0170171eac
 SHA512 
e31153ef244483e4337bd2bb64fc4ddf55d56048b5af54003a917287868114c81befb771b6cfc7473e384d3157b24cbec7ca27336362a438c7803eb7fc85d8d3
 DIST bfs-3.3.tar.gz 262590 BLAKE2B 
f418a9b2f8749eb28dbe702e9303a4b4d2ec8119a712544a24d0a01cf9e4a5794d8882103bff799920ffbc7d3855656b034ec960b2b3bed64b183bb8b60cf348
 SHA512 
ed4396e81eaeb54a8d196e2cd0300c1a33f600e7e69d9e8fddf39916e3ade0db422fbae74f1fb1ae76ece1352a3fdf20976fbbf521c5f1ce0bb3c073133004fb
+DIST bfs-4.0.1.tar.gz 272678 BLAKE2B 
c25165b469ea52ef2e0b73ae0cbcef485a739d25cd3c49d25cd0543ab97009b256637d0dab5cb1ce01c3da7ab77519ac6a5b9cff36634c81415ec309d46c7d1d
 SHA512 
0697aab71e2101638fbb5923ec57b9439d6fdd212dccd2f1b90cd4a1bc9c72acca5dca92e9aa6efef06696b324cb6754784602064f35b529ff97d1933672d73c

diff --git a/sys-apps/bfs/bfs-4.0.1.ebuild b/sys-apps/bfs/bfs-4.0.1.ebuild
new file mode 100644
index 000000000000..265ded51c383
--- /dev/null
+++ b/sys-apps/bfs/bfs-4.0.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo flag-o-matic toolchain-funcs
+
+DESCRIPTION="Breadth-first version of the UNIX find command"
+HOMEPAGE="https://tavianator.com/projects/bfs.html";
+SRC_URI="https://github.com/tavianator/bfs/archive/refs/tags/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="0BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc"
+IUSE="acl caps debug io-uring selinux unicode"
+
+DEPEND="
+       acl? ( virtual/acl )
+       caps? ( sys-libs/libcap )
+       io-uring? ( sys-libs/liburing:= )
+       selinux? ( sys-libs/libselinux )
+       unicode? ( dev-libs/oniguruma:= )
+"
+RDEPEND="${DEPEND}"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+       # Not available on Linux
+       acl_is_trivial_np acl_trivial fdclosedir getdents getprogname
+       posix_spawn_file_actions_addfchdir getmntinfo posix_getdents strtofflags
+)
+
+src_configure() {
+       tc-export CC PKG_CONFIG
+       use debug || append-cppflags -DNDEBUG
+
+       edo ./configure \
+               $(use_with acl libacl) \
+               $(use_with caps libcap) \
+               $(use_with selinux libselinux) \
+               $(use_with io-uring liburing) \
+               $(use_with unicode oniguruma) \
+               V=1
+}
+
+src_compile() {
+       emake V=1
+}
+
+src_test() {
+       # -n check gets confused so need manual src_test definition?
+       emake V=1 check
+}
+
+src_install() {
+       emake V=1 DESTDIR="${D}" install
+       einstalldocs
+}

Reply via email to