summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-10-20 07:34:32 +0200
committerHans de Graaff <graaff@gentoo.org>2023-10-20 07:34:32 +0200
commit44e166261fc3619d79123e609082f28d8aca1602 (patch)
tree7f9532f3d77cf17a1d6d7f97feaa472a31f62a71 /www-servers/adsf
parentdev-ruby/selenium-webdriver: add 4.14.0 (diff)
downloadgentoo-44e166261fc3619d79123e609082f28d8aca1602.tar.gz
gentoo-44e166261fc3619d79123e609082f28d8aca1602.tar.bz2
gentoo-44e166261fc3619d79123e609082f28d8aca1602.zip
www-servers/adsf: add 1.4.8
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'www-servers/adsf')
-rw-r--r--www-servers/adsf/Manifest1
-rw-r--r--www-servers/adsf/adsf-1.4.8.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/www-servers/adsf/Manifest b/www-servers/adsf/Manifest
index bb3beb362df0..6e310198ffcc 100644
--- a/www-servers/adsf/Manifest
+++ b/www-servers/adsf/Manifest
@@ -1 +1,2 @@
DIST adsf-1.4.6.tar.gz 172010 BLAKE2B ebe73723403f60d6eb98719e3149e401a70016ca4693d452ba02fc67bd48b176507ee67ebee36aed96046b13c2b194ac920f4ad87f069a379bdacdb5899e1d94 SHA512 22c579cb47917ccf85de2b459bd7bac681b77929e89ab5ba701515d2b44897513cf953db12b85b821f56c1594ed20c156498a35d1a463307a7b9959f54dd419d
+DIST adsf-1.4.8.tar.gz 174680 BLAKE2B b9b17992d88867e7d1681bec40ab200030f964bd47988661f85bad91492255a093bee393ea17f25acec69395260b0dc93eb0ee4c0e36f9d0b14fc04a00278eea SHA512 2cdb530620fe1f50703ce6a06be2d537b5ca6b9c684964c21ee531fac683655537dfee670f18271c6428a053f12a9cea1247f5deef6b96562b35b3cc20cf61fc
diff --git a/www-servers/adsf/adsf-1.4.8.ebuild b/www-servers/adsf/adsf-1.4.8.ebuild
new file mode 100644
index 000000000000..409a4354929d
--- /dev/null
+++ b/www-servers/adsf/adsf-1.4.8.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+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"
+
+KEYWORDS="~amd64 ~riscv"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend ">=dev-ruby/rack-1.0.0:* >=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"' \
+ -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
+}