summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-02-07 03:05:21 +0000
committerSam James <sam@gentoo.org>2024-02-07 03:07:32 +0000
commit9ebf30331f8fe2fef39b05fdb2b78c059187399c (patch)
tree3621b549cd055d362ea55120ace3f4158ef34c48 /sys-apps/bfs
parentx11-drivers/nvidia-drivers: move nvidia-powerd behind IUSE=powerd (diff)
downloadgentoo-9ebf30331f8fe2fef39b05fdb2b78c059187399c.tar.gz
gentoo-9ebf30331f8fe2fef39b05fdb2b78c059187399c.tar.bz2
gentoo-9ebf30331f8fe2fef39b05fdb2b78c059187399c.zip
sys-apps/bfs: new package, add 3.1
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/bfs')
-rw-r--r--sys-apps/bfs/Manifest1
-rw-r--r--sys-apps/bfs/bfs-3.1.ebuild41
-rw-r--r--sys-apps/bfs/metadata.xml14
3 files changed, 56 insertions, 0 deletions
diff --git a/sys-apps/bfs/Manifest b/sys-apps/bfs/Manifest
new file mode 100644
index 000000000000..e73be02918bd
--- /dev/null
+++ b/sys-apps/bfs/Manifest
@@ -0,0 +1 @@
+DIST bfs-3.1.tar.gz 234153 BLAKE2B a5b501016b1513dc9a3964ed4167db37c9a810e49a565059275919d234becf4f66300bdade48f3cde69a952ed0a6c68ee7f4adaf0e500e433f8cf75cc76f3db2 SHA512 d2be9d931d2a53fb292431551cc881103584a75d444f91d4e7d92dffe781aa9cdeda7281ab0c7598e8bfdd944b1392e345eff4bd2e60ea5ae65491f8860d862d
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>