1 |
commit: 14b551fdb316c8e625578f72fc6354c926cdc308 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 28 17:30:52 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 28 17:30:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14b551fd |
7 |
|
8 |
dev-lang/jsonnet-0.16.0: Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
11 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
12 |
|
13 |
dev-lang/jsonnet/Manifest | 1 + |
14 |
dev-lang/jsonnet/jsonnet-0.16.0.ebuild | 70 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 71 insertions(+) |
16 |
|
17 |
diff --git a/dev-lang/jsonnet/Manifest b/dev-lang/jsonnet/Manifest |
18 |
index f8ff10813b5..8381d36d140 100644 |
19 |
--- a/dev-lang/jsonnet/Manifest |
20 |
+++ b/dev-lang/jsonnet/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST jsonnet-0.15.0.tar.gz 21826038 BLAKE2B 722a844c00ec31b662d932a4481a71197adad680181c6a56a49dfa3e9b63696d29320c5278024d44c0ab3d7d80569514792f815ac7fa3a3cc08c7756fb6f08ad SHA512 b63c1bf82e4fc9ba3f1009ed4e4ba1010e3e7f81bd816a234e48d35607eae3cba95cab57813d35daa9f024e316bae5256340a6f8d6d884f9136cdbf062a2b351 |
23 |
+DIST jsonnet-0.16.0.tar.gz 21828911 BLAKE2B d6e9648e259b94513507ba5a6e305f705541904d7755dc5521b7fc2940b761f413bfaba39521af54eb428337be2e75f07d12038edcf7e8a5ba95feccc8dd4a02 SHA512 80e0403ec8008cbacff8d9e8fe0e2b5d3bfa306d92c2c11d472e5721015ce4c11be745df10d25715f22f8d8594df69fabf2fe617bdded462ffc5b21f8923606f |
24 |
|
25 |
diff --git a/dev-lang/jsonnet/jsonnet-0.16.0.ebuild b/dev-lang/jsonnet/jsonnet-0.16.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..d3e73e1a081 |
28 |
--- /dev/null |
29 |
+++ b/dev-lang/jsonnet/jsonnet-0.16.0.ebuild |
30 |
@@ -0,0 +1,70 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_OPTIONAL=1 |
37 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
38 |
+ |
39 |
+inherit toolchain-funcs flag-o-matic distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="A data templating language for app and tool developers " |
42 |
+HOMEPAGE="https://jsonnet.org/" |
43 |
+SRC_URI="https://github.com/google/jsonnet/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+IUSE="custom-optimization python" |
45 |
+ |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+DEPEND=" |
50 |
+ python? ( ${PYTHON_DEPS} ) |
51 |
+" |
52 |
+RDEPEND=" |
53 |
+ python? ( ${PYTHON_DEPS} ) |
54 |
+" |
55 |
+BDEPEND=" |
56 |
+ python? ( |
57 |
+ ${PYTHON_DEPS} |
58 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
59 |
+ ) |
60 |
+" |
61 |
+ |
62 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}/jsonnet-0.14.0-makefile.patch" |
66 |
+ "${FILESDIR}/jsonnet-0.12.1-dont-call-make-from-setuppy.patch" |
67 |
+) |
68 |
+ |
69 |
+distutils_enable_tests setup.py |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ use python && distutils-r1_src_prepare |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ use custom-optimization || replace-flags '-O*' -O3 |
78 |
+ default |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" \ |
83 |
+ jsonnet \ |
84 |
+ libjsonnet.so \ |
85 |
+ libjsonnet++.so |
86 |
+ |
87 |
+ use python && distutils-r1_src_compile |
88 |
+} |
89 |
+ |
90 |
+src_test() { |
91 |
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" test |
92 |
+ use python && distutils-r1_src_test |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ dolib.so libjsonnet*.so |
97 |
+ dobin jsonnet |
98 |
+ |
99 |
+ use python && distutils-r1_src_install |
100 |
+} |