1 |
commit: d3671a6f28c7c7c5ad328c9cdcb7a722ebf474d2 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 1 07:13:12 2016 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 1 07:16:15 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3671a6f |
7 |
|
8 |
sys-apps/ripgrep: use custom tarball with all deps and index bundled |
9 |
|
10 |
Fixes offline builds. |
11 |
|
12 |
sys-apps/ripgrep/Manifest | 2 +- |
13 |
.../{ripgrep-0.2.5.ebuild => ripgrep-0.2.5-r1.ebuild} | 15 +++++++++++---- |
14 |
2 files changed, 12 insertions(+), 5 deletions(-) |
15 |
|
16 |
diff --git a/sys-apps/ripgrep/Manifest b/sys-apps/ripgrep/Manifest |
17 |
index 5c805b9..19845f5 100644 |
18 |
--- a/sys-apps/ripgrep/Manifest |
19 |
+++ b/sys-apps/ripgrep/Manifest |
20 |
@@ -1 +1 @@ |
21 |
-DIST ripgrep-0.2.5.tar.gz 389606 SHA256 2e535701ed4c36875a29041b4a47629af514182177b82d681a8e4d0fed4a9767 SHA512 c5359ab5120ed355c8e72fded34c311440b357244be6b3950732953b8b6cd558d429e4c6e86737983bdea9118f58e4f26048c4b2374559cf8e14146afcc20fec WHIRLPOOL c5ead5378942cf9f75bd1681e9d18e58704597dc7512c50edfbf3600d326519fa8493fa7d61addef81b19650fdfcd000a5dbfd905f5d50194ad88a062fefe4c4 |
22 |
+DIST ripgrep-0.2.5.tar.xz 36327796 SHA256 af30c197e8ed4779288023b4b197ebd481f5c644be1ac18495c91556989da5f8 SHA512 4ce2374f677110bc61ac1ee0511a9e801f21f414ba3bf809b3020e82a2a26a7deeff45fea1edc8d20353023e95074899262db2f84e0cd822103dc60b55f39216 WHIRLPOOL e0a50bc59142aa74ecfc93c2089d6916aba6af15d33d9dbd9f7fa7c790b5fa9f46b757419c9db3abd4d17eba6d0e17c6b5a83ceb6842d8a7d57722ef1e6862ff |
23 |
|
24 |
diff --git a/sys-apps/ripgrep/ripgrep-0.2.5.ebuild b/sys-apps/ripgrep/ripgrep-0.2.5-r1.ebuild |
25 |
similarity index 57% |
26 |
rename from sys-apps/ripgrep/ripgrep-0.2.5.ebuild |
27 |
rename to sys-apps/ripgrep/ripgrep-0.2.5-r1.ebuild |
28 |
index 82208a0..11fc9da 100644 |
29 |
--- a/sys-apps/ripgrep/ripgrep-0.2.5.ebuild |
30 |
+++ b/sys-apps/ripgrep/ripgrep-0.2.5-r1.ebuild |
31 |
@@ -4,11 +4,11 @@ |
32 |
|
33 |
EAPI=6 |
34 |
|
35 |
-inherit cargo |
36 |
- |
37 |
DESCRIPTION="a command line search tool that combines usability with raw speed" |
38 |
HOMEPAGE="https://github.com/BurntSushi/ripgrep" |
39 |
-SRC_URI="https://github.com/BurntSushi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+#SRC_URI="https://github.com/BurntSushi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+# custom tarball bundling all deps and index, otherwise cargo fetches from the network |
42 |
+SRC_URI="http://dev.gentoo.org/~radhermit/dist/${P}.tar.xz" |
43 |
|
44 |
LICENSE="|| ( MIT Unlicense )" |
45 |
SLOT="0" |
46 |
@@ -16,8 +16,15 @@ KEYWORDS="~amd64 ~x86" |
47 |
|
48 |
DEPEND="dev-util/cargo" |
49 |
|
50 |
+src_prepare() { |
51 |
+ default |
52 |
+ |
53 |
+ # move cache dir where cargo expects it |
54 |
+ mv .cargo "${HOME}" || die |
55 |
+} |
56 |
+ |
57 |
src_compile() { |
58 |
- cargo build --release || die |
59 |
+ cargo build --release --verbose || die |
60 |
} |
61 |
|
62 |
src_test() { |