From b987a550f067c3da93b0664cf1fdc8a624c0aa38 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 24 Apr 2024 23:59:27 +0100 Subject: gentoo auto-resync : 24:04:2024 - 23:59:27 --- dev-lang/jsonnet/Manifest | 2 +- dev-lang/jsonnet/jsonnet-0.20.0-r1.ebuild | 109 ++++++++++++++++++++++++++++++ dev-lang/jsonnet/jsonnet-0.20.0.ebuild | 107 ----------------------------- 3 files changed, 110 insertions(+), 108 deletions(-) create mode 100644 dev-lang/jsonnet/jsonnet-0.20.0-r1.ebuild delete mode 100644 dev-lang/jsonnet/jsonnet-0.20.0.ebuild (limited to 'dev-lang/jsonnet') diff --git a/dev-lang/jsonnet/Manifest b/dev-lang/jsonnet/Manifest index 54532a5f142f..38c71bf1ed8d 100644 --- a/dev-lang/jsonnet/Manifest +++ b/dev-lang/jsonnet/Manifest @@ -7,5 +7,5 @@ DIST jsonnet-0.19.1.tar.gz 22480685 BLAKE2B 7d86bc963f5ced622e91adf015c250b8cae2 DIST jsonnet-0.20.0.tar.gz 22481277 BLAKE2B 65d6a45a903d6f494bbb79fb92c484b2a5167fc5fc379f4acb131778e1779aa580fd249baf3309fd00fa9b2a3b129360bf9d2cb0a3a738bd03c5fcec7dc6bd32 SHA512 d46d2521d4389d05f91a16ecd9f181be1853f674a9264e9fac23e413f1084dee947e80682af59603e15e443061a0beb50a30c14c858853e10ed1ae7187d09730 EBUILD jsonnet-0.19.0-r1.ebuild 2128 BLAKE2B df21dbc4afbca5992a0a8841c155aa63ddb83eeb716c7257c185097688fa87a8a2fb706299bcc19e0235acd650249034a7e2e39b1d8ebec7987d97dee10e4ebf SHA512 b9c20cd3cb195500537c9df8c47c59c1de77e2fcad365447297651de0c787085b5d2abb132aac2407ecf8f82b63e4a7e58f3de275aaf929ff5b9fecf4bf4f678 EBUILD jsonnet-0.19.1.ebuild 2139 BLAKE2B e7190af8fbe34753a46876881b1bac40d2f1b5f221cfd039abe3438b23cad4649b8ad91581f14626b36d7b108675654e6ecdf20cb327038bcd6d8da8fbee114d SHA512 d5da70267a27785c57b7be29ff92c87d7469029e7125d08ca9eb379a8891e3886b404789b1ddfe656a5753da620b1a0122041ab047bf90511364727cf8484ffa -EBUILD jsonnet-0.20.0.ebuild 2139 BLAKE2B e7190af8fbe34753a46876881b1bac40d2f1b5f221cfd039abe3438b23cad4649b8ad91581f14626b36d7b108675654e6ecdf20cb327038bcd6d8da8fbee114d SHA512 d5da70267a27785c57b7be29ff92c87d7469029e7125d08ca9eb379a8891e3886b404789b1ddfe656a5753da620b1a0122041ab047bf90511364727cf8484ffa +EBUILD jsonnet-0.20.0-r1.ebuild 2157 BLAKE2B 8bc725c4f9de9353e4e910f5bc2c698af6e4943e30cb92cc8cfdb25be8c53fe272c077a70597c4e620bb36c28ef3c2a47ee72f9a10f891a6bb07e5e22246deb8 SHA512 f1914288b025b3b595e0bb03a7431db2a86534a7473c690220a546229b3a42f39508f8dfe4f7e7774ab0d177a909f05b8cfb3e94898ad6ac6ad9161bf876d06d MISC metadata.xml 636 BLAKE2B b4f30bead9e90492366ba9d8fd393cfa6610efcb1dbe7cf11307445f2b7aa596585b576e550aa0df3bcfd14c7a8b068d09040ea94dc815db76d6d15e0f09fccb SHA512 a106617bce041fc24e1fab61d08add74f450742e7c1be14633cd49b5137c86cf52bd5baf9ea8f5f2f51a90619c7dfad7e6bf749894d8e4df8063857f29a0492a diff --git a/dev-lang/jsonnet/jsonnet-0.20.0-r1.ebuild b/dev-lang/jsonnet/jsonnet-0.20.0-r1.ebuild new file mode 100644 index 000000000000..cc1f61faa103 --- /dev/null +++ b/dev-lang/jsonnet/jsonnet-0.20.0-r1.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_OPTIONAL=1 +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_EXT=1 +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +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" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="custom-optimization doc examples python test" + +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.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() { + cmake_src_prepare + use python && distutils-r1_src_prepare +} + +src_configure() { + use custom-optimization || replace-flags '-O*' -O3 + tc-export CC CXX + + 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() { + cmake_src_compile + use python && CMAKE_BUILD_DIR="${BUILD_DIR}" distutils-r1_src_compile +} + +src_test() { + cmake_src_test + use python && CMAKE_BUILD_DIR="${BUILD_DIR}" distutils-r1_src_test +} + +python_test() { + LD_LIBRARY_PATH="${CMAKE_BUILD_DIR}" "${EPYTHON}" -m unittest python._jsonnet_test -v \ + || die "Tests failed with ${EPYTHON}" +} + +src_install() { + cmake_src_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.20.0.ebuild b/dev-lang/jsonnet/jsonnet-0.20.0.ebuild deleted file mode 100644 index 8e5c294e6207..000000000000 --- a/dev-lang/jsonnet/jsonnet-0.20.0.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_OPTIONAL=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{9..11} ) - -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 test" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~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.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() { - cmake_src_prepare - use python && distutils-r1_src_prepare -} - -src_configure() { - use custom-optimization || replace-flags '-O*' -O3 - tc-export CC CXX - - 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() { - cmake_src_compile - use python && CMAKE_BUILD_DIR="${BUILD_DIR}" distutils-r1_src_compile -} - -src_test() { - cmake_src_test - use python && CMAKE_BUILD_DIR="${BUILD_DIR}" distutils-r1_src_test -} - -python_test() { - LD_LIBRARY_PATH="${CMAKE_BUILD_DIR}" "${EPYTHON}" -m unittest python._jsonnet_test -v \ - || die "Tests failed with ${EPYTHON}" -} - -src_install() { - cmake_src_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 -} -- cgit v1.2.3