diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-01-12 16:58:08 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-01-12 16:58:08 +0000 |
commit | c8a77dfe4d3d307c1d5dd2650b7297447d8b609d (patch) | |
tree | 9ea78393bc3ecd6ab4de449383d4e97e5f3648ae /eclass | |
parent | 2891d29af8907ce881662f4a02844926d7a293c7 (diff) |
gentoo resync : 12.01.2019
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/Manifest.gz | bin | 37449 -> 37458 bytes | |||
-rw-r--r-- | eclass/cargo.eclass | 18 | ||||
-rw-r--r-- | eclass/kde5-functions.eclass | 4 | ||||
-rw-r--r-- | eclass/kde5.eclass | 19 | ||||
-rw-r--r-- | eclass/kernel-2.eclass | 2 |
5 files changed, 24 insertions, 19 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz Binary files differindex c17e191b837d..a719732b5d1a 100644 --- a/eclass/Manifest.gz +++ b/eclass/Manifest.gz diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 50f7830c51bc..051d5c499a6e 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: cargo.eclass @@ -23,7 +23,7 @@ esac inherit multiprocessing -EXPORT_FUNCTIONS src_unpack src_compile src_install +EXPORT_FUNCTIONS src_unpack src_compile src_install src_test IUSE="${IUSE} debug" @@ -122,7 +122,7 @@ cargo_src_compile() { export CARGO_HOME="${ECARGO_HOME}" - cargo build -j $(makeopts_jobs) $(usex debug "" --release) \ + cargo build -j $(makeopts_jobs) $(usex debug "" --release) "$@" \ || die "cargo build failed" } @@ -132,11 +132,21 @@ cargo_src_compile() { cargo_src_install() { debug-print-function ${FUNCNAME} "$@" - cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") \ + cargo install -j $(makeopts_jobs) --root="${D}/usr" $(usex debug --debug "") "$@" \ || die "cargo install failed" rm -f "${D}/usr/.crates.toml" [ -d "${S}/man" ] && doman "${S}/man" || return 0 } +# @FUNCTION: cargo_src_test +# @DESCRIPTION: +# Test the package using cargo test +cargo_src_test() { + debug-print-function ${FUNCNAME} "$@" + + cargo test -j $(makeopts_jobs) $(usex debug "" --release) "$@" \ + || die "cargo test failed" +} + fi diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index c6cdc4ba9d0e..28446ed82f19 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: kde5-functions.eclass @@ -285,6 +285,7 @@ add_qt_dep() { # If the version equals 9999, "live" is returned. # If no version is specified, ${PV} is used. get_kde_version() { + [[ ${EAPI} != 6 ]] && die "${FUNCNAME} is banned in EAPI 7 and later" local ver=${1:-${PV}} local major=$(ver_cut 1 ${ver}) local minor=$(ver_cut 2 ${ver}) @@ -303,6 +304,7 @@ get_kde_version() { # Output KDE lingua flag name(s) (without prefix(es)) appropriate for # given l10n(s). kde_l10n2lingua() { + [[ ${EAPI} != 6 ]] && die "${FUNCNAME} is banned in EAPI 7 and later" local l for l; do case ${l} in diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index 79887823556f..daf869fe8b9a 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: kde5.eclass @@ -119,13 +119,6 @@ if [[ ${CATEGORY} = kde-frameworks ]]; then fi : ${KDE_QTHELP:=false} -# @ECLASS-VARIABLE: KDE_TESTPATTERN -# @DESCRIPTION: -# DANGER: Only touch it if you know what you are doing. -# By default, matches autotest(s), unittest(s) and test(s) pattern inside -# cmake add_subdirectory calls. -: ${KDE_TESTPATTERN:="\(auto|unit\)\?tests\?"} - # @ECLASS-VARIABLE: KDE_TEST # @DESCRIPTION: # If set to "false", do nothing. @@ -135,7 +128,7 @@ fi # If set to "forceoptional", remove a Qt5Test dependency and comment test # subdirs from the root CMakeLists.txt in addition to the above. # If set to "forceoptional-recursive", remove Qt5Test dependencies and make -# test subdirs according to KDE_TESTPATTERN from *any* CMakeLists.txt in ${S} +# autotest(s), unittest(s) and test(s) subdirs from *any* CMakeLists.txt in ${S} # and below conditional on BUILD_TESTING. This is always meant as a short-term # fix and creates ${T}/${P}-tests-optional.patch to refine and submit upstream. if [[ ${CATEGORY} = kde-frameworks ]]; then @@ -213,9 +206,9 @@ case ${KDE_AUTODEPS} in RDEPEND+=" || ( $(add_frameworks_dep breeze-icons) kde-frameworks/oxygen-icons:* )" fi - if [[ ${CATEGORY} = kde-apps ]]; then + if [[ ${CATEGORY} = kde-apps && ${PV} = 18.08.3 ]]; then [[ ${KDE_BLOCK_SLOT4} = true ]] && RDEPEND+=" !kde-apps/${PN}:4" - RDEPEND+=" !kde-apps/kde-l10n" # TODO: drop after 18.08.3 removal + RDEPEND+=" !kde-apps/kde-l10n" fi ;; esac @@ -574,12 +567,12 @@ kde5_src_prepare() { local f pf="${T}/${P}"-tests-optional.patch touch ${pf} || die "Failed to touch patch file" for f in $(find . -type f -name "CMakeLists.txt" -exec \ - grep -l "^\s*add_subdirectory\s*\(\s*.*${KDE_TESTPATTERN}\s*)\s*\)" {} \;); do + grep -l "^\s*add_subdirectory\s*\(\s*.*\(auto|unit\)\?tests\?\s*)\s*\)" {} \;); do cp ${f} ${f}.old || die "Failed to prepare patch origfile" pushd ${f%/*} > /dev/null || die punt_bogus_dep Qt5 Test sed -i CMakeLists.txt -e \ - "/^#/! s/add_subdirectory\s*\(\s*.*${KDE_TESTPATTERN}\s*)\s*\)/if(BUILD_TESTING)\n&\nendif()/" \ + "/^#/! s/add_subdirectory\s*\(\s*.*\(auto|unit\)\?tests\?\s*)\s*\)/if(BUILD_TESTING)\n&\nendif()/" \ || die popd > /dev/null || die diff -Naur ${f}.old ${f} 1>>${pf} diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 8e595d581cf6..48146b7284b9 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -509,7 +509,7 @@ detect_version() { # as of 12/5/2017, the rc patch is no longer offered as a compressed # file, and no longer is it mirrored on kernel.org - if [[ ${KV_MAJOR} -ge 4 ]] && [[ ${KV_PATCH} -ge 12 ]]; then + if ver_test "${KV_MAJOR}.${KV_PATCH}" -ge "4.12"; then KERNEL_URI="https://git.kernel.org/torvalds/p/v${KV_FULL}/v${OKV} -> patch-${KV_FULL}.patch ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz" UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${CKV//_/-}.patch" |