diff options
Diffstat (limited to 'gnu/packages/ruby.scm')
| -rw-r--r-- | gnu/packages/ruby.scm | 99 |
1 files changed, 78 insertions, 21 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 8f38389719b..44e2c7c0ca9 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm | |||
| @@ -12095,29 +12095,86 @@ defined in @file{.travis.yml} on your local machine, using @code{rvm}, | |||
| 12095 | (license license:expat))) | 12095 | (license license:expat))) |
| 12096 | 12096 | ||
| 12097 | (define-public ruby-rugged | 12097 | (define-public ruby-rugged |
| 12098 | (package | 12098 | ;; The last release is old and doesn't build anymore (see: |
| 12099 | (name "ruby-rugged") | 12099 | ;; https://github.com/libgit2/rugged/issues/951). |
| 12100 | (version "1.1.0") | 12100 | (let ((commit "6379f23cedd5f527cf6a5c229627e366b590a22d") |
| 12101 | (home-page "https://www.rubydoc.info/gems/rugged") | 12101 | (revision "0")) |
| 12102 | (source | 12102 | (package |
| 12103 | (origin | 12103 | (name "ruby-rugged") |
| 12104 | (method url-fetch) | 12104 | (version (git-version "1.6.2" revision commit)) |
| 12105 | (uri (rubygems-uri "rugged" version)) | 12105 | (source (origin |
| 12106 | (sha256 | 12106 | (method git-fetch) |
| 12107 | (base32 "04aq913plcxjw71l5r62qgz3bx3466p0wvgyfqahg5n3nybmcwqy")))) | 12107 | (uri (git-reference |
| 12108 | (build-system ruby-build-system) | 12108 | (url "https://github.com/libgit2/rugged") |
| 12109 | (arguments | 12109 | (commit commit))) |
| 12110 | `(#:tests? #f | 12110 | (file-name (git-file-name name version)) |
| 12111 | #:gem-flags (list "--" "--use-system-libraries"))) | 12111 | (sha256 |
| 12112 | (inputs | 12112 | (base32 |
| 12113 | (list libgit2)) | 12113 | "0yac7vm0l2jsdsxf2k7xbny4iyzsy8fhiy2g5sphhffp7xgynny8")))) |
| 12114 | (native-inputs | 12114 | (build-system ruby-build-system) |
| 12115 | (list ruby-minitest ruby-pry ruby-rake-compiler)) | 12115 | (arguments |
| 12116 | (synopsis "Ruby bindings to the libgit2 linkable C Git library") | 12116 | (list #:gem-flags |
| 12117 | (description "Rugged is a library for accessing libgit2 in Ruby. It gives | 12117 | #~(list "--" "--use-system-libraries") |
| 12118 | #:phases | ||
| 12119 | #~(modify-phases %standard-phases | ||
| 12120 | (add-after 'unpack 'adjust-extconf.rb | ||
| 12121 | (lambda _ | ||
| 12122 | ;; Neither using --with-git2-dir=$prefix nor providing | ||
| 12123 | ;; pkg-config allows locating the libgit2 prefix (see: | ||
| 12124 | ;; https://github.com/libgit2/rugged/issues/955). | ||
| 12125 | (substitute* "ext/rugged/extconf.rb" | ||
| 12126 | (("LIBGIT2_DIR = File.join.*'vendor', 'libgit2'.*") | ||
| 12127 | (format #f "LIBGIT2_DIR = ~s~%" | ||
| 12128 | #$(this-package-input "libgit2")))))) | ||
| 12129 | (delete 'check) ;moved after the install phase | ||
| 12130 | (add-after 'install 'check | ||
| 12131 | (assoc-ref %standard-phases 'check)) | ||
| 12132 | (add-before 'check 'set-GEM_PATH | ||
| 12133 | (lambda _ | ||
| 12134 | (setenv "GEM_PATH" (string-append | ||
| 12135 | (getenv "GEM_PATH") ":" | ||
| 12136 | #$output "/lib/ruby/vendor_ruby")))) | ||
| 12137 | (add-before 'check 'disable-problematic-tests | ||
| 12138 | (lambda _ | ||
| 12139 | (with-directory-excursion "test" | ||
| 12140 | (for-each delete-file | ||
| 12141 | ;; These tests require an actual libgit2 git | ||
| 12142 | ;; repository checkout. | ||
| 12143 | '("blame_test.rb" | ||
| 12144 | "blob_test.rb" | ||
| 12145 | "cherrypick_test.rb" | ||
| 12146 | "config_test.rb" | ||
| 12147 | "commit_test.rb" | ||
| 12148 | "diff_test.rb" | ||
| 12149 | "index_test.rb" | ||
| 12150 | "merge_test.rb" | ||
| 12151 | "note_test.rb" | ||
| 12152 | "object_test.rb" | ||
| 12153 | "patch_test.rb" | ||
| 12154 | "rebase_test.rb" | ||
| 12155 | "reference_test.rb" | ||
| 12156 | "remote_test.rb" | ||
| 12157 | "repo_apply_test.rb" | ||
| 12158 | "repo_ignore_test.rb" | ||
| 12159 | "repo_pack_test.rb" | ||
| 12160 | "repo_reset_test.rb" | ||
| 12161 | "repo_test.rb" | ||
| 12162 | "revert_test.rb" | ||
| 12163 | "settings_test.rb" | ||
| 12164 | "status_test.rb" | ||
| 12165 | "submodule_test.rb" | ||
| 12166 | "tag_test.rb" | ||
| 12167 | "tree_test.rb" | ||
| 12168 | "walker_test.rb")) | ||
| 12169 | (delete-file-recursively "online"))))))) | ||
| 12170 | (native-inputs (list git-minimal/pinned ruby-rake-compiler)) | ||
| 12171 | (inputs (list libgit2)) | ||
| 12172 | (synopsis "Ruby bindings to the libgit2 linkable C Git library") | ||
| 12173 | (description "Rugged is a library for accessing libgit2 in Ruby. It gives | ||
| 12118 | you the speed and portability of libgit2 with the beauty of the Ruby | 12174 | you the speed and portability of libgit2 with the beauty of the Ruby |
| 12119 | language.") | 12175 | language.") |
| 12120 | (license license:expat))) | 12176 | (home-page "https://www.rubydoc.info/gems/rugged") |
| 12177 | (license license:expat)))) | ||
| 12121 | 12178 | ||
| 12122 | (define-public ruby-yell | 12179 | (define-public ruby-yell |
| 12123 | (package | 12180 | (package |
