summaryrefslogtreecommitdiff
path: root/dev-ruby/puppet_forge
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-09-09 10:33:02 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-09-09 10:33:02 +0100
commit6440e1dd038e7df4f9df7dd5127d3b1c6f39034e (patch)
tree122c8899fbcce481ff7c1deb35c872f0236affa9 /dev-ruby/puppet_forge
parente7bc5cacb1abeb6806d255e2a817ab4dcb5f52b8 (diff)
gentoo auto-resync : 09:09:2023 - 10:33:01
Diffstat (limited to 'dev-ruby/puppet_forge')
-rw-r--r--dev-ruby/puppet_forge/Manifest5
-rw-r--r--dev-ruby/puppet_forge/files/puppet_forge-5.0.1-typhoeus.patch14
-rw-r--r--dev-ruby/puppet_forge/puppet_forge-4.1.0.ebuild38
-rw-r--r--dev-ruby/puppet_forge/puppet_forge-5.0.1-r1.ebuild37
4 files changed, 94 insertions, 0 deletions
diff --git a/dev-ruby/puppet_forge/Manifest b/dev-ruby/puppet_forge/Manifest
index bf097ba6ad4a..9d56cdc98892 100644
--- a/dev-ruby/puppet_forge/Manifest
+++ b/dev-ruby/puppet_forge/Manifest
@@ -1,3 +1,8 @@
+AUX puppet_forge-5.0.1-typhoeus.patch 626 BLAKE2B 6eb5f313a792cff16a5ca7ad6719f5e3e0d1900dc761234631b963e79cd9fb1577a2113654ea1f52a6eff962a59b4633c0f66595cdbfdda410ab639ce327781c SHA512 f002f898207f82053431d997dd751f1d4e6bdce341ee275ef0adfeb0308bbfc46c578df1715152d796ad213e8a45a99086d7c96efe753a2ecb67a4becc73ec02
DIST puppet_forge-3.2.0.gem 771072 BLAKE2B dd304297aa65dc0f36f837e27abf255a0474fc2216fa72ac3203febeb4085024f4d155e93a91646d1e7828fe67a5a421b2c75bb638deb846c5d337dfe11eafc9 SHA512 dfa82d96f44fb8247f39155c942bf20aec6a4a2833959c877ec98b150553076dd72112b6d1230fa7ae1acef7f648017a8446c3e952680f8d4a6411d2fc8055dc
+DIST puppet_forge-4.1.0.gem 772096 BLAKE2B 2d6f0af8baa067f79eb113f0de9596c562cdda678587fdd1cb14960535ded5fdbafb2b5ff0ebbd6ae676fb10d766f949b599b43c9b04dac55fc28b8163ef1383 SHA512 f752069d8b1998b3d27745abe3e6ad87a24ef614a68b52af2235a0587f98c69d8e39d2637640431f64d5c91ce468e3a2e2452b6ce8fa91d83b00c20ad047ae33
+DIST puppet_forge-5.0.1.gem 774144 BLAKE2B 2770c0609d93b3518017b36344025dbd7ab51360fea4af8f7ee610f4117f31de25698ad192ab00755564f0a57d9e6b041a7568440dbc5b47e2830a8cb00cd8f8 SHA512 3d29c166e1c22d7b4d45251866fbd8e6756a3026be5e17b1abe8cd6baaa7af4ddde7f2d07b75c21c5716c545cc6df82e36b1070a43a3d3c363214d3a5102843b
EBUILD puppet_forge-3.2.0.ebuild 911 BLAKE2B 6b22c70ceaa8ed7c9665e0b536e54aaeb74ab3e45d7c0a3ef4c30d2d7aefc2db09368d150ae6769c5d92111887b6da01986d5acccff3ec390de49e142478f3a4 SHA512 68380ca4dc36573584837d089043f0265b801615004753516832dd7c95a7ed278ebe2f462bed4799e1de53c347c8b659726735bf7d6d67fe38b337634faecf4c
+EBUILD puppet_forge-4.1.0.ebuild 1006 BLAKE2B ef82783f38d4b71c5637a847281d5c2a9eab2b30c26f4293302b7d84824f175b0fb1cef2a56deaa624729110126235f2a5d5802bac562e2b07b15e69071a25b3 SHA512 50ed51eaabccb9289af072403b879d3a49bae7536708b13f27399610205aed9987cf428df4556e627eca5e1ac1eb6a6d00aab4d8ba0b98bdea7573e5b912f131
+EBUILD puppet_forge-5.0.1-r1.ebuild 910 BLAKE2B b6a2ffc63738119760fb0648b69f1a73bbde470aebc17406ae363b965957e6f99d706dd1ba5c576cb59c8cf688621f728933ff0b6b9539cafa4cbe5508f30b21 SHA512 1d2afddf375238a48cc1e8a6f9af97b456abb978d784ba0b0199c0aa558cfe733932fcf16b44831d469e9c693c7d8ee8563498d5df02e9423f6fd1a682d0f832
MISC metadata.xml 570 BLAKE2B 34720e4ded1a16b1d177684f1241999043eb3c15bac2c5463be03ba38dfd0d61b769251f598a80a707947d325fc4a8f86227e6a60d2b40c83ffae8a70b0ca276 SHA512 f28a1e45ea6a5acdf6180d18c732717e348d1077fa43752721778a7b203c071592c91bbddfc5f4d867ce3d4c81f6384e844fc6ae31d46fec9786d5c091481f5a
diff --git a/dev-ruby/puppet_forge/files/puppet_forge-5.0.1-typhoeus.patch b/dev-ruby/puppet_forge/files/puppet_forge-5.0.1-typhoeus.patch
new file mode 100644
index 000000000000..3f39e97afe8c
--- /dev/null
+++ b/dev-ruby/puppet_forge/files/puppet_forge-5.0.1-typhoeus.patch
@@ -0,0 +1,14 @@
+Typhoeus support only works then the faraday-typhoeus package is installed.
+https://github.com/typhoeus/typhoeus/issues/709
+
+--- a/lib/puppet_forge/connection.rb 2023-09-09 09:02:03.981164238 +0200
++++ b/lib/puppet_forge/connection.rb 2023-09-09 09:03:56.506144279 +0200
+@@ -82,7 +82,7 @@
+
+ begin
+ # Use Typhoeus if available.
+- Gem::Specification.find_by_name('typhoeus', '~> 1.4')
++ Gem::Specification.find_by_name('typhoeus', '~> 1.4') && Gem::Specification.find_by_name('faraday-typhoeus')
+ require 'typhoeus/adapters/faraday'
+ adapter = :typhoeus
+ rescue Gem::LoadError
diff --git a/dev-ruby/puppet_forge/puppet_forge-4.1.0.ebuild b/dev-ruby/puppet_forge/puppet_forge-4.1.0.ebuild
new file mode 100644
index 000000000000..ff6f1063b086
--- /dev/null
+++ b/dev-ruby/puppet_forge/puppet_forge-4.1.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Tools to access Forge API information on Modules, Users, and Releases"
+HOMEPAGE="https://github.com/puppetlabs/forge-ruby"
+
+LICENSE="Apache-2.0"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+ dev-ruby/faraday:2
+ >=dev-ruby/faraday-follow_redirects-0.3.0:0.3
+ dev-ruby/minitar
+ =dev-ruby/semantic_puppet-1*
+"
+
+all_ruby_prepare() {
+ # Avoid integration and user specs since they all require network access
+ rm -rf spec/integration spec/unit/forge/v3/user_spec.rb || die
+
+ sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Avoid specs that are broken when typhoeus is installed
+ rm -f spec/unit/forge/connection_spec.rb spec/unit/forge/v3/{base,release}_spec.rb || die
+}
diff --git a/dev-ruby/puppet_forge/puppet_forge-5.0.1-r1.ebuild b/dev-ruby/puppet_forge/puppet_forge-5.0.1-r1.ebuild
new file mode 100644
index 000000000000..dc80c18aca40
--- /dev/null
+++ b/dev-ruby/puppet_forge/puppet_forge-5.0.1-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Tools to access Forge API information on Modules, Users, and Releases"
+HOMEPAGE="https://github.com/puppetlabs/forge-ruby"
+
+LICENSE="Apache-2.0"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+PATCHES=( "${FILESDIR}/${P}-typhoeus.patch" )
+
+ruby_add_rdepend "
+ dev-ruby/faraday:2
+ >=dev-ruby/faraday-follow_redirects-0.3.0:0.3
+ dev-ruby/minitar
+ =dev-ruby/semantic_puppet-1*
+"
+
+all_ruby_prepare() {
+ # Avoid integration and user specs since they all require network access
+ rm -rf spec/integration spec/unit/forge/v3/user_spec.rb || die
+
+ sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}