mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-lang/jsonnet: remove old
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
committed by
Patrick McLean
parent
2601322796
commit
5a2ebc4ed6
@@ -1,2 +1 @@
|
||||
DIST jsonnet-0.14.0.tar.gz 21857157 BLAKE2B 93de74fa07efa300097ccb9503b41543beb749d5aff130ad9a6139a3ceb0a07b404aa50877d4cbacd9eb26b2194d8cd9bf578521f17f84a3480655b179525663 SHA512 e09fb27202a34e88134d98d59fdccd4f1ee777e7c8090c3687cb5c11b9ada3bfe7b878322e0274743694ff77457215484470ccf90d03d9d36159288e5a18ab0b
|
||||
DIST jsonnet-0.15.0.tar.gz 21826038 BLAKE2B 722a844c00ec31b662d932a4481a71197adad680181c6a56a49dfa3e9b63696d29320c5278024d44c0ab3d7d80569514792f815ac7fa3a3cc08c7756fb6f08ad SHA512 b63c1bf82e4fc9ba3f1009ed4e4ba1010e3e7f81bd816a234e48d35607eae3cba95cab57813d35daa9f024e316bae5256340a6f8d6d884f9136cdbf062a2b351
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_6 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
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( python3_6 python3_7 )
|
||||
|
||||
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"
|
||||
)
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dolib.so libjsonnet*.so
|
||||
dobin jsonnet
|
||||
|
||||
use python && distutils-r1_src_install
|
||||
}
|
||||
Reference in New Issue
Block a user