commit:     960e5f38fc5d6b18929a78f8c341af59a9d410b6
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 27 23:55:36 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Oct 28 06:02:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=960e5f38

sys-apps/ugrep: new package, add 7.5.0

Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 sys-apps/ugrep/Manifest           |  1 +
 sys-apps/ugrep/metadata.xml       | 14 +++++++++++
 sys-apps/ugrep/ugrep-7.5.0.ebuild | 52 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)

diff --git a/sys-apps/ugrep/Manifest b/sys-apps/ugrep/Manifest
new file mode 100644
index 000000000000..f6ba1ba22619
--- /dev/null
+++ b/sys-apps/ugrep/Manifest
@@ -0,0 +1 @@
+DIST ugrep-7.5.0.tar.gz 7172209 BLAKE2B 
2816cc15b89cdc3f668ae8ec54024bd07abe5be2d642c18caee57f48b481ce4d82e18b397a2dbe1452d6d099f021ee811c0693817f2448aa2d196c512031f78c
 SHA512 
4069aa12534d06cf6dbe10fa490c92462f6ab4c44afc140ada2f3376614a1c03cd7519fa4ae7fd36c9b3ad1ba70a2d4447aba46e45fe0ef18fcb612bf2df9ee1

diff --git a/sys-apps/ugrep/metadata.xml b/sys-apps/ugrep/metadata.xml
new file mode 100644
index 000000000000..954250a7208f
--- /dev/null
+++ b/sys-apps/ugrep/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>[email protected]</email>
+               <name>Eli Schwartz</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">Genivia/ugrep</remote-id>
+       </upstream>
+       <use>
+               <flag name="bzip3">Support for .bz3 files using 
<pkg>app-arch/bzip3</pkg>.</flag>
+       </use>
+</pkgmetadata>

diff --git a/sys-apps/ugrep/ugrep-7.5.0.ebuild 
b/sys-apps/ugrep/ugrep-7.5.0.ebuild
new file mode 100644
index 000000000000..cfd424f4296b
--- /dev/null
+++ b/sys-apps/ugrep/ugrep-7.5.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A more powerful, ultra fast, user-friendly, compatible grep"
+HOMEPAGE="https://ugrep.com/";
+SRC_URI="https://github.com/Genivia/ugrep/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="cpu_flags_arm_neon cpu_flags_x86_avx2 cpu_flags_x86_sse2 brotli bzip3 
+pcre"
+
+# Technically all are configure opts, but for standard compression formats
+# I'm not sure we need a billion USE flags.
+# pcre is not slotted since slot is for -lpcre2-posix which we don't need.
+DEPEND="
+       app-arch/bzip2:=
+       app-arch/lz4:=
+       app-arch/xz-utils:=
+       app-arch/zstd:=
+       sys-libs/zlib:=
+       brotli? ( app-arch/brotli:= )
+       bzip3? ( app-arch/bzip3:= )
+       pcre? ( dev-libs/libpcre2 )
+
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+"
+
+src_configure() {
+       local myeconfargs=(
+               $(use_enable cpu_flags_arm_neon neon)
+               $(use_enable cpu_flags_x86_avx2 avx2)
+               $(use_enable cpu_flags_x86_sse2 sse2)
+               $(use_with brotli)
+               $(use_with bzip3)
+               $(use_with pcre pcre2)
+               # completely broken
+               --without-boost-regex
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_test() {
+       # https://github.com/Genivia/ugrep/pull/515
+       emake test
+}

Reply via email to