diff options
| author | Ben Woodcroft <donttrustben@gmail.com> | 2016-06-07 22:03:26 +1000 |
|---|---|---|
| committer | Ben Woodcroft <donttrustben@gmail.com> | 2016-06-21 21:46:45 +1000 |
| commit | 9270298f7521eb5ca654186c44a8b203f4584d62 (patch) | |
| tree | c01389ae39704188a8bd982aa920b631621d2153 /gnu/packages/ruby.scm | |
| parent | b08134907d98057d9cf2e1bfbd6afb067af15045 (diff) | |
gnu: Add ruby-puma.
gnu/packages/ruby.scm (ruby-puma): New variable.
gnu/packages/patches/ruby-puma-ignore-broken-test.patch: New file.
gnu/local.mk (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/ruby.scm')
| -rw-r--r-- | gnu/packages/ruby.scm | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 2f4348a8bc7..877f229fe11 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm | |||
| @@ -3939,6 +3939,47 @@ part of the Prawn PDF generator.") | |||
| 3939 | ;; for details." | 3939 | ;; for details." |
| 3940 | (license (list license:gpl2 license:gpl3 license:ruby)))) | 3940 | (license (list license:gpl2 license:gpl3 license:ruby)))) |
| 3941 | 3941 | ||
| 3942 | (define-public ruby-puma | ||
| 3943 | (package | ||
| 3944 | (name "ruby-puma") | ||
| 3945 | (version "3.4.0") | ||
| 3946 | (source | ||
| 3947 | (origin | ||
| 3948 | (method url-fetch) | ||
| 3949 | ;; Fetch from GitHub because distributed gem does not contain tests. | ||
| 3950 | (uri (string-append "https://github.com/puma/puma/archive/v" | ||
| 3951 | version ".tar.gz")) | ||
| 3952 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 3953 | (sha256 | ||
| 3954 | (base32 | ||
| 3955 | "10svyj2jk949y1dmkxyzipk1ddzl4iz9limrcws1zhpganpvq3j8")) | ||
| 3956 | ;; Ignore broken test reported upstream. | ||
| 3957 | ;; https://github.com/puma/puma/issues/995 | ||
| 3958 | (patches (search-patches "ruby-puma-ignore-broken-test.patch")))) | ||
| 3959 | (build-system ruby-build-system) | ||
| 3960 | (arguments | ||
| 3961 | `(#:phases | ||
| 3962 | (modify-phases %standard-phases | ||
| 3963 | (add-before 'build 'fix-gemspec | ||
| 3964 | (lambda _ | ||
| 3965 | (substitute* "puma.gemspec" | ||
| 3966 | (("git ls-files") "find * |sort")) | ||
| 3967 | #t))))) | ||
| 3968 | (native-inputs | ||
| 3969 | `(("ruby-hoe" ,ruby-hoe) | ||
| 3970 | ("ruby-rake-compiler" ,ruby-rake-compiler) | ||
| 3971 | ("ruby-hoe-git" ,ruby-hoe-git) | ||
| 3972 | ("ruby-rack" ,ruby-rack))) | ||
| 3973 | (synopsis "Simple, concurrent HTTP server for Ruby/Rack") | ||
| 3974 | (description | ||
| 3975 | "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server | ||
| 3976 | for Ruby/Rack applications. Puma is intended for use in both development and | ||
| 3977 | production environments. In order to get the best throughput, it is highly | ||
| 3978 | recommended that you use a Ruby implementation with real threads like Rubinius | ||
| 3979 | or JRuby.") | ||
| 3980 | (home-page "http://puma.io") | ||
| 3981 | (license license:expat))) | ||
| 3982 | |||
| 3942 | (define-public ruby-hoe-git | 3983 | (define-public ruby-hoe-git |
| 3943 | (package | 3984 | (package |
| 3944 | (name "ruby-hoe-git") | 3985 | (name "ruby-hoe-git") |
