summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2018-07-27 05:02:26 +0200
committerHans de Graaff <graaff@gentoo.org>2018-07-27 05:02:59 +0200
commitb131ecc1536836398ec9f88718eda6a329130280 (patch)
treec55a40f28a18b6b0fdb0287191d459e2a9034e35 /dev-ruby/pcaprub
parentdev-python/pillow: fix link warnings (diff)
downloadgentoo-b131ecc1536836398ec9f88718eda6a329130280.tar.gz
gentoo-b131ecc1536836398ec9f88718eda6a329130280.tar.bz2
gentoo-b131ecc1536836398ec9f88718eda6a329130280.zip
dev-ruby/pcaprub: add 0.13.0
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-ruby/pcaprub')
-rw-r--r--dev-ruby/pcaprub/Manifest1
-rw-r--r--dev-ruby/pcaprub/pcaprub-0.13.0.ebuild33
2 files changed, 34 insertions, 0 deletions
diff --git a/dev-ruby/pcaprub/Manifest b/dev-ruby/pcaprub/Manifest
index 2cee5c2f3685..8983ed69ca5d 100644
--- a/dev-ruby/pcaprub/Manifest
+++ b/dev-ruby/pcaprub/Manifest
@@ -1 +1,2 @@
DIST pcaprub-0.12.4.gem 36864 BLAKE2B c2e86624431cc758059a997ebae716adb1d7de74ba62a375787608f6c68f7b85a614ec5859e251724475e1b68e8e90108f408a2e833f896461a95bda04d4d9ad SHA512 707221429dcdf95eba24076589054dd022ba8a479148c3ec8ce9667016225ee64bed13d3fdf8ebd46027244feec8e77a484c67f040d0439bfa44d9212997645b
+DIST pcaprub-0.13.0.gem 36864 BLAKE2B 0a0ca07da261de2e8bd7aaa131bbda9f6ee3cd5eb5fa214c552179c707d20345bcedc8db5d49590e69c41220e69f93a6d9f0b1c1b6f768c25ab648d50dead388 SHA512 6099996cca317194582a50ac89769d11ba802a9658c67f707e342b3c345bcaab26fba5ca2dc245a39eeb01f9ff6fdde1ae64a3a1ee4dd0e5243bae2ebed37e5f
diff --git a/dev-ruby/pcaprub/pcaprub-0.13.0.ebuild b/dev-ruby/pcaprub/pcaprub-0.13.0.ebuild
new file mode 100644
index 000000000000..d85148c26b66
--- /dev/null
+++ b/dev-ruby/pcaprub/pcaprub-0.13.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="FAQ.rdoc README.rdoc USAGE.rdoc"
+
+inherit multilib ruby-fakegem eapi7-ver
+
+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"
+
+# Tests require live access to a network device as root.
+RESTRICT="test"
+
+each_ruby_configure() {
+ ${RUBY} -Cext/pcaprub_c extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake -C ext/pcaprub_c V=1
+ cp ext/pcaprub_c/pcaprub_c$(get_modname) lib || die
+}