summaryrefslogtreecommitdiff
path: root/sys-apps/bfs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-07 09:58:54 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-07 09:58:54 +0000
commitd21e32f3fcb95019b77ca3f1a6d710ea7f9f1e04 (patch)
tree2933229277b445ec8521fc81053c1442c9f1f7b9 /sys-apps/bfs
parent632aa90c53a31517c5d2259537aadc192434a332 (diff)
gentoo auto-resync : 07:02:2024 - 09:58:54
Diffstat (limited to 'sys-apps/bfs')
-rw-r--r--sys-apps/bfs/Manifest3
-rw-r--r--sys-apps/bfs/bfs-3.1.ebuild41
-rw-r--r--sys-apps/bfs/metadata.xml14
3 files changed, 58 insertions, 0 deletions
diff --git a/sys-apps/bfs/Manifest b/sys-apps/bfs/Manifest
new file mode 100644
index 000000000000..da6832a59835
--- /dev/null
+++ b/sys-apps/bfs/Manifest
@@ -0,0 +1,3 @@
+DIST bfs-3.1.tar.gz 234153 BLAKE2B a5b501016b1513dc9a3964ed4167db37c9a810e49a565059275919d234becf4f66300bdade48f3cde69a952ed0a6c68ee7f4adaf0e500e433f8cf75cc76f3db2 SHA512 d2be9d931d2a53fb292431551cc881103584a75d444f91d4e7d92dffe781aa9cdeda7281ab0c7598e8bfdd944b1392e345eff4bd2e60ea5ae65491f8860d862d
+EBUILD bfs-3.1.ebuild 952 BLAKE2B 2adb0b4498f4a0f4ef3e450d755fb36bf2f38aecb87f3a76135a59428afff52e91cdd899832e0bcc5f9d37b636d73ca21a48066b97df0fba6602943a2e3f6d87 SHA512 c40b26da7ff0c9039c696e0028b462b616e415efd034d43bebb85aceb26219ce0a5c088d5ddc2fea4b06dc87122862a2735eaa948e15a2f7959e21dcfefde13f
+MISC metadata.xml 419 BLAKE2B eadf85369714b56ec89d384a8603c78c282e197db94c324fa9e627d70fa8c0c7c557c21c9c25ff292c93312d9752f36b4dd06a9a9c758c5375621694fb55e50d SHA512 192ae0599d4f36d43d8d2d94fa1e16fc5798b75abf0befecfa4a768a2b57e17387cb98a0663678b0c672c65c50d74cc3d1668cf222e0a9a4084be9078eb09445
diff --git a/sys-apps/bfs/bfs-3.1.ebuild b/sys-apps/bfs/bfs-3.1.ebuild
new file mode 100644
index 000000000000..773585e25921
--- /dev/null
+++ b/sys-apps/bfs/bfs-3.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit 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"
+IUSE="acl caps debug io-uring unicode xattr"
+
+DEPEND="
+ acl? ( virtual/acl )
+ caps? ( sys-libs/libcap )
+ io-uring? ( sys-libs/liburing:= )
+ unicode? ( dev-libs/oniguruma:= )
+ xattr? ( sys-apps/attr )
+"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ tc-export CC
+ use debug || append-cppflags -DNDEBUG
+
+ emake \
+ USE_ACL=$(usev acl '1') \
+ USE_ATTR=$(usev xattr '1') \
+ USE_LIBCAP=$(usev caps '1') \
+ USE_LIBURING=$(usev io-uring '1') \
+ USE_ONIGURUMA=$(usev unicode '1')
+}
+
+src_test() {
+ # -n check gets confused so need manual src_test definition?
+ emake check
+}
diff --git a/sys-apps/bfs/metadata.xml b/sys-apps/bfs/metadata.xml
new file mode 100644
index 000000000000..c734443efb54
--- /dev/null
+++ b/sys-apps/bfs/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>sam@gentoo.org</email>
+ <name>Sam James</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">tavianator/bfs</remote-id>
+ </upstream>
+ <use>
+ <flag name="io-uring">Use <pkg>sys-libs/liburing</pkg> for faster async I/O</flag>
+ </use>
+</pkgmetadata>