From d3671a6f28c7c7c5ad328c9cdcb7a722ebf474d2 Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Tue, 1 Nov 2016 03:13:12 -0400 Subject: sys-apps/ripgrep: use custom tarball with all deps and index bundled Fixes offline builds. --- sys-apps/ripgrep/Manifest | 2 +- sys-apps/ripgrep/ripgrep-0.2.5-r1.ebuild | 38 ++++++++++++++++++++++++++++++++ sys-apps/ripgrep/ripgrep-0.2.5.ebuild | 31 -------------------------- 3 files changed, 39 insertions(+), 32 deletions(-) create mode 100644 sys-apps/ripgrep/ripgrep-0.2.5-r1.ebuild delete mode 100644 sys-apps/ripgrep/ripgrep-0.2.5.ebuild (limited to 'sys-apps') diff --git a/sys-apps/ripgrep/Manifest b/sys-apps/ripgrep/Manifest index 5c805b92edf0..19845f5190d5 100644 --- a/sys-apps/ripgrep/Manifest +++ b/sys-apps/ripgrep/Manifest @@ -1 +1 @@ -DIST ripgrep-0.2.5.tar.gz 389606 SHA256 2e535701ed4c36875a29041b4a47629af514182177b82d681a8e4d0fed4a9767 SHA512 c5359ab5120ed355c8e72fded34c311440b357244be6b3950732953b8b6cd558d429e4c6e86737983bdea9118f58e4f26048c4b2374559cf8e14146afcc20fec WHIRLPOOL c5ead5378942cf9f75bd1681e9d18e58704597dc7512c50edfbf3600d326519fa8493fa7d61addef81b19650fdfcd000a5dbfd905f5d50194ad88a062fefe4c4 +DIST ripgrep-0.2.5.tar.xz 36327796 SHA256 af30c197e8ed4779288023b4b197ebd481f5c644be1ac18495c91556989da5f8 SHA512 4ce2374f677110bc61ac1ee0511a9e801f21f414ba3bf809b3020e82a2a26a7deeff45fea1edc8d20353023e95074899262db2f84e0cd822103dc60b55f39216 WHIRLPOOL e0a50bc59142aa74ecfc93c2089d6916aba6af15d33d9dbd9f7fa7c790b5fa9f46b757419c9db3abd4d17eba6d0e17c6b5a83ceb6842d8a7d57722ef1e6862ff diff --git a/sys-apps/ripgrep/ripgrep-0.2.5-r1.ebuild b/sys-apps/ripgrep/ripgrep-0.2.5-r1.ebuild new file mode 100644 index 000000000000..11fc9daa0f8e --- /dev/null +++ b/sys-apps/ripgrep/ripgrep-0.2.5-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="a command line search tool that combines usability with raw speed" +HOMEPAGE="https://github.com/BurntSushi/ripgrep" +#SRC_URI="https://github.com/BurntSushi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +# custom tarball bundling all deps and index, otherwise cargo fetches from the network +SRC_URI="http://dev.gentoo.org/~radhermit/dist/${P}.tar.xz" + +LICENSE="|| ( MIT Unlicense )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-util/cargo" + +src_prepare() { + default + + # move cache dir where cargo expects it + mv .cargo "${HOME}" || die +} + +src_compile() { + cargo build --release --verbose || die +} + +src_test() { + cargo test || die "tests failed" +} + +src_install() { + dobin target/release/rg + doman doc/rg.1 + dodoc CHANGELOG.md README.md +} diff --git a/sys-apps/ripgrep/ripgrep-0.2.5.ebuild b/sys-apps/ripgrep/ripgrep-0.2.5.ebuild deleted file mode 100644 index 82208a01fb3e..000000000000 --- a/sys-apps/ripgrep/ripgrep-0.2.5.ebuild +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 - -inherit cargo - -DESCRIPTION="a command line search tool that combines usability with raw speed" -HOMEPAGE="https://github.com/BurntSushi/ripgrep" -SRC_URI="https://github.com/BurntSushi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="|| ( MIT Unlicense )" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -DEPEND="dev-util/cargo" - -src_compile() { - cargo build --release || die -} - -src_test() { - cargo test || die "tests failed" -} - -src_install() { - dobin target/release/rg - doman doc/rg.1 - dodoc CHANGELOG.md README.md -} -- cgit v1.2.3-65-gdbad