user/ruby3.2-webrick: drop due migration to ilot iports
This commit is contained in:
parent
9d6bf2f5a2
commit
8a2a28342a
2 changed files with 0 additions and 71 deletions
|
@ -1,58 +0,0 @@
|
|||
# Contributor: omni <omni+alpine@hack.org>
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=ruby3.2-webrick
|
||||
_gemname=webrick
|
||||
pkgver=1.8.1
|
||||
pkgrel=0
|
||||
pkgdesc="HTTP server toolkit for Ruby"
|
||||
url="https://github.com/ruby/webrick"
|
||||
arch="noarch"
|
||||
license="BSD-2-Clause"
|
||||
depends="ruby3.2"
|
||||
checkdepends="ruby3.2-rake ruby3.2-test-unit"
|
||||
makedepends="ruby3.2-rdoc"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://github.com/ruby/webrick/archive/v$pkgver/ruby-webrick-$pkgver.tar.gz
|
||||
gemspec.patch
|
||||
"
|
||||
builddir="$srcdir/$_gemname-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
sed -i '/require .bundler/d' Rakefile
|
||||
}
|
||||
|
||||
build() {
|
||||
gem build $_gemname.gemspec
|
||||
}
|
||||
|
||||
check() {
|
||||
rake test
|
||||
}
|
||||
|
||||
package() {
|
||||
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
|
||||
|
||||
gem install \
|
||||
--local \
|
||||
--install-dir "$gemdir" \
|
||||
--ignore-dependencies \
|
||||
--document ri \
|
||||
--verbose \
|
||||
$_gemname
|
||||
|
||||
# Remove unnessecary files
|
||||
cd "$gemdir"
|
||||
rm -rf build_info cache extensions plugins
|
||||
}
|
||||
|
||||
doc() {
|
||||
pkgdesc="$pkgdesc (ri docs)"
|
||||
|
||||
amove "$(ruby -e 'puts Gem.default_dir')"/doc
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
21cb396887025f85cfe04868e7fa7ef039809ca42a3acadfe1decb4dcd02eeeb3c9163e970324b56a9e0eb6202d971370af56e200c69de2d224c1941f866400c ruby-webrick-1.8.1.tar.gz
|
||||
5c657602228ba5aef4c272b75bc5d7c42855876811a49a7736bfa72b00d65a2bb550ea76ffcc2bc1e2ef9575796f5981eadd97cc92b1f3bf06c0105b8d166222 gemspec.patch
|
||||
"
|
|
@ -1,13 +0,0 @@
|
|||
--- a/webrick.gemspec
|
||||
+++ b/webrick.gemspec
|
||||
@@ -14,10 +14,6 @@
|
||||
|
||||
s.require_path = %w{lib}
|
||||
s.files = [
|
||||
- "Gemfile",
|
||||
- "LICENSE.txt",
|
||||
- "README.md",
|
||||
- "Rakefile",
|
||||
"lib/webrick.rb",
|
||||
"lib/webrick/accesslog.rb",
|
||||
"lib/webrick/cgi.rb",
|
Loading…
Reference in a new issue