public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/pcaprub/
Date: Tue, 30 Jul 2024 05:26:27 +0000 (UTC)	[thread overview]
Message-ID: <1722317173.f48288364e2ffa0eb53564ea60be37aa326f418f.graaff@gentoo> (raw)

commit:     f48288364e2ffa0eb53564ea60be37aa326f418f
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 30 05:25:19 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Jul 30 05:26:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4828836

dev-ruby/pcaprub: add 0.13.3

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/pcaprub/Manifest              |  1 +
 dev-ruby/pcaprub/pcaprub-0.13.3.ebuild | 68 ++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/dev-ruby/pcaprub/Manifest b/dev-ruby/pcaprub/Manifest
index fc224458750d..a0ef8a5204b3 100644
--- a/dev-ruby/pcaprub/Manifest
+++ b/dev-ruby/pcaprub/Manifest
@@ -1,2 +1,3 @@
 DIST pcaprub-0.13.1.gem 36864 BLAKE2B 8a0f035d2d66cb21b8314e1f855f18fa71824ffaaa3260faa90f71dbd55172701cf0105f8dce91f3107dd455b5480170a2490a2b5a13f25b46a390401fc8b8e0 SHA512 3079a5f7b29df502b5bbf0afdb7c670c9a43fbb4024163001018ebffd660597197cb0c146005f1ce027f00f2ba4c2e0430a8574cb10c4fac310a8b04411c53dd
 DIST pcaprub-0.13.2.gem 36864 BLAKE2B 1bb0f37faa0752a7cb9b5c76f071596cf11b2c52dc3d16cd1fb577d7467afff3b46a7e4bb53436677231418ed8c0f91c91970366d4040f9ddf0491e50c52dfe5 SHA512 1be60a684ead0a91bd113150ac426f86f30b906bc2a300ac334ac9cc323406e4680d9578070d9f39cb479d9a45c2e4f42c11db9ca5531f8d5dee8d1dfc01425f
+DIST pcaprub-0.13.3.gem 36864 BLAKE2B 89bb372611ff1c7cfd4fb5040119690506d09a3db56f3cefdcd28862be0424b47d64c3585b361ef975927e4c4d0c1fba805449fed36e6d294952aebf0c0a6a89 SHA512 7eaf948857981bae2f9beb3eb0f5e5ea1e30313280de53ab82d392bb471a21a1eb2ed3086f48e7a8b1cbc0a0c4d8f68388e01a79f04bf2c24bc13d11d67f74c0

diff --git a/dev-ruby/pcaprub/pcaprub-0.13.3.ebuild b/dev-ruby/pcaprub/pcaprub-0.13.3.ebuild
new file mode 100644
index 000000000000..7f11b6b93bdf
--- /dev/null
+++ b/dev-ruby/pcaprub/pcaprub-0.13.3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_EXTRADOC="FAQ.rdoc README.rdoc USAGE.rdoc"
+RUBY_FAKEGEM_EXTENSIONS=(ext/pcaprub_c/extconf.rb)
+RUBY_FAKEGEM_TASK_TEST="test"
+inherit ruby-fakegem
+
+DESCRIPTION="Libpcap bindings for ruby compat"
+HOMEPAGE="https://rubygems.org/gems/pcaprub"
+
+LICENSE="LGPL-2.1"
+SLOT="$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~arm ~x86"
+
+DEPEND="net-libs/libpcap"
+RDEPEND="net-libs/libpcap"
+
+ruby_add_bdepend "
+	test? (
+		>=dev-ruby/rake-compiler-0.6.0
+		dev-ruby/shoulda-context
+	)
+"
+
+all_ruby_prepare() {
+	sed -i \
+		-e '/\(minitest\|shoulda-context\)/s:~>:>=:' \
+		-e '/coveralls/d' \
+		-e '/rubygems-tasks/d' \
+		-e '/gem.*git/d' \
+		Gemfile || die
+
+	sed -i \
+		-e '/rubygems\/tasks/d' \
+		-e '/Gem::Tasks/d' \
+		-e "/^require 'git'/,/end/ s/^/#/" \
+		Rakefile || die
+
+	sed -i -e '/coveralls/Id' test/test_helper.rb || die
+
+	# Tests which need escalated privileges, network interfaces or other devices
+	local privileged_tests=(
+		test_set_datalink
+		test_create_from_primitives
+		test_filter
+		test_lookupdev
+		test_lookupnet
+		test_monitor
+		test_pcap_stats
+		test_pcap_datalink
+		test_pcap_inject
+		test_pcap_next
+		test_pcap_setfilter
+		test_pcap_snapshot
+	)
+
+	local privileged_tests_expr=$(printf "%s\|" "${privileged_tests[@]}")
+	privileged_tests_expr="${privileged_tests_expr::-2}"
+
+	sed -i \
+		-e "/def \(${privileged_tests_expr}\)/,/^  end/s/^/#/" \
+		test/test_pcaprub_unit.rb || die
+}


             reply	other threads:[~2024-07-30  5:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30  5:26 Hans de Graaff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-30  5:26 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/pcaprub/ Hans de Graaff
2024-04-24 11:56 Hans de Graaff
2024-04-24  5:44 Hans de Graaff
2024-01-26  8:01 Hans de Graaff
2023-07-11  7:47 Hans de Graaff
2023-04-03  5:08 Sam James
2023-03-27 13:25 Sam James
2023-03-27 13:25 Sam James
2021-10-30  5:16 Hans de Graaff
2021-10-26  4:38 Hans de Graaff
2021-04-10  6:17 Hans de Graaff
2020-08-01  9:05 Hans de Graaff
2019-01-28 21:45 Hans de Graaff
2018-07-27  3:03 Hans de Graaff
2018-02-24  8:49 Hans de Graaff
2018-01-22 19:26 Hans de Graaff
2018-01-22 19:26 Hans de Graaff
2016-05-29  5:47 Hans de Graaff
2016-05-29  5:47 Hans de Graaff
2016-05-29  5:47 Hans de Graaff
2016-01-21  6:53 Hans de Graaff
2015-09-06 20:39 Richard Farina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1722317173.f48288364e2ffa0eb53564ea60be37aa326f418f.graaff@gentoo \
    --to=graaff@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox