1 |
commit: 81041b3c67c62a14f29deb71cfc3f40aeff242fb |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 21:42:47 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 21:43:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81041b3c |
7 |
|
8 |
dev-lang/jsonnet-0.17.0-r1: Fix regressions in last bump (bug #757312) |
9 |
|
10 |
Made a mistake and started from the wrong ebuild when bumping. |
11 |
Closes: https://bugs.gentoo.org/757312 |
12 |
Package-Manager: Portage-3.0.10, Repoman-3.0.2 |
13 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
14 |
|
15 |
...nnet-0.17.0.ebuild => jsonnet-0.17.0-r1.ebuild} | 27 ++++++++++++++-------- |
16 |
1 file changed, 17 insertions(+), 10 deletions(-) |
17 |
|
18 |
diff --git a/dev-lang/jsonnet/jsonnet-0.17.0.ebuild b/dev-lang/jsonnet/jsonnet-0.17.0-r1.ebuild |
19 |
similarity index 73% |
20 |
rename from dev-lang/jsonnet/jsonnet-0.17.0.ebuild |
21 |
rename to dev-lang/jsonnet/jsonnet-0.17.0-r1.ebuild |
22 |
index 67a0000cab8..3faabad2b33 100644 |
23 |
--- a/dev-lang/jsonnet/jsonnet-0.17.0.ebuild |
24 |
+++ b/dev-lang/jsonnet/jsonnet-0.17.0-r1.ebuild |
25 |
@@ -4,14 +4,14 @@ |
26 |
EAPI=7 |
27 |
|
28 |
DISTUTILS_OPTIONAL=1 |
29 |
-PYTHON_COMPAT=( python3_{6..9} ) |
30 |
+PYTHON_COMPAT=( pypy3 python3_{6..9} ) |
31 |
|
32 |
inherit toolchain-funcs flag-o-matic distutils-r1 |
33 |
|
34 |
DESCRIPTION="A data templating language for app and tool developers " |
35 |
HOMEPAGE="https://jsonnet.org/" |
36 |
SRC_URI="https://github.com/google/jsonnet/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
-IUSE="custom-optimization python" |
38 |
+IUSE="custom-optimization doc examples python" |
39 |
|
40 |
LICENSE="Apache-2.0" |
41 |
SLOT="0" |
42 |
@@ -34,6 +34,8 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
43 |
PATCHES=( |
44 |
"${FILESDIR}/jsonnet-0.14.0-makefile.patch" |
45 |
"${FILESDIR}/jsonnet-0.12.1-dont-call-make-from-setuppy.patch" |
46 |
+ "${FILESDIR}/jsonnet-0.16.0-libdir.patch" |
47 |
+ "${FILESDIR}/jsonnet-0.16.0-cp-var.patch" |
48 |
) |
49 |
|
50 |
distutils_enable_tests unittest |
51 |
@@ -45,15 +47,12 @@ src_prepare() { |
52 |
|
53 |
src_configure() { |
54 |
use custom-optimization || replace-flags '-O*' -O3 |
55 |
+ tc-export CC CXX |
56 |
default |
57 |
} |
58 |
|
59 |
src_compile() { |
60 |
- emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" \ |
61 |
- jsonnet \ |
62 |
- libjsonnet.so \ |
63 |
- libjsonnet++.so |
64 |
- |
65 |
+ emake bins libs |
66 |
use python && distutils-r1_src_compile |
67 |
} |
68 |
|
69 |
@@ -68,8 +67,16 @@ python_test() { |
70 |
} |
71 |
|
72 |
src_install() { |
73 |
- dolib.so libjsonnet*.so |
74 |
- dobin jsonnet |
75 |
- |
76 |
+ emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" \ |
77 |
+ CP="cp -d" LIBDIR="$(get_libdir)" install |
78 |
use python && distutils-r1_src_install |
79 |
+ if use doc; then |
80 |
+ find doc -name '.gitignore' -delete || die |
81 |
+ docinto html |
82 |
+ dodoc -r doc/. |
83 |
+ fi |
84 |
+ if use examples; then |
85 |
+ docinto examples |
86 |
+ dodoc -r examples/. |
87 |
+ fi |
88 |
} |