commit:     65c48de84e88951210cc36db7c54a21bd47f0d7d
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  4 00:31:24 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sun Dec  4 00:32:30 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65c48de8

sys-apps/the_silver_searcher: version bump to 1.0.1

 sys-apps/the_silver_searcher/Manifest              |  1 +
 .../files/the_silver_searcher-1.0.1-tests.patch    | 17 ++++++++
 .../the_silver_searcher-1.0.1.ebuild               | 48 ++++++++++++++++++++++
 3 files changed, 66 insertions(+)

diff --git a/sys-apps/the_silver_searcher/Manifest 
b/sys-apps/the_silver_searcher/Manifest
index e572b91..47c7392 100644
--- a/sys-apps/the_silver_searcher/Manifest
+++ b/sys-apps/the_silver_searcher/Manifest
@@ -1,2 +1,3 @@
 DIST the_silver_searcher-0.32.0.tar.gz 152041 SHA256 
c5b208572e5cfc8a3cf366e8eb337b0c673c2ffa90c1ad90dfdcbe78251ba4cc SHA512 
c5664205844f17d7739742949524d42f7ff403884a1bb13b32c9a14bde76d5129259d26a782057adf340ea1afc0caa6bd7b51d59caf795937389ff88f3a373bc
 WHIRLPOOL 
85b284bf928a4cf5e28014678f01450c1083f15b08837069c4d4097122c84122a558f6175789131198fb003715b7dc030b48957d76cb7e00624d499812ce065f
 DIST the_silver_searcher-0.33.0.tar.gz 153459 SHA256 
351ab79ada811fd08f81296de10a7498ea3c46b681d73696d5a2911edbdc19db SHA512 
7ce2eb32f2ed1f49c53de13f9edb755c43b8915424039c242b4ce947ac9c54094f285fd1018386bdb6bcf3dd088f9d943e0c4d22d82b9b2387a9664fc20a6ca3
 WHIRLPOOL 
f93bbf2dd7f2ddae4e8aaad37ad0994585e3dfcbdaa1df57a225b9af2aa4232f8b45d1c5a1f28c47333097fe16350d0f1b1dffade3371a47f049e4d0517e4848
+DIST the_silver_searcher-1.0.1.tar.gz 156764 SHA256 
a79e6b024c6c756589b0d5ffbffe65983c750a07099d28aa5036d47a9feec86b SHA512 
4d9d7f32a8268112636d9aac33f9b7fb3e2730cec1db70ffe246f2feb7d5c66150d44862f71e3ab02d35b9f0748db09c3e69c9769cda37a2a431af808dbb50c8
 WHIRLPOOL 
888d06fb25b5ffde2289a2e91f7dcc1c97dd2bafdd67dbb32baa84f51178211fa2c3fb07da94b89ed5cbdb412954b62b2e6de2efd5c4ac8fac6b9a7c348a2b76

diff --git 
a/sys-apps/the_silver_searcher/files/the_silver_searcher-1.0.1-tests.patch 
b/sys-apps/the_silver_searcher/files/the_silver_searcher-1.0.1-tests.patch
new file mode 100644
index 00000000..b281594
--- /dev/null
+++ b/sys-apps/the_silver_searcher/files/the_silver_searcher-1.0.1-tests.patch
@@ -0,0 +1,17 @@
+Drop the last test since it has file sorting issues.
+
+--- the_silver_searcher-1.0.1/tests/empty_match.t
++++ the_silver_searcher-1.0.1/tests/empty_match.t
+@@ -11,12 +11,3 @@
+ A genuine zero-length match should succeed:
+   $ ag "^" nonempty.txt
+   1:foo
+-
+-Empty files should be listed with --unrestricted --files-with-matches (-ul)
+-  $ ag -lu --stats | sed '$d' # Remove the last line about timing which will 
differ
+-  empty.txt
+-  nonempty.txt
+-  2 matches
+-  2 files contained matches
+-  2 files searched
+-  4 bytes searched

diff --git a/sys-apps/the_silver_searcher/the_silver_searcher-1.0.1.ebuild 
b/sys-apps/the_silver_searcher/the_silver_searcher-1.0.1.ebuild
new file mode 100644
index 00000000..a5255e1
--- /dev/null
+++ b/sys-apps/the_silver_searcher/the_silver_searcher-1.0.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools bash-completion-r1
+
+DESCRIPTION="A code-searching tool similar to ack, but faster"
+HOMEPAGE="https://github.com/ggreer/the_silver_searcher";
+SRC_URI="https://github.com/ggreer/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="lzma test zlib"
+
+RDEPEND="dev-libs/libpcre
+       lzma? ( app-arch/xz-utils )
+       zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       test? ( dev-util/cram )"
+
+DOCS="README.md"
+
+PATCHES=( "${FILESDIR}"/${P}-tests.patch )
+
+src_prepare() {
+       sed '/^dist_bashcomp/d' -i Makefile.am || die
+
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable lzma) \
+               $(use_enable zlib)
+}
+
+src_test() {
+       cram -v tests/*.t || die "tests failed"
+}
+
+src_install() {
+       default
+       newbashcomp ag.bashcomp.sh ag
+}

Reply via email to