summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2017-05-16 04:08:18 -0400
committerTim Harder <radhermit@gentoo.org>2017-05-16 04:09:20 -0400
commit0e32979cec78c8022ecbfb795d09e95a2aa5e38a (patch)
tree342973df877bd002b1491b1edfae71a1519fdcb9 /sys-apps/ripgrep/ripgrep-0.5.2.ebuild
parentmedia-gfx/imageworsener: x86 stable wrt bug #618014 (diff)
downloadgentoo-0e32979cec78c8022ecbfb795d09e95a2aa5e38a.tar.gz
gentoo-0e32979cec78c8022ecbfb795d09e95a2aa5e38a.tar.bz2
gentoo-0e32979cec78c8022ecbfb795d09e95a2aa5e38a.zip
sys-apps/ripgrep: version bump to 0.5.2
Diffstat (limited to 'sys-apps/ripgrep/ripgrep-0.5.2.ebuild')
-rw-r--r--sys-apps/ripgrep/ripgrep-0.5.2.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/sys-apps/ripgrep/ripgrep-0.5.2.ebuild b/sys-apps/ripgrep/ripgrep-0.5.2.ebuild
new file mode 100644
index 00000000000..8445e52f2c6
--- /dev/null
+++ b/sys-apps/ripgrep/ripgrep-0.5.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+ >=dev-lang/rust-1.11
+"
+
+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
+}