mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
61 lines
2.6 KiB
Text
61 lines
2.6 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ruby-http_parser.rb
|
|
_gemname=http_parser.rb
|
|
pkgver=0.6.0
|
|
pkgrel=0
|
|
pkgdesc="A simple callback-based HTTP request/response parser"
|
|
url="https://github.com/tmm1/http_parser.rb"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="ruby"
|
|
checkdepends="ruby-json ruby-rspec"
|
|
makedepends="http-parser-dev ruby-dev"
|
|
source="https://github.com/tmm1/http_parser.rb/archive/v$pkgver/$pkgname-$pkgver.tar.gz
|
|
$pkgname-rspec3.patch::https://github.com/tmm1/http_parser.rb/commit/ef98c2388f057459a93d59d464faf1a87853af82.patch
|
|
$pkgname-better-handling-on-upgraded-connections.patch::https://github.com/tmm1/http_parser.rb/commit/f5bcf4a96d03180bcad981a2511dbe28a1686d86.patch
|
|
$pkgname-fix-line-folder-spec.patch::https://github.com/tmm1/http_parser.rb/commit/3deb5d35c287edfefd8cd1e8ef48630cc446777f.patch
|
|
remove-broken-test.patch
|
|
use-system-libhttp_parser.patch
|
|
gemspec.patch
|
|
"
|
|
builddir="$srcdir/$_gemname-$pkgver"
|
|
|
|
build() {
|
|
gem build $_gemname.gemspec
|
|
gem install \
|
|
--local \
|
|
--install-dir dist \
|
|
--ignore-dependencies \
|
|
--no-document \
|
|
--verbose \
|
|
$_gemname
|
|
}
|
|
|
|
check() {
|
|
GEM_PATH='./dist' rspec .
|
|
}
|
|
|
|
package() {
|
|
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
|
|
cd "$builddir"/dist
|
|
|
|
mkdir -p "$gemdir"
|
|
cp -r extensions gems specifications "$gemdir"/
|
|
|
|
# Remove unnecessary files and rubbish...
|
|
find "$gemdir"/extensions/ -name mkmf.log -delete
|
|
|
|
cd "$gemdir"/gems/$_gemname-$pkgver
|
|
rm -r ext/ lib/*.so
|
|
}
|
|
|
|
sha512sums="
|
|
1c9067849f520949dea0d076f220e73a419f4e57c59e696c1033e7d717a152b01e15fd14db7ca993ea4695c29ab6e239b96b62d5e6fc461217e80c720d63775a ruby-http_parser.rb-0.6.0.tar.gz
|
|
e689ea54e7f050eb2a9c657774aa21d437470bc0cf2c0621ad3ef70dbe232d175ae6b18b2d0de48e3ed58c1f0ab2e7edddd33734e08cb852b4f5b081aff5760d ruby-http_parser.rb-rspec3.patch
|
|
1127a3687039cbecebc296438aabee4b595907ae3cd54509e524e2f7dab73452621969649cc55e68cd80d93581e4f3f0e09df393c19d6e46fd5874459ce39bb9 ruby-http_parser.rb-better-handling-on-upgraded-connections.patch
|
|
7a13e614cb68c7b368e3687fb5b7d158d301c5d29eb0555cd1738b882fd111e0fd019ff938a60e7b61c7c36b999e3fef7a973898277842ababb6ad31becbd92e ruby-http_parser.rb-fix-line-folder-spec.patch
|
|
a38617de20295f4629f159b9b54b9a7ac7e42ff5940b1a9864dbf4a990be8f28f92348583eef176bae0909e1ff36f2d633e80eb3f4a48a8b72574bd1abf08bbc remove-broken-test.patch
|
|
871599f1ca75bb1e2ec6803aca0b126743370dee6080913d84c690d8823b181518d0b1ce2b77b70454f680014216f59f9808ce06fdb5deb4bae28da55e68e2c1 use-system-libhttp_parser.patch
|
|
1077f46cf1a5d714370285c823a496dcac7bb27b7d438adfabacda9990d00b3833d455bf00e2a12bdb7f856dde475dfb2cac1ec2db734f805c5fb836973ebe21 gemspec.patch
|
|
"
|