1 |
commit: 34ceb242b5cb7367df61c856f5e876429baa41c0 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 1 22:51:04 2016 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 22:53:16 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34ceb242 |
7 |
|
8 |
app-misc/jq: Revision bump, update bison dep to >=3.0 add rdep on oniguruma |
9 |
|
10 |
Gentoo-Bug: 573058 |
11 |
|
12 |
Package-Manager: portage-2.2.27 |
13 |
|
14 |
app-misc/jq/jq-1.5-r1.ebuild | 53 ++++++++++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 53 insertions(+) |
16 |
|
17 |
diff --git a/app-misc/jq/jq-1.5-r1.ebuild b/app-misc/jq/jq-1.5-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 0000000..df24e2f |
20 |
--- /dev/null |
21 |
+++ b/app-misc/jq/jq-1.5-r1.ebuild |
22 |
@@ -0,0 +1,53 @@ |
23 |
+# Copyright 1999-2016 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Id$ |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+inherit autotools |
30 |
+ |
31 |
+DESCRIPTION="A lightweight and flexible command-line JSON processor" |
32 |
+HOMEPAGE="https://stedolan.github.com/jq/" |
33 |
+SRC_URI="https://github.com/stedolan/jq/releases/download/${P}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="MIT CC-BY-3.0" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86 ~x64-macos" |
38 |
+IUSE="oniguruma static-libs test" |
39 |
+ |
40 |
+DEPEND=">=sys-devel/bison-3.0 |
41 |
+ sys-devel/flex |
42 |
+ oniguruma? ( dev-libs/oniguruma[static-libs?] ) |
43 |
+ test? ( dev-util/valgrind )" |
44 |
+RDEPEND="!static-libs? ( |
45 |
+ oniguruma? ( dev-libs/oniguruma[static-libs?] ) |
46 |
+ )" |
47 |
+ |
48 |
+DOCS=( AUTHORS README ) |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}"/${PN}-1.5-dynamic-link.patch |
52 |
+ "${FILESDIR}"/${P}-remove-automagic-dep-on-oniguruma.patch |
53 |
+) |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ sed -i '/^dist_doc_DATA/d' Makefile.am || die |
57 |
+ sed -i -r "s:(m4_define\(\[jq_version\],) .+\):\1 \[${PV}\]):" \ |
58 |
+ configure.ac || die |
59 |
+ |
60 |
+ default |
61 |
+ eautoreconf |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ # don't try to rebuild docs |
66 |
+ econf \ |
67 |
+ --disable-docs \ |
68 |
+ $(use_enable static-libs static) \ |
69 |
+ $(use_with oniguruma) |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ default |
74 |
+ use static-libs || find "${ED}" -name libjq.la -delete |
75 |
+} |