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 E0454138359 for ; Sun, 25 Oct 2020 00:14:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ADAA0E0900; Sun, 25 Oct 2020 00:14:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 976BDE0900 for ; Sun, 25 Oct 2020 00:14:20 +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 3C9CB340B35 for ; Sun, 25 Oct 2020 00:14:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A55533BA for ; Sun, 25 Oct 2020 00:14:17 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1603584803.4ad0a3b530fd0f9a4df1dcadf747f8db8f09f6a0.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/jsonnet/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/jsonnet/jsonnet-0.16.0-r1.ebuild X-VCS-Directories: dev-lang/jsonnet/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 4ad0a3b530fd0f9a4df1dcadf747f8db8f09f6a0 X-VCS-Branch: master Date: Sun, 25 Oct 2020 00:14:17 +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: 38dcd71d-abd3-4545-820c-36812fb931d9 X-Archives-Hash: 437eb1275a113ba5b85b338823e5a9bd commit: 4ad0a3b530fd0f9a4df1dcadf747f8db8f09f6a0 Author: Georgy Yakovlev gentoo org> AuthorDate: Sun Oct 25 00:01:28 2020 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Sun Oct 25 00:13:23 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ad0a3b5 dev-lang/jsonnet: revbump, fix many issues It was installing broken soname symlinks and no libs at all. Now we install both c and c++ libs Also install jsonnetfmt and public headers. Add doc and examples useflag, all files are pre-rendered. Declare python3_9 and pypy3 support. Closes: https://bugs.gentoo.org/723058 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev gentoo.org> dev-lang/jsonnet/jsonnet-0.16.0-r1.ebuild | 75 +++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/dev-lang/jsonnet/jsonnet-0.16.0-r1.ebuild b/dev-lang/jsonnet/jsonnet-0.16.0-r1.ebuild new file mode 100644 index 00000000000..7987e965555 --- /dev/null +++ b/dev-lang/jsonnet/jsonnet-0.16.0-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( pypy3 python3_{6..9} ) + +inherit toolchain-funcs flag-o-matic 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="custom-optimization doc examples python" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~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.14.0-makefile.patch" + "${FILESDIR}/jsonnet-0.12.1-dont-call-make-from-setuppy.patch" +) + +distutils_enable_tests setup.py + +src_prepare() { + default + use python && distutils-r1_src_prepare + sed -i "s@\(PREFIX\)/lib@\(PREFIX\)/$(get_libdir)@g" Makefile || die +} + +src_configure() { + use custom-optimization || replace-flags '-O*' -O3 + tc-export CC CXX + default +} + +src_compile() { + emake bins libs + use python && distutils-r1_src_compile +} + +src_test() { + emake test + use python && distutils-r1_src_test +} + +src_install() { + emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install + use python && distutils-r1_src_install + if use doc; then + find doc -name '.gitignore' -delete || die + docinto html + dodoc -r doc/. + fi + if use examples; then + docinto examples + dodoc -r examples/. + fi +}