mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-ada/vss-text: use get_makeopts_*
multiprocessing backward deprecated makeopts_* in <EAPI-9, breaking CI Done via: ``` grep -RP '(?<!get_)makeopts_jobs' sed -e 's/(\(makeopts_jobs\))/\(get_\1)/g' -i */*/*.ebuild eclass/*.eclass sed -e 's/(\(makeopts_jobs\)/\(get_\1/g' -i */*/*.ebuild eclass/*.eclass grep -RP '(?<!get_)makeopts_loadavg' sed -e 's/(\(makeopts_loadavg\))/\(get_\1)/g' -i */*/*.ebuild eclass/*.eclass sed -e 's/(\(makeopts_loadavg\)/\(get_\1/g' -i */*/*.ebuild eclass/*.eclass ``` Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/426 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
committed by
Alfredo Tupone
parent
e6f296390e
commit
aad758b95b
@@ -1,4 +1,4 @@
|
||||
# Copyright 2021-2025 Gentoo Authors
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -36,26 +36,26 @@ src_prepare() {
|
||||
|
||||
src_compile() {
|
||||
build () {
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(makeopts_jobs) -v \
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(get_makeopts_jobs) -v \
|
||||
gnat/vss_gnat.gpr \
|
||||
-cargs:Ada ${ADAFLAGS} || die
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(makeopts_jobs) -v \
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(get_makeopts_jobs) -v \
|
||||
gnat/vss_text.gpr \
|
||||
-cargs:Ada ${ADAFLAGS} || die
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(makeopts_jobs) -v \
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(get_makeopts_jobs) -v \
|
||||
gnat/vss_json.gpr \
|
||||
-cargs:Ada ${ADAFLAGS} || die
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(makeopts_jobs) -v \
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(get_makeopts_jobs) -v \
|
||||
gnat/vss_regexp.gpr \
|
||||
-cargs:Ada ${ADAFLAGS} || die
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(makeopts_jobs) -v \
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(get_makeopts_jobs) -v \
|
||||
gnat/vss_xml.gpr \
|
||||
-cargs:Ada ${ADAFLAGS} || die
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(makeopts_jobs) -v \
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -p -j$(get_makeopts_jobs) -v \
|
||||
gnat/vss_xml_templates.gpr \
|
||||
-cargs:Ada ${ADAFLAGS} || die
|
||||
gprbuild -XVSS_LIBRARY_TYPE=$1 -XXMLADA_BUILD=$1 -p \
|
||||
-j$(makeopts_jobs) -v gnat/vss_xml_xmlada.gpr \
|
||||
-j$(get_makeopts_jobs) -v gnat/vss_xml_xmlada.gpr \
|
||||
-cargs:Ada ${ADAFLAGS} || die
|
||||
}
|
||||
if use shared; then
|
||||
@@ -70,7 +70,7 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 GPRBUILD_FLAGS="-p -j$(makeopts_jobs) -v" build_tests
|
||||
emake -j1 GPRBUILD_FLAGS="-p -j$(get_makeopts_jobs) -v" build_tests
|
||||
# To run all the test need to follow data/README.md
|
||||
emake check_html
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2021-2025 Gentoo Authors
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -34,7 +34,7 @@ src_prepare() {
|
||||
src_compile() {
|
||||
build () {
|
||||
for i in gnat text; do
|
||||
gprbuild -p -j$(makeopts_jobs) -v \
|
||||
gprbuild -p -j$(get_makeopts_jobs) -v \
|
||||
-XVSS_BUILD_PROFILE=release \
|
||||
-XVSS_LIBRARY_TYPE=$1 \
|
||||
gnat/vss_${i}.gpr \
|
||||
@@ -51,7 +51,7 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 GPRFLAGS="-j$(makeopts_jobs) -v" build-tests
|
||||
emake -j1 GPRFLAGS="-j$(get_makeopts_jobs) -v" build-tests
|
||||
# To run all the test need to follow data/README.md
|
||||
emake check_text
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user