summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-02-05 08:13:40 +0100
committerHans de Graaff <graaff@gentoo.org>2024-02-05 08:13:40 +0100
commit5f8bbef2b2e2da09b232dbcca01ca2eb1be53298 (patch)
tree38be105690837062aa4128783aad719c78ecf137 /dev-ruby/http-accept
parentdev-ruby/nokogiri: add 1.16.2 (diff)
downloadgentoo-5f8bbef2b2e2da09b232dbcca01ca2eb1be53298.tar.gz
gentoo-5f8bbef2b2e2da09b232dbcca01ca2eb1be53298.tar.bz2
gentoo-5f8bbef2b2e2da09b232dbcca01ca2eb1be53298.zip
dev-ruby/http-accept: add 2.2.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/http-accept')
-rw-r--r--dev-ruby/http-accept/Manifest1
-rw-r--r--dev-ruby/http-accept/http-accept-2.2.1.ebuild27
2 files changed, 28 insertions, 0 deletions
diff --git a/dev-ruby/http-accept/Manifest b/dev-ruby/http-accept/Manifest
index bc035fad5442..9f67a522e897 100644
--- a/dev-ruby/http-accept/Manifest
+++ b/dev-ruby/http-accept/Manifest
@@ -1,2 +1,3 @@
DIST http-accept-1.7.0.tar.gz 12289 BLAKE2B 5eda9bd29e2dd2b52c8f2589adf57872a80aaf93c37d28b1668dc24fc1e2fa81d00ec12766dd558691dbf3e6560bba013f456a659ead47fffd77b1565c186a7f SHA512 3502bfbd07f6bb0164843c728cd5ef27adfd675317fd60372539180de212d02d6d446cff8eb081d1cbe5a19b30d5759a55b22bc63736cea83254595bd691522f
DIST http-accept-2.2.0.tar.gz 14174 BLAKE2B b6fd0c065a1d9c798ebee8a2f82aa45738cf98721d42d9806614fd98c8ce5d571ce06ad3292e81a972e484f55c75c0e99c5ad54f138323b180bb9292f87b3049 SHA512 341b09b3f8ba132ba9394c904bbe7c95a91fe0b39b080ae96d8228b8474f2d7de6edf4d9dce0b16783ac12aa375b0cda99be67290656f3348219f52d66b7f120
+DIST http-accept-2.2.1.tar.gz 14323 BLAKE2B 9e14f2f23d87c28f234f1c18cf7780aa6c05caa7b7242a2c60ad11d0735fb67f65c162d72685f697f51bcc41f046068dfa612ea8bbf4bd10de6b1402075b92d6 SHA512 770c3b4c5d5b288bad88d6f53b9c52fc9935db5f9ef2e935ebb2dca4afca740f8731a38425acdd11fd9d5d51a8a0b087d392653dc675a349470f1e5ad4f2300d
diff --git a/dev-ruby/http-accept/http-accept-2.2.1.ebuild b/dev-ruby/http-accept/http-accept-2.2.1.ebuild
new file mode 100644
index 000000000000..132a37d10642
--- /dev/null
+++ b/dev-ruby/http-accept/http-accept-2.2.1.ebuild
@@ -0,0 +1,27 @@
+# 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="readme.md"
+RUBY_FAKEGEM_GEMSPEC="http-accept.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="sus"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Parse Accept and Accept-Language HTTP headers"
+HOMEPAGE="https://github.com/socketry/http-accept"
+SRC_URI="https://github.com/socketry/http-accept/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm64 ~ppc ~riscv ~x86"
+
+all_ruby_prepare() {
+ rm -f config/sus.rb || die
+
+ sed -e 's:_relative ": "./:' \
+ -e 's/git ls-files -z/find * -print0/' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}