You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
51 lines
1.3 KiB
5 years ago
|
# Copyright 2017-2020 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI="7"
|
||
4 years ago
|
PYTHON_COMPAT=(python{3_6,3_7,3_8})
|
||
7 years ago
|
DISTUTILS_SINGLE_IMPL="1"
|
||
4 years ago
|
DISTUTILS_USE_SETUPTOOLS="rdepend"
|
||
7 years ago
|
|
||
|
inherit distutils-r1
|
||
|
|
||
|
if [[ "${PV}" == "99999999999999" ]]; then
|
||
|
inherit git-r3
|
||
|
|
||
|
EGIT_REPO_URI="https://chromium.googlesource.com/external/gyp"
|
||
|
fi
|
||
|
|
||
|
DESCRIPTION="GYP (Generate Your Projects) meta-build system"
|
||
|
HOMEPAGE="https://gyp.gsrc.io/ https://chromium.googlesource.com/external/gyp"
|
||
|
if [[ "${PV}" == "99999999999999" ]]; then
|
||
|
SRC_URI=""
|
||
|
else
|
||
|
SRC_URI="https://home.apache.org/~arfrever/distfiles/${P}.tar.xz"
|
||
|
fi
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="amd64 ~arm64 ~ppc64 x86"
|
||
7 years ago
|
IUSE=""
|
||
|
|
||
4 years ago
|
BDEPEND=""
|
||
|
DEPEND=""
|
||
|
RDEPEND=""
|
||
|
|
||
|
python_prepare_all() {
|
||
|
distutils-r1_python_prepare_all
|
||
|
|
||
|
sed -e "s/' Linux %s' % ' '\.join(platform.linux_distribution())/' Linux'/" -i gyptest.py || die
|
||
|
sed -e "s/the_dict_key is 'variables'/the_dict_key == 'variables'/" -i pylib/gyp/input.py || die
|
||
|
sed \
|
||
|
-e "s/os\.environ\['PRESERVE'\] is not ''/os.environ['PRESERVE'] != ''/" \
|
||
|
-e "s/conditions is ()/conditions == ()/" \
|
||
|
-i test/lib/TestCmd.py || die
|
||
|
}
|
||
|
|
||
|
python_test() {
|
||
|
# More errors with DeprecationWarnings enabled.
|
||
7 years ago
|
local -x PYTHONWARNINGS=""
|
||
|
|
||
|
"${PYTHON}" gyptest.py --all --verbose
|
||
|
}
|