r-tidyselect: fix NeedsCompilation value

This commit is contained in:
Pekka Ristola 2024-03-11 20:59:14 +02:00
parent 3a9329f04c
commit 269984537b
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
2 changed files with 8 additions and 24 deletions

View file

@ -4,10 +4,10 @@
# Contributor: frichtlm <frichtlm@gmail.com>
_pkgname=tidyselect
_pkgver=1.2.0
_pkgver=1.2.1
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=4
pkgrel=0
pkgdesc="Select from a Set of Strings"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
@ -36,27 +36,8 @@ optdepends=(
r-tibble
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('147069ee8d8bc42f63f253311f6c1806')
b2sums=('2a2f24e7833f3f164ef6e5fbe35493bb05a768afba1498f75e8807943944f7355d7c3622930e6e8339e2b8ab06ed0b1bbe82af8069e3a632d022f6b891866f21')
prepare() {
cd "$_pkgname/tests/testthat"
# skip outdated snapshot tests
sed -i '/"eval_select() produces correct backtraces"/a\ \ skip("outdated snapshot")' \
test-eval-select.R
sed -i -e '/"all_of() and any_of() check their inputs"/a\ \ skip("outdated snapshot")' \
-e '/"`all_of()` fails even if `.strict` is FALSE"/a\ \ skip("outdated snapshot")' \
test-helpers-vector.R
sed -i '/"where() checks return values"/a\ \ skip("outdated snapshot")' \
test-helpers-where.R
sed -i -e '/"vars_select() type-checks inputs"/a\ \ skip("outdated snapshot")' \
-e '/"vars_rename() type-checks arguments"/a\ \ skip("outdated snapshot")' \
test-lifecycle-deprecated.R
sed -i -e '/"errors for bad inputs"/a\ \ skip("outdated snapshot")' \
-e '/"vars_pull() produces correct backtraces"/a\ \ skip("outdated snapshot")' \
test-vars-pull.R
}
md5sums=('49c581292e819a2a39aac321f27ab0a8')
b2sums=('f742f3be6807caf31213331a8aa72f7603fdef3e66665f2d667a4a518716c134b0864e107157745462a97c1fa4138e1c3efc83b0df463d8f525c80981b864475')
build() {
mkdir build

View file

@ -7,7 +7,10 @@ sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
from lilac_r_utils import r_pre_build
def pre_build():
r_pre_build(_G)
r_pre_build(
_G,
expect_needscompilation = True,
)
def post_build():
git_pkgbuild_commit()