From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1626336-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4A0271581E7 for <garchives@archives.gentoo.org>; Mon, 29 Apr 2024 21:27:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8834EE2A19; Mon, 29 Apr 2024 21:27:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 63CBFE2A19 for <gentoo-commits@lists.gentoo.org>; Mon, 29 Apr 2024 21:27:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6B9E53430B7 for <gentoo-commits@lists.gentoo.org>; Mon, 29 Apr 2024 21:27:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 84FE9177E for <gentoo-commits@lists.gentoo.org>; Mon, 29 Apr 2024 21:27:42 +0000 (UTC) From: "David Roman" <davidroman96@gmail.com> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" <davidroman96@gmail.com> Message-ID: <1714350024.ff0fec1c7e71afc5a9c9067b4fc9376618c8092e.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-apps/ugrep/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-apps/ugrep/Manifest sys-apps/ugrep/metadata.xml sys-apps/ugrep/ugrep-5.1.4.ebuild X-VCS-Directories: sys-apps/ugrep/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: ff0fec1c7e71afc5a9c9067b4fc9376618c8092e X-VCS-Branch: master Date: Mon, 29 Apr 2024 21:27:42 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e4b31311-c54e-42bd-bbc4-2acc34d686e3 X-Archives-Hash: 28b65d8ccd4f27565ab6c0c7df73fb4e commit: ff0fec1c7e71afc5a9c9067b4fc9376618c8092e Author: Christopher Fore <csfore <AT> posteo <DOT> net> AuthorDate: Mon Apr 29 00:20:24 2024 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Mon Apr 29 00:20:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ff0fec1c sys-apps/ugrep: new package, add 5.1.4 - Tests pass Signed-off-by: Christopher Fore <csfore <AT> posteo.net> sys-apps/ugrep/Manifest | 1 + sys-apps/ugrep/metadata.xml | 17 ++++++++++ sys-apps/ugrep/ugrep-5.1.4.ebuild | 66 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) diff --git a/sys-apps/ugrep/Manifest b/sys-apps/ugrep/Manifest new file mode 100644 index 0000000000..be28280c3f --- /dev/null +++ b/sys-apps/ugrep/Manifest @@ -0,0 +1 @@ +DIST ugrep-5.1.4.tar.gz 6280906 BLAKE2B 3f6e1a20ec9a5a012d3152562d1792a6c4c49dd0874976128ea408e39269ac6df60f6879e631b8471594c2ed840c46b68de0ce5b0e6f5197b665783e39bbde39 SHA512 d746c77a22a98c2719cc7b443351a3d27f0f2712a2be483596965cc2b6127f28b9e564ca32db1fea950a6315053c89440912d4b7311073bd97d7702f02521378 diff --git a/sys-apps/ugrep/metadata.xml b/sys-apps/ugrep/metadata.xml new file mode 100644 index 0000000000..fc2bf4ae17 --- /dev/null +++ b/sys-apps/ugrep/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>csfore@posteo.net</email> + <name>Christopher Fore</name> + </maintainer> + <upstream> + <remote-id type="github">Genivia/ugrep</remote-id> + </upstream> + <use> + <flag name="7zip">Adds support for 7zip packages.</flag> + <flag name="boost">Uses <pkg>dev-libs/boost</pkg> for regular expression parsing.</flag> + <flag name="bzip3">Adds support for bzip3 packages using <pkg>app-arch/bzip3</pkg>.</flag> + <flag name="pcre2">Uses <pkg>dev-libs/libpcre2</pkg> for regular expression parsing.</flag> + </use> +</pkgmetadata> diff --git a/sys-apps/ugrep/ugrep-5.1.4.ebuild b/sys-apps/ugrep/ugrep-5.1.4.ebuild new file mode 100644 index 0000000000..72e7599f12 --- /dev/null +++ b/sys-apps/ugrep/ugrep-5.1.4.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit shell-completion + +DESCRIPTION="A fast, drop-in replacement for GNU grep" +HOMEPAGE="https://ugrep.com/" +SRC_URI="https://github.com/Genivia/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="7zip brotli boost bzip3 cpu_flags_arm_neon cpu_flags_x86_avx2 cpu_flags_x86_sse2 +lzma lz4 +mmap +pcre2 +zlib zstd" + +COMMON_DEPEND=" + brotli? ( app-arch/brotli ) + boost? ( dev-libs/boost ) + bzip3? ( app-arch/bzip3 ) + lz4? ( app-arch/lz4 ) + lzma? ( app-arch/xz-utils ) + pcre2? ( dev-libs/libpcre2 ) + zlib? ( sys-libs/zlib ) + zstd? ( app-arch/zstd ) +" + +RDEPEND="${COMMON_DEPEND}" + +DEPEND=" + ${COMMON_DEPEND} + virtual/pkgconfig" + +src_configure() { + local myeconfargs=( + $(usev !cpu_flags_arm_neon '--disable-neon') + $(usev !cpu_flags_x86_avx2 '--disable-avx2') + $(usev !cpu_flags_x86_sse2 '--disable-sse2') + + $(use_enable 7zip) + $(use_enable mmap) + + $(use_with brotli) + $(use_with bzip3) + $(use_with pcre2) + $(use_with lzma) + $(use_with lz4) + $(use_with zlib) + $(use_with zstd) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + dobashcomp "${S}"/completions/bash/* + dofishcomp "${S}"/completions/fish/* + dozshcomp "${S}"/completions/zsh/_* +} + +src_test() { + # emake check is run first by default in Portage but + # that doesn't actually run the tests, emake test does + emake test +}