Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/jsonnet/files/, dev-lang/jsonnet/
Date: Mon, 03 Jun 2019 18:57:29
Message-Id: 1559587714.1184b81838b90078b6da1c8f42f72694bb4477de.chutzpah@gentoo
1 commit: 1184b81838b90078b6da1c8f42f72694bb4477de
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Mon Jun 3 18:48:34 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 3 18:48:34 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1184b818
7
8 dev-lang/jsonnnet: Version bump to 0.13.0
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.67, Repoman-2.3.13
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-lang/jsonnet/Manifest | 1 +
15 .../jsonnet/files/jsonnet-0.13.0-glibc-2.29.patch | 8 +++
16 dev-lang/jsonnet/jsonnet-0.13.0.ebuild | 61 ++++++++++++++++++++++
17 3 files changed, 70 insertions(+)
18
19 diff --git a/dev-lang/jsonnet/Manifest b/dev-lang/jsonnet/Manifest
20 index ed4712918a9..dc57a4ec785 100644
21 --- a/dev-lang/jsonnet/Manifest
22 +++ b/dev-lang/jsonnet/Manifest
23 @@ -1 +1,2 @@
24 DIST jsonnet-0.12.1.tar.gz 21839349 BLAKE2B 8601a35263003723b435d0075fe60f5301a49bddf63cdd55958df3eb7474569c28dbf54e0ba9d07fb6ade395af725193d1432b2c43fb2b271531af179e850df4 SHA512 25523dd19b4209a5ca39275ab3d3726b934442dd83a965ab0b79f0c67bd8ae85c438b2a63990b8eec921b137f908f946696be331b08cef92f15b6b8fa548cb0d
25 +DIST jsonnet-0.13.0.tar.gz 21850449 BLAKE2B fa0665d63b09dfc01a7454268d6edd467524cdfdb5d53e838665f046f1f08608c493503a88d7af7e26c3dc07e0ae4323753affab90c5ac41c27ebe8b7b39a4a0 SHA512 d19e5398763e37b79b0ef02368f6bd6215d2df234b5ff7a6d98e2306a0d47290600061c9f868c0c262570b4f0ee9eee6c309bcc93937b12f6c14f8d12339a7d5
26
27 diff --git a/dev-lang/jsonnet/files/jsonnet-0.13.0-glibc-2.29.patch b/dev-lang/jsonnet/files/jsonnet-0.13.0-glibc-2.29.patch
28 new file mode 100644
29 index 00000000000..f63a246fd88
30 --- /dev/null
31 +++ b/dev-lang/jsonnet/files/jsonnet-0.13.0-glibc-2.29.patch
32 @@ -0,0 +1,8 @@
33 +diff --git a/test_suite/error.import_folder.jsonnet.golden_regex b/test_suite/error.import_folder.jsonnet.golden_regex
34 +index bc468fb..c472b23 100644
35 +--- a/test_suite/error.import_folder.jsonnet.golden_regex
36 ++++ b/test_suite/error.import_folder.jsonnet.golden_regex
37 +@@ -1,2 +1,2 @@
38 +-(STATIC ERROR: lib:1:1: unexpected end of file.|RUNTIME ERROR: couldn't open import "lib": basic_filebuf::underflow error reading the file(: iostream error)?
39 ++(STATIC ERROR: lib:1:1: unexpected end of file.|RUNTIME ERROR: couldn't open import "lib": basic_filebuf::underflow error reading the file(: iostream error|: Is a directory)?
40 + error.import_folder.jsonnet:17:1-13 )
41
42 diff --git a/dev-lang/jsonnet/jsonnet-0.13.0.ebuild b/dev-lang/jsonnet/jsonnet-0.13.0.ebuild
43 new file mode 100644
44 index 00000000000..bb16ecea1cd
45 --- /dev/null
46 +++ b/dev-lang/jsonnet/jsonnet-0.13.0.ebuild
47 @@ -0,0 +1,61 @@
48 +# Copyright 1999-2019 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=7
52 +
53 +DISTUTILS_OPTIONAL=1
54 +PYTHON_COMPAT=( python3_6 python3_7 )
55 +
56 +inherit toolchain-funcs distutils-r1
57 +
58 +DESCRIPTION="A data templating language for app and tool developers "
59 +HOMEPAGE="https://jsonnet.org/"
60 +SRC_URI="https://github.com/google/jsonnet/archive/v${PV}.tar.gz -> ${P}.tar.gz"
61 +IUSE="python"
62 +
63 +LICENSE="Apache-2.0"
64 +SLOT="0"
65 +KEYWORDS="~amd64 ~x86"
66 +DEPEND="python? ( ${PYTHON_DEPS} )"
67 +RDEPEND="python? ( ${PYTHON_DEPS} )"
68 +BDEPEND="python? ( ${PYTHON_DEPS}
69 + dev-python/setuptools[${PYTHON_USEDEP}]
70 + )"
71 +
72 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
73 +
74 +PATCHES=(
75 + "${FILESDIR}/jsonnet-0.12.1-makefile.patch"
76 + "${FILESDIR}/jsonnet-0.12.1-dont-call-make-from-setuppy.patch"
77 + "${FILESDIR}/jsonnet-0.13.0-glibc-2.29.patch"
78 +)
79 +
80 +src_prepare() {
81 + default
82 + use python && distutils-r1_src_prepare
83 +}
84 +
85 +src_compile() {
86 + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
87 + jsonnet \
88 + libjsonnet.so \
89 + libjsonnet++.so
90 +
91 + use python && distutils-r1_src_compile
92 +}
93 +
94 +src_test() {
95 + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" test
96 + use python && distutils-r1_src_test
97 +}
98 +
99 +python_test() {
100 + esetup.py test || die
101 +}
102 +
103 +src_install() {
104 + dolib.so libjsonnet*.so
105 + dobin jsonnet
106 +
107 + use python && distutils-r1_src_install
108 +}