summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-04-20 09:41:52 +0200
committerHans de Graaff <graaff@gentoo.org>2024-04-20 09:47:11 +0200
commitd0ce5bb94792b05742a3f1983c1594b0cd044637 (patch)
tree73e3b406fca7c04f5cf038cb328e7765b43524b8 /www-servers
parentwww-apps/nanoc-checking: add 1.0.4 (diff)
downloadgentoo-d0ce5bb94792b05742a3f1983c1594b0cd044637.tar.gz
gentoo-d0ce5bb94792b05742a3f1983c1594b0cd044637.tar.bz2
gentoo-d0ce5bb94792b05742a3f1983c1594b0cd044637.zip
www-servers/adsf: add 1.5.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/adsf/Manifest1
-rw-r--r--www-servers/adsf/adsf-1.5.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/www-servers/adsf/Manifest b/www-servers/adsf/Manifest
index 6e310198ffcc..3d8238915004 100644
--- a/www-servers/adsf/Manifest
+++ b/www-servers/adsf/Manifest
@@ -1,2 +1,3 @@
DIST adsf-1.4.6.tar.gz 172010 BLAKE2B ebe73723403f60d6eb98719e3149e401a70016ca4693d452ba02fc67bd48b176507ee67ebee36aed96046b13c2b194ac920f4ad87f069a379bdacdb5899e1d94 SHA512 22c579cb47917ccf85de2b459bd7bac681b77929e89ab5ba701515d2b44897513cf953db12b85b821f56c1594ed20c156498a35d1a463307a7b9959f54dd419d
DIST adsf-1.4.8.tar.gz 174680 BLAKE2B b9b17992d88867e7d1681bec40ab200030f964bd47988661f85bad91492255a093bee393ea17f25acec69395260b0dc93eb0ee4c0e36f9d0b14fc04a00278eea SHA512 2cdb530620fe1f50703ce6a06be2d537b5ca6b9c684964c21ee531fac683655537dfee670f18271c6428a053f12a9cea1247f5deef6b96562b35b3cc20cf61fc
+DIST adsf-1.5.0.tar.gz 175804 BLAKE2B d6e0173d9fff05ad089ad8cb5136ddc8dbb506c9f942aea12237d90455acaa959c4e1ae8bfb7f0fda392e34b6dca68a6a02b1c01ab64ae219a13a51ad936e361 SHA512 13fc104c338b762ad690dbeee71effe2c1afde87b3391727fd4553fde3623ba9af6ff46fefb95c92fce10395781e48dc9f3798e9ece885d69f004ecf16947af7
diff --git a/www-servers/adsf/adsf-1.5.0.ebuild b/www-servers/adsf/adsf-1.5.0.ebuild
new file mode 100644
index 000000000000..035766ba9122
--- /dev/null
+++ b/www-servers/adsf/adsf-1.5.0.ebuild
@@ -0,0 +1,44 @@
+# 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="NEWS.md ../README.md"
+
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+RUBY_FAKEGEM_GEMSPEC="adsf.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A Dead Simple Fileserver is a static file server that can launch in a directory"
+HOMEPAGE="https://github.com/denisdefreyne/adsf/"
+SRC_URI="https://github.com/denisdefreyne/adsf/archive/${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="${P}/adsf"
+LICENSE="MIT"
+
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+IUSE="test"
+
+ruby_add_rdepend "
+ || ( dev-ruby/rack:3.0 dev-ruby/rack:2.2 )
+ >=dev-ruby/rackup-2.1:2
+"
+
+ruby_add_bdepend "test? ( dev-ruby/rack-test )"
+
+all_ruby_prepare() {
+ sed -i -e '/simplecov/,/SimpleCov.command_name/ s:^:#:' \
+ -e '/websocket/ s:^:#:' test/helper.rb || die
+ sed -e '/test_receives_update/,/^ end/ s:^:#:' \
+ -e '/test_non_local_interfaces/askip "networking"' \
+ -e '/test_default_config__serve_index_html_in_subdir_missing_slash/askip "encoding"' \
+ -e /'test_auto_extenion__defers_to_subdir_with_index/askip "encoding"' \
+ -i test/test_server.rb || die
+ sed -i -e '/rubocop/I s:^:#:' Rakefile || die
+ rm -f test/test_version.rb || die
+
+ sed -i -e "s:require_relative ':require './:" ${RUBY_FAKEGEM_GEMSPEC} || die
+}