1 |
commit: a7402a02d208c581684fc9b1a041ee4225aa921f |
2 |
Author: Jan Chren <dev.rindeal <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jun 23 20:49:14 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 26 11:17:22 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7402a02 |
7 |
|
8 |
sys-apps/miller: bump to v4.2.0. |
9 |
|
10 |
Also add manpage. |
11 |
|
12 |
Closes: https://github.com/gentoo/gentoo/pull/1733 |
13 |
|
14 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
15 |
|
16 |
sys-apps/miller/Manifest | 1 + |
17 |
sys-apps/miller/miller-4.2.0.ebuild | 61 +++++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 62 insertions(+) |
19 |
|
20 |
diff --git a/sys-apps/miller/Manifest b/sys-apps/miller/Manifest |
21 |
index 945c2fb..b6205c2 100644 |
22 |
--- a/sys-apps/miller/Manifest |
23 |
+++ b/sys-apps/miller/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST miller-4.0.0.tar.gz 3320261 SHA256 c702eb3423e96fb2f39d6339117fd7678ac1b63258d0bd9b8c76859993ec1a0c SHA512 13612c18ad1d995797a760618fe4ca44c845c03f35df79cc5e981fd9d224ba60b0f3dc57ae454d32877711d216b32de5c22520cd9906f9866a5b59a3f488edb2 WHIRLPOOL d6b7851436572ba1dfb83fac362408195d242065d5547e85363a809514bafab2d5085da1813048fa34616ecf879bf9b026630567e672b152dcfa26e427d99f1a |
26 |
+DIST miller-4.2.0.tar.gz 3373505 SHA256 2758a2364daad8672c4da85698b328f20178539d5f5d5866b19518cce1c83487 SHA512 f176dc2ce4e733ac1e4e331f17554d4ed089344a5f571bcc9d4b3b227f6c950fa0355f1a5b934e4f9467d9a22448e2842c586a4e6c424a98ec89170cd70b1714 WHIRLPOOL 8514bc6bde3cd3598caeb6e123ff7cec26a464818f6be43ddb51e43c8cee25f42403b3355ad5cfd11355788b8824ee497a12fb1172620935a17b28979f62fad2 |
27 |
|
28 |
diff --git a/sys-apps/miller/miller-4.2.0.ebuild b/sys-apps/miller/miller-4.2.0.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000..8b6e03c |
31 |
--- /dev/null |
32 |
+++ b/sys-apps/miller/miller-4.2.0.ebuild |
33 |
@@ -0,0 +1,61 @@ |
34 |
+# Copyright 1999-2016 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Id$ |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit autotools |
41 |
+ |
42 |
+DESCRIPTION="A tool like sed, awk, cut, join, and sort for name-indexed data (CSV, JSON, ..)" |
43 |
+HOMEPAGE="http://johnkerl.org/miller" |
44 |
+LICENSE="BSD-2" |
45 |
+ |
46 |
+SLOT="0" |
47 |
+SRC_URI="https://github.com/johnkerl/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ |
49 |
+KEYWORDS="~amd64 ~arm ~x86" |
50 |
+IUSE="doc test" |
51 |
+ |
52 |
+DEPEND="sys-devel/flex" |
53 |
+ |
54 |
+my_for_each_test_dir() { |
55 |
+ local test_dirs=( c/{reg,unit}_test ) |
56 |
+ if use test ; then |
57 |
+ for d in "${test_dirs[@]}" ; do |
58 |
+ pushd "${d}" >/dev/null || die |
59 |
+ "${@}" || die |
60 |
+ popd >/dev/null || die |
61 |
+ done |
62 |
+ fi |
63 |
+} |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ |
68 |
+ local sed_args=( |
69 |
+ # respect FLAGS |
70 |
+ -e '/.*FLAGS[^=]*=/ s:(-g|-pg|-O[0-9]) ::g' |
71 |
+ ) |
72 |
+ find -type f -name "Makefile.am" | xargs sed -r "${sed_args[@]}" -i -- |
73 |
+ assert |
74 |
+ |
75 |
+ # disable docs rebuilding as they're shipped prebuilt |
76 |
+ sed -e '/SUBDIRS[^=]*=/ s:doc::g' -i -- Makefile.am || die |
77 |
+ |
78 |
+ # disable building tests automagically |
79 |
+ use test || sed -e '/SUBDIRS[^=]*=/ s:[^ ]*_test::g' -i -- c/Makefile.am || die |
80 |
+ |
81 |
+ eautoreconf |
82 |
+} |
83 |
+ |
84 |
+src_test() { |
85 |
+ my_for_each_test_dir emake check |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ local HTML_DOCS=( $(usev doc) ) |
90 |
+ |
91 |
+ default |
92 |
+ |
93 |
+ doman 'doc/mlr.1' |
94 |
+} |