From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-ruby/packetfu/Manifest | 3 ++ dev-ruby/packetfu/metadata.xml | 15 +++++++++ dev-ruby/packetfu/packetfu-1.1.13.ebuild | 54 ++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 dev-ruby/packetfu/Manifest create mode 100644 dev-ruby/packetfu/metadata.xml create mode 100644 dev-ruby/packetfu/packetfu-1.1.13.ebuild (limited to 'dev-ruby/packetfu') diff --git a/dev-ruby/packetfu/Manifest b/dev-ruby/packetfu/Manifest new file mode 100644 index 000000000000..b4cc66cc1a1b --- /dev/null +++ b/dev-ruby/packetfu/Manifest @@ -0,0 +1,3 @@ +DIST packetfu-1.1.13.gem 769024 BLAKE2B 6fa53680dec76c14c6cd73cac4e57acf2da5aaa2a9a6371d0b9fbea1e764d9e2eda09fcf0ad245eb62340fa0d3047e525ba290d4c45ff4739e28fd5782659cd6 SHA512 c3ee67bfd597dcd197f213361ab94c614136304d8746de45b99322c1b6878eaef7c4a2ebc19be658d891df3e7d261476def27ae14990157dc6cb466815bd6f15 +EBUILD packetfu-1.1.13.ebuild 1460 BLAKE2B 1017f75d1300edf686853a9800c45806baaf3a2faa5df8fca796921520ccd69a45e6c936908347f442de369c8756be02e681ecc26ad59f289c9513fd219ece3f SHA512 f760a75f734cf01b6b4f0bf901c122db603661b175d5eca1528a624588a1700dc542cb142a2cbb05aa1c1b8ea9c17148514f447eb136606ed6abdb1c0d878a34 +MISC metadata.xml 434 BLAKE2B fe58a2b87ac8c12d9086d60060e2677e9128a03b0225035b8f8257d0630305d67b6df990dc4955123fc860b0ac2bbaf7ee159aa37269790ed213c8b29924b3cc SHA512 3f354e2902da8e6a4a8637260f1d3f600d15a3a942fef3456274d8fb8704f0608193f390f46f479387faf8b33b46b4b567f84411f1aa157cf2e09d5d00f1e8e4 diff --git a/dev-ruby/packetfu/metadata.xml b/dev-ruby/packetfu/metadata.xml new file mode 100644 index 000000000000..ec8cfaae2294 --- /dev/null +++ b/dev-ruby/packetfu/metadata.xml @@ -0,0 +1,15 @@ + + + + + zerochaos@gentoo.org + Rick Farina + + + ruby@gentoo.org + Gentoo Ruby Project + + + packetfu + + diff --git a/dev-ruby/packetfu/packetfu-1.1.13.ebuild b/dev-ruby/packetfu/packetfu-1.1.13.ebuild new file mode 100644 index 000000000000..28b5036705d7 --- /dev/null +++ b/dev-ruby/packetfu/packetfu-1.1.13.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22 ruby23 ruby24" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRAINSTALL="examples" +RUBY_FAKEGEM_EXTRADOC="README.md" + +inherit multilib ruby-fakegem + +DESCRIPTION="A mid-level packet manipulation library" +HOMEPAGE="https://rubygems.org/gems/packetfu" + +LICENSE="BSD" +SLOT="${PV}" +KEYWORDS="~amd64 ~arm ~x86" + +ruby_add_rdepend " + dev-ruby/network_interface:0 + dev-ruby/pcaprub:0.12 +" + +ruby_add_bdepend "test? ( >=dev-ruby/rspec-its-1.2.0:1 ) + dev-ruby/bundler" +DEPEND="${DEPEND} !dev-ruby/packetfu:0" + +all_ruby_prepare() { + [ -f Gemfile.lock ] && rm Gemfile.lock + #For now, we don't support development or testing at all + #if ! use development; then + sed -i -e "/^group :development do/,/^end$/d" Gemfile || die + sed -i -e "/s.add_development_dependency/d" "${PN}".gemspec || die + sed -i -e "/spec.add_development_dependency/d" "${PN}".gemspec || die + #fi + #if ! use test; then + sed -i -e "/^group :test do/,/^end$/d" Gemfile || die + #fi + #if ! use test && ! use development; then + sed -i -e "/^group :development, :test do/,/^end$/d" Gemfile || die + #fi + sed -i -e '/[Cc]overalls/d' spec/spec_helper.rb || die +} + +each_ruby_prepare() { + if [ -f Gemfile ] + then + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die + BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die + fi +} -- cgit v1.2.3