summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-03-02 03:10:21 +0000
committerSam James <sam@gentoo.org>2024-03-02 03:10:21 +0000
commit4e083544999a4b2eb22ef64ecaa3d837f71dac3d (patch)
tree797d1b33bade935fde510b02c0fe836fe765f804 /sys-apps/bfs
parentdev-debug/bpftrace: add 0.20.1 (diff)
downloadgentoo-4e083544999a4b2eb22ef64ecaa3d837f71dac3d.tar.gz
gentoo-4e083544999a4b2eb22ef64ecaa3d837f71dac3d.tar.bz2
gentoo-4e083544999a4b2eb22ef64ecaa3d837f71dac3d.zip
sys-apps/bfs: add 3.1.2
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.2.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/sys-apps/bfs/Manifest b/sys-apps/bfs/Manifest
index 1a54b8d1e4cf..57aa3855a69c 100644
--- a/sys-apps/bfs/Manifest
+++ b/sys-apps/bfs/Manifest
@@ -1,2 +1,3 @@
DIST bfs-3.1.1.tar.gz 234742 BLAKE2B efb0cd9ceb6105697983bb91d1ce7e149afbb372e6df03d76d63e0922fcd0542675a55cc18cbbb44134d4ae07dc72beb0d64ce848919d5b5f152c378af2b7d4b SHA512 98696cead293281d3b7f29e01abaa6c8de83a8ea32353fcb5ec11daad47692e67b40e4f402cd5012782203101133e8ba42dd9e3c678a2b1066f65dc0145ec1b8
+DIST bfs-3.1.2.tar.gz 237571 BLAKE2B 48051f50bcc11a06c542f21e33a858903c80d6950651c022d2a909e5da3f8813659f08937b202b11753ea132388899f3ebc66d28751682f0bfbfa9cf13e3938f SHA512 324a32067b2ae4ed50f166c783c28f16048ac33c8457eda5acc4ea86f25b3c0268c96c3d7c3230e1dde75fee72d41e7d4d53371d5fb6a95b2a9c812d079d1ad5
DIST bfs-3.1.tar.gz 234153 BLAKE2B a5b501016b1513dc9a3964ed4167db37c9a810e49a565059275919d234becf4f66300bdade48f3cde69a952ed0a6c68ee7f4adaf0e500e433f8cf75cc76f3db2 SHA512 d2be9d931d2a53fb292431551cc881103584a75d444f91d4e7d92dffe781aa9cdeda7281ab0c7598e8bfdd944b1392e345eff4bd2e60ea5ae65491f8860d862d
diff --git a/sys-apps/bfs/bfs-3.1.2.ebuild b/sys-apps/bfs/bfs-3.1.2.ebuild
new file mode 100644
index 000000000000..ba8cd9bde472
--- /dev/null
+++ b/sys-apps/bfs/bfs-3.1.2.ebuild
@@ -0,0 +1,46 @@
+# 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 ~arm ~arm64 ~ppc ~ppc64 ~sparc"
+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}"
+
+bfsmake() {
+ 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_compile() {
+ tc-export CC
+ use debug || append-cppflags -DNDEBUG
+
+ bfsmake
+}
+
+src_test() {
+ # -n check gets confused so need manual src_test definition?
+ bfsmake check
+}