From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 518A2138335 for ; Mon, 3 Jun 2019 18:57:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20A10E082D; Mon, 3 Jun 2019 18:57:28 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E810DE082D for ; Mon, 3 Jun 2019 18:57:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 441E4345632 for ; Mon, 3 Jun 2019 18:57:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CCE4D601 for ; Mon, 3 Jun 2019 18:57:23 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1559587714.1184b81838b90078b6da1c8f42f72694bb4477de.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/jsonnet/files/, dev-lang/jsonnet/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/jsonnet/Manifest dev-lang/jsonnet/files/jsonnet-0.13.0-glibc-2.29.patch dev-lang/jsonnet/jsonnet-0.13.0.ebuild X-VCS-Directories: dev-lang/jsonnet/files/ dev-lang/jsonnet/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 1184b81838b90078b6da1c8f42f72694bb4477de X-VCS-Branch: master Date: Mon, 3 Jun 2019 18:57:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d936f638-be1a-4f75-b2c5-097ba6d99db9 X-Archives-Hash: 642865c60b38fd95cbffe53554847f7e commit: 1184b81838b90078b6da1c8f42f72694bb4477de Author: Patrick McLean sony com> AuthorDate: Mon Jun 3 18:48:34 2019 +0000 Commit: Patrick McLean gentoo org> CommitDate: Mon Jun 3 18:48:34 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1184b818 dev-lang/jsonnnet: Version bump to 0.13.0 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.67, Repoman-2.3.13 Signed-off-by: Patrick McLean gentoo.org> dev-lang/jsonnet/Manifest | 1 + .../jsonnet/files/jsonnet-0.13.0-glibc-2.29.patch | 8 +++ dev-lang/jsonnet/jsonnet-0.13.0.ebuild | 61 ++++++++++++++++++++++ 3 files changed, 70 insertions(+) diff --git a/dev-lang/jsonnet/Manifest b/dev-lang/jsonnet/Manifest index ed4712918a9..dc57a4ec785 100644 --- a/dev-lang/jsonnet/Manifest +++ b/dev-lang/jsonnet/Manifest @@ -1 +1,2 @@ DIST jsonnet-0.12.1.tar.gz 21839349 BLAKE2B 8601a35263003723b435d0075fe60f5301a49bddf63cdd55958df3eb7474569c28dbf54e0ba9d07fb6ade395af725193d1432b2c43fb2b271531af179e850df4 SHA512 25523dd19b4209a5ca39275ab3d3726b934442dd83a965ab0b79f0c67bd8ae85c438b2a63990b8eec921b137f908f946696be331b08cef92f15b6b8fa548cb0d +DIST jsonnet-0.13.0.tar.gz 21850449 BLAKE2B fa0665d63b09dfc01a7454268d6edd467524cdfdb5d53e838665f046f1f08608c493503a88d7af7e26c3dc07e0ae4323753affab90c5ac41c27ebe8b7b39a4a0 SHA512 d19e5398763e37b79b0ef02368f6bd6215d2df234b5ff7a6d98e2306a0d47290600061c9f868c0c262570b4f0ee9eee6c309bcc93937b12f6c14f8d12339a7d5 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 new file mode 100644 index 00000000000..f63a246fd88 --- /dev/null +++ b/dev-lang/jsonnet/files/jsonnet-0.13.0-glibc-2.29.patch @@ -0,0 +1,8 @@ +diff --git a/test_suite/error.import_folder.jsonnet.golden_regex b/test_suite/error.import_folder.jsonnet.golden_regex +index bc468fb..c472b23 100644 +--- a/test_suite/error.import_folder.jsonnet.golden_regex ++++ b/test_suite/error.import_folder.jsonnet.golden_regex +@@ -1,2 +1,2 @@ +-(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)? ++(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)? + error.import_folder.jsonnet:17:1-13 ) diff --git a/dev-lang/jsonnet/jsonnet-0.13.0.ebuild b/dev-lang/jsonnet/jsonnet-0.13.0.ebuild new file mode 100644 index 00000000000..bb16ecea1cd --- /dev/null +++ b/dev-lang/jsonnet/jsonnet-0.13.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python3_6 python3_7 ) + +inherit toolchain-funcs distutils-r1 + +DESCRIPTION="A data templating language for app and tool developers " +HOMEPAGE="https://jsonnet.org/" +SRC_URI="https://github.com/google/jsonnet/archive/v${PV}.tar.gz -> ${P}.tar.gz" +IUSE="python" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +DEPEND="python? ( ${PYTHON_DEPS} )" +RDEPEND="python? ( ${PYTHON_DEPS} )" +BDEPEND="python? ( ${PYTHON_DEPS} + dev-python/setuptools[${PYTHON_USEDEP}] + )" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +PATCHES=( + "${FILESDIR}/jsonnet-0.12.1-makefile.patch" + "${FILESDIR}/jsonnet-0.12.1-dont-call-make-from-setuppy.patch" + "${FILESDIR}/jsonnet-0.13.0-glibc-2.29.patch" +) + +src_prepare() { + default + use python && distutils-r1_src_prepare +} + +src_compile() { + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" \ + jsonnet \ + libjsonnet.so \ + libjsonnet++.so + + use python && distutils-r1_src_compile +} + +src_test() { + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" test + use python && distutils-r1_src_test +} + +python_test() { + esetup.py test || die +} + +src_install() { + dolib.so libjsonnet*.so + dobin jsonnet + + use python && distutils-r1_src_install +}