1 |
commit: b1474a60c37899431f546b6a327a360da42fb940 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 19 05:45:52 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 19 05:45:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1474a60 |
7 |
|
8 |
dev-ruby/git: add 1.12.0 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
|
12 |
dev-ruby/git/Manifest | 1 + |
13 |
dev-ruby/git/git-1.12.0.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 43 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/git/Manifest b/dev-ruby/git/Manifest |
17 |
index 6ff924a106bc..5c646bb20156 100644 |
18 |
--- a/dev-ruby/git/Manifest |
19 |
+++ b/dev-ruby/git/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST git-1.10.2.tar.gz 212738 BLAKE2B 4059066fac1a22e8f19ecce1ebaed648fedc30767b91cb38cf9cf4c9f7091f55f5e9682183e188357dd12ed06dc1ad905d9b688db0c536623487e3c5431ba6f8 SHA512 5d8150a8f974c9b9f531d169e2899b311965a9e9d48d1e45c8bb778a48ea0887ccecf7681baf7cbfad4d22509ba0aafb9886559565e918b84f740b3da7430d86 |
22 |
DIST git-1.11.0.tar.gz 214161 BLAKE2B 69471f89fddf18bf31d74e318141046395281ba64de1f91fd49cb866508dca9cf7c568c113ed7d7e928bf1d7dfdb0e130a193d4069b87155a4dbc046d6dd6ce9 SHA512 a71da8890622b6ad5a341908e968040ef6c00e2f9edd0bfee1a0c1e9f110cc12b9c01015605b0fb902fdf04fab6011adfbffcf5e8f853c550bff7c263d2e6bd6 |
23 |
+DIST git-1.12.0.tar.gz 218472 BLAKE2B f5e0465fd2f0f2f1eb1584da6757c012cf80457a15e61b9a974707c8f026f34940d86b25fdd708b9fa6071fc35e8e65c6c87bc83b94bb0daec61ef015a03184c SHA512 9967bf6c9f00e29442495fb24abfd1ea3b6ad0068829e9d86727d41ecf07be0b8fbdc6d05b3c245a23223b4e35e87e984e7a60a5883839e6de45f8bdac406b0d |
24 |
|
25 |
diff --git a/dev-ruby/git/git-1.12.0.ebuild b/dev-ruby/git/git-1.12.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..8d159ddd965c |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/git/git-1.12.0.ebuild |
30 |
@@ -0,0 +1,42 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+USE_RUBY="ruby27 ruby30 ruby31" |
36 |
+ |
37 |
+RUBY_FAKEGEM_BINWRAP="" |
38 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" |
39 |
+ |
40 |
+RUBY_FAKEGEM_GEMSPEC="git.gemspec" |
41 |
+ |
42 |
+inherit ruby-fakegem |
43 |
+ |
44 |
+DESCRIPTION="Library for using Git in Ruby" |
45 |
+HOMEPAGE="https://github.com/schacon/ruby-git" |
46 |
+SRC_URI="https://github.com/schacon/ruby-git/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+RUBY_S="ruby-git-${PV}" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
52 |
+IUSE="test" |
53 |
+ |
54 |
+DEPEND+="test? ( >=dev-vcs/git-1.6.0.0 app-arch/tar )" |
55 |
+RDEPEND+=">=dev-vcs/git-1.6.0.0" |
56 |
+ |
57 |
+ruby_add_rdepend ">=dev-ruby/addressable-2.8:0 >=dev-ruby/rchardet-1.8:1" |
58 |
+ |
59 |
+ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/minitar dev-ruby/test-unit:2 )" |
60 |
+ |
61 |
+all_ruby_prepare() { |
62 |
+ # Don't use hardcoded /tmp directory. |
63 |
+ sed -i -e "s:/tmp:${TMPDIR}:" tests/units/test_archive.rb tests/test_helper.rb || die |
64 |
+ |
65 |
+ sed -i -e 's/__dir__/"."/' -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die |
66 |
+} |
67 |
+ |
68 |
+each_ruby_test() { |
69 |
+ git config --global user.email "git@×××××××.com" || die |
70 |
+ git config --global user.name "GitExample" || die |
71 |
+ ${RUBY} -Ilib:.:test -e 'Dir["tests/**/test_*.rb"].each {|f| require f}' || die |
72 |
+} |