diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-27 21:58:13 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-27 21:58:13 +0100 |
commit | 62082029157d2ef97a43e34ce34a55877afa8a58 (patch) | |
tree | 7ae84333ee590b9c0a99459888f508b3727849fe /dev-lang/jsonnet | |
parent | 3cafd803b6d89f6e823358a8d7f4a97e6d0629e1 (diff) |
gentoo auto-resync : 27:10:2022 - 21:58:13
Diffstat (limited to 'dev-lang/jsonnet')
-rw-r--r-- | dev-lang/jsonnet/Manifest | 9 | ||||
-rw-r--r-- | dev-lang/jsonnet/jsonnet-0.15.0.ebuild | 63 | ||||
-rw-r--r-- | dev-lang/jsonnet/jsonnet-0.16.0-r2.ebuild | 77 | ||||
-rw-r--r-- | dev-lang/jsonnet/jsonnet-0.16.0.ebuild | 70 | ||||
-rw-r--r-- | dev-lang/jsonnet/jsonnet-0.19.0-r1.ebuild (renamed from dev-lang/jsonnet/jsonnet-0.17.0-r1.ebuild) | 63 |
5 files changed, 46 insertions, 236 deletions
diff --git a/dev-lang/jsonnet/Manifest b/dev-lang/jsonnet/Manifest index 2be0c22f9b54..0da736e38385 100644 --- a/dev-lang/jsonnet/Manifest +++ b/dev-lang/jsonnet/Manifest @@ -3,13 +3,8 @@ AUX jsonnet-0.14.0-makefile.patch 752 BLAKE2B 5acf8e07cd0f1b9af658015e6ee560f31a AUX jsonnet-0.16.0-cp-var.patch 824 BLAKE2B 111fff8e8b897864e14defa677c1a9b8589ef6a859b2344b24e16a940d90cdeff1affde6cd53c0a1a443a82553ee90d554990160f07c49e98c15a5fc7ea3e03a SHA512 96ecfb8a6b49d31e6a827ed401566b5eef39deb8a3542a6f1b3a5df148bfd93479038468585dc47a76fbb9e7953bf9a6c7161abc7acaff7b81cb8dffe3de2f6d AUX jsonnet-0.16.0-libdir.patch 963 BLAKE2B c4b71c01230710bf81fca03b1411bbd21ee02d9957b12997f629c9b4c8e543889658308868d48fe20e0bb9647848bd1b1fa2100c58426785bab1c9bfbbaa8bcb SHA512 9a85c5b8d80f6975ddd3e3c369adb44f6f49382a1e50e9848129c53f81846e69f60a44f401a8a1042657a03f94daaaeb5747632414fa7cb0dc9e2f014ec17a1d AUX jsonnet-0.18.0-unbundle.patch 2564 BLAKE2B 8945b6b17af162a99b7d561a68a48c218d0d939ba74784f35eaa8f8dbafe568e9b4db258d45cf9ce5d87504e3d265697f074d4202c8210e878daf07b56514ef5 SHA512 5bae8d02062ecd29d9650c2b623631e7f7a172148be052620a47ef42788ee272f795011ecc98df9d2000947f0ced4c76776e09f5143058b030cc61a54355bbbf -DIST jsonnet-0.15.0.tar.gz 21826038 BLAKE2B 722a844c00ec31b662d932a4481a71197adad680181c6a56a49dfa3e9b63696d29320c5278024d44c0ab3d7d80569514792f815ac7fa3a3cc08c7756fb6f08ad SHA512 b63c1bf82e4fc9ba3f1009ed4e4ba1010e3e7f81bd816a234e48d35607eae3cba95cab57813d35daa9f024e316bae5256340a6f8d6d884f9136cdbf062a2b351 -DIST jsonnet-0.16.0.tar.gz 21828911 BLAKE2B d6e9648e259b94513507ba5a6e305f705541904d7755dc5521b7fc2940b761f413bfaba39521af54eb428337be2e75f07d12038edcf7e8a5ba95feccc8dd4a02 SHA512 80e0403ec8008cbacff8d9e8fe0e2b5d3bfa306d92c2c11d472e5721015ce4c11be745df10d25715f22f8d8594df69fabf2fe617bdded462ffc5b21f8923606f -DIST jsonnet-0.17.0.tar.gz 21854054 BLAKE2B 91561f2cffb5c711d4ba58aceef90bbcd654997872936bcf475d397a7b831b833d349c828271e58795cca10c915ab4ec0a517dc0fc2f563673ba7a6e74cfea3f SHA512 d3ee6947163d8abced504ff37ecf365c0311164cbf243d4c635d34944f0831ca9fce2470acf00eb9a218f82a2e553b3f885db9bd21bb9dcefbd707fa0202925d DIST jsonnet-0.18.0.tar.gz 22472162 BLAKE2B 4f931a44b0cbeea0dc7705c28ca49817e2b3abe19ba4fdcd550d5df1ce9ad6b06b1b740a9306d36caa3970c88df9d31700373e4997dd52c6c2219cdd9bf125c1 SHA512 08a64a4b132df1519292378cef93deb3c60d21636b2a71bce6c13e29cfd93cab465cad77e11f000fb984c5c75a4ca1c92504654fd2e5201343df767ea0e610d1 -EBUILD jsonnet-0.15.0.ebuild 1351 BLAKE2B 70adc1ac64534dcf8d7ed647d81942b5918ab661061c88cc25dbe8c9c6c63478b96caa02a090695a66c120d826de5f34afc904c8c51aa37ff1a4b1dc5cb45397 SHA512 e5c234dd38eb5f13eebfa4842c214219a80e14bbc337fc4309dcef873cc4c37e326ea7867f60a68143849f7fc5e42dd98e9280c24e023ae0a6f71b1a9cc3b2e3 -EBUILD jsonnet-0.16.0-r2.ebuild 1601 BLAKE2B 2de253f42358c8258f7f38b53b6fb8f6ed9127b5407375b8f69306701c884efa3ce280713411eaba899a972441eb92ed404ca02575a611dfd997dda99adb8ba1 SHA512 264866ca79d21d8f5870db27f14993d8d86fec27b44190ce69acab8d597417004edfd4a018b9100a289ad49e0aac7d670c568196b604d0e4107220bfd91a1012 -EBUILD jsonnet-0.16.0.ebuild 1375 BLAKE2B 4990a4e9754dd0fbc96ce2d6b557b4f9d2325f705ead68db7c768a6942c77a2d235f2a7db961c41263c629a90c4d56633b07d66f26f610c1252a8613ebe9bbdc SHA512 34012d168676b6ad7b519c580085166e7c290e760bb3362003fffb509917d3496d4424f1beb067350d0da6f3a4197aeb87bcfcf84008c6937db63704249e2e16 -EBUILD jsonnet-0.17.0-r1.ebuild 1752 BLAKE2B 93381b8c8546fefefdda73e2940a95bcd8b7c5de6ea8f09b53c6012027f4a4c01903af0f27a48f086dcfc471ec848905c572529332d07e2a7ff43dd5c57daf60 SHA512 befcf6b7ec73933ca127413ecea98169f55aec5346bfa94d0bfce4c1303f582ed3625467f744e791da7521f085705f6636c95cfffd3f4de17a0f2d08e7174402 +DIST jsonnet-0.19.0.tar.gz 22478380 BLAKE2B 0a1612ca0525342763099e70921181578fcf7ab25c2a3811ffede944953e4ce114f1949642038d6147c96d52193cf701473fab8581d50c3e74036139fbd5c19a SHA512 f4e30d977df7840a4f13c7ba75614badd964a5c4484fb264d7b05d6de04aa2a2d3c4c5161523d6fa6559460ea94b94562b07ea6590a34876545c529474c4b9fa EBUILD jsonnet-0.18.0-r1.ebuild 2076 BLAKE2B 84ce1cd4819f2fddfa26271f9311a1eb57e66936822c9e9dd94201935e985101a7e11e4a660db95178891053e99ba5079548a7584ef5f8896d15717bb03fff90 SHA512 41e4ddfc52a89de20852f91f0d615a1a01e47ea34f99a7ead2ad43a7e3e0210f67f8eb017a8922274db60334cfcd6681d8a023075dfc09a7508bf329da417350 +EBUILD jsonnet-0.19.0-r1.ebuild 2128 BLAKE2B a4ff0c29853483e5093b469bb811305f7955561bff84349682cce40fcf9e31c4d03d7b974bf3d0227f3e6fcd308ade37911271df1464190c01c973eba0df64f8 SHA512 574237bf6c1992845d83749d00fb7c74bb01c42ae02e7e2b3fd1872a8a9c453117ecab0e81a2a6ff5210a4156ad456797f524cd0da71f5cf7f1a9b3e7365e79b MISC metadata.xml 636 BLAKE2B b4f30bead9e90492366ba9d8fd393cfa6610efcb1dbe7cf11307445f2b7aa596585b576e550aa0df3bcfd14c7a8b068d09040ea94dc815db76d6d15e0f09fccb SHA512 a106617bce041fc24e1fab61d08add74f450742e7c1be14633cd49b5137c86cf52bd5baf9ea8f5f2f51a90619c7dfad7e6bf749894d8e4df8063857f29a0492a diff --git a/dev-lang/jsonnet/jsonnet-0.15.0.ebuild b/dev-lang/jsonnet/jsonnet-0.15.0.ebuild deleted file mode 100644 index cddc02706e1b..000000000000 --- a/dev-lang/jsonnet/jsonnet-0.15.0.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python3_{7,8} ) - -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 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.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 -} - -src_configure() { - use custom-optimization || replace-flags '-O*' -O3 - default -} - -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 -} - -src_install() { - dolib.so libjsonnet*.so - dobin jsonnet - - use python && distutils-r1_src_install -} diff --git a/dev-lang/jsonnet/jsonnet-0.16.0-r2.ebuild b/dev-lang/jsonnet/jsonnet-0.16.0-r2.ebuild deleted file mode 100644 index a985a044732b..000000000000 --- a/dev-lang/jsonnet/jsonnet-0.16.0-r2.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( pypy3 python3_{7..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" - "${FILESDIR}/jsonnet-0.16.0-libdir.patch" - "${FILESDIR}/jsonnet-0.16.0-cp-var.patch" -) - -distutils_enable_tests setup.py - -src_prepare() { - default - use python && distutils-r1_src_prepare -} - -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}" \ - CP="cp -d" LIBDIR="$(get_libdir)" 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 -} diff --git a/dev-lang/jsonnet/jsonnet-0.16.0.ebuild b/dev-lang/jsonnet/jsonnet-0.16.0.ebuild deleted file mode 100644 index 5bdb8e5a4799..000000000000 --- a/dev-lang/jsonnet/jsonnet-0.16.0.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python3_{7,8} ) - -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 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 -} - -src_configure() { - use custom-optimization || replace-flags '-O*' -O3 - default -} - -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 -} - -src_install() { - dolib.so libjsonnet*.so - dobin jsonnet - - use python && distutils-r1_src_install -} diff --git a/dev-lang/jsonnet/jsonnet-0.17.0-r1.ebuild b/dev-lang/jsonnet/jsonnet-0.19.0-r1.ebuild index 496bc8c5c689..158665c276fc 100644 --- a/dev-lang/jsonnet/jsonnet-0.17.0-r1.ebuild +++ b/dev-lang/jsonnet/jsonnet-0.19.0-r1.ebuild @@ -1,75 +1,100 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( pypy3 python3_{7..9} ) +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{8..11} ) -inherit toolchain-funcs flag-o-matic distutils-r1 +inherit cmake 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" +IUSE="custom-optimization doc examples python test" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" -DEPEND=" - python? ( ${PYTHON_DEPS} ) -" +KEYWORDS="amd64 arm64 ppc64 x86" RDEPEND=" + dev-cpp/rapidyaml:= + dev-cpp/nlohmann_json:= python? ( ${PYTHON_DEPS} ) " + +DEPEND=" + ${RDEPEND} + test? ( dev-cpp/gtest ) +" + BDEPEND=" python? ( ${PYTHON_DEPS} + ${DISTUTILS_DEPS} dev-python/setuptools[${PYTHON_USEDEP}] ) " +RESTRICT="!test? ( test )" 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" "${FILESDIR}/jsonnet-0.16.0-libdir.patch" "${FILESDIR}/jsonnet-0.16.0-cp-var.patch" + "${FILESDIR}/jsonnet-0.18.0-unbundle.patch" ) distutils_enable_tests unittest src_prepare() { - default + cmake_src_prepare use python && distutils-r1_src_prepare } src_configure() { use custom-optimization || replace-flags '-O*' -O3 tc-export CC CXX - default + + local mycmakeargs=( + -DUSE_SYSTEM_JSON=ON + -DBUILD_STATIC_LIBS=OFF + ) + + if use test; then + mycmakeargs+=( + -DBUILD_TESTS=ON + -DUSE_SYSTEM_GTEST=ON + ) + else + mycmakeargs+=( + -DBUILD_TESTS=OFF + ) + fi + + cmake_src_configure } src_compile() { - emake bins libs - use python && distutils-r1_src_compile + cmake_src_compile + use python && CMAKE_BUILD_DIR="${BUILD_DIR}" distutils-r1_src_compile } src_test() { - emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" test - use python && distutils-r1_src_test + cmake_src_test + use python && CMAKE_BUILD_DIR="${BUILD_DIR}" distutils-r1_src_test } python_test() { - "${EPYTHON}" -m unittest python._jsonnet_test -v \ + LD_LIBRARY_PATH="${CMAKE_BUILD_DIR}" "${EPYTHON}" -m unittest python._jsonnet_test -v \ || die "Tests failed with ${EPYTHON}" } src_install() { - emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" \ - CP="cp -d" LIBDIR="$(get_libdir)" install + cmake_src_install use python && distutils-r1_src_install + if use doc; then find doc -name '.gitignore' -delete || die docinto html |