49bf7bbb5d
- Introduced `r.toml` for R package configuration, including build flags and dependencies. - Added `sdl2-compat.toml` for SDL2 compatibility layer with SDL3, specifying build and runtime dependencies. - Created a patch for SDL3 to handle cases when XInput2 is not available, ensuring compatibility. - Added `sdl3.toml` for SDL3 configuration, including build flags and dependencies. - Introduced `tk.toml` for Tk configuration, detailing build flags and runtime dependencies. - Added a patch for Vala to ensure POSIX compliance in the test runner script, improving portability.
101 lines
2.2 KiB
TOML
101 lines
2.2 KiB
TOML
[build]
|
|
type = "autotools"
|
|
|
|
[build.flags]
|
|
sysconfdir = "/etc/R"
|
|
configure = [
|
|
"rsharedir=/usr/share/R/",
|
|
"rincludedir=/usr/include/R/",
|
|
"rdocdir=/usr/share/doc/R/",
|
|
"--with-x",
|
|
"--enable-R-shlib",
|
|
"--enable-memory-profiling",
|
|
"--with-lapack",
|
|
"--with-blas",
|
|
"F77=flang",
|
|
"LIBnn=lib",
|
|
]
|
|
make_dirs = [
|
|
"./",
|
|
"src/nmath/standalone",
|
|
]
|
|
make_install_dirs = [
|
|
"./",
|
|
"src/nmath/standalone",
|
|
]
|
|
post_compile = [
|
|
"make info",
|
|
"cd src/nmath/standalone && make shared",
|
|
]
|
|
post_install = [
|
|
'sed -i "s|$DESTDIR ||" "$DESTDIR/usr/bin/R"',
|
|
'rm "$DESTDIR"/usr/lib/R/bin/R',
|
|
'cd "$DESTDIR"/usr/lib/R/bin && ln -s ../../../bin/R',
|
|
'install -Dm644 "$DEPOT_SPECDIR"/r.desktop -t "$DESTDIR"/usr/share/applications',
|
|
'install -Dm644 "$DEPOT_SPECDIR"/r.png -t "$DESTDIR"/usr/share/pixmaps',
|
|
'install -Dm644 "$DEPOT_SPECDIR"/R.conf -t "$DESTDIR"/etc/ld.so.conf.d',
|
|
'install -d "$DESTDIR"/etc/R',
|
|
'cd "$DESTDIR"/usr/lib/R/etc && for _i in *; do mv -f "$_i" "$DESTDIR/etc/R" && ln -s "/etc/R/$_i" "$_i"; done',
|
|
]
|
|
skip_tests = true
|
|
keep = [ "etc/R/Makeconf", "etc/R/Renviron", "etc/R/ldpaths", "etc/R/repositories", "etc/R/javaconf" ]
|
|
|
|
[dependencies]
|
|
build = [
|
|
"flang",
|
|
"tk",
|
|
]
|
|
optional = [
|
|
"flang",
|
|
"blas-openblas",
|
|
]
|
|
runtime = [
|
|
"sh",
|
|
"blas",
|
|
"bzip2",
|
|
"cairo",
|
|
"curl",
|
|
"libcxx",
|
|
"libunwind",
|
|
"glib2",
|
|
"glibc",
|
|
"icu78",
|
|
"lapack",
|
|
"libdeflate",
|
|
"libjpeg-turbo",
|
|
"libpng",
|
|
"libtiff",
|
|
"libxmu",
|
|
"libx11",
|
|
"libxt",
|
|
"pango",
|
|
"pcre2",
|
|
"readline",
|
|
"tk",
|
|
"unzip",
|
|
"which",
|
|
"xz",
|
|
"zstd",
|
|
"zlib-ng",
|
|
]
|
|
|
|
[[manual_sources]]
|
|
files = [
|
|
"r.desktop",
|
|
"r.png",
|
|
"R.conf",
|
|
]
|
|
|
|
[package]
|
|
description = "Language and environment for statistical computing and graphics"
|
|
homepage = "https://www.r-project.org/"
|
|
license = "GPL-2.0-or-Later"
|
|
name = "r"
|
|
version = "4.5.3"
|
|
|
|
[[source]]
|
|
extract_dir = "$name-$version"
|
|
post_extract = ["sed -i 's|$(rsharedir)/texmf|${datarootdir}/texmf|' share/Makefile.in"]
|
|
sha256 = "c9a6555bb94c104b9c02905360c57de0dcac5dd31923dc5bb6ef3af7744615f1"
|
|
url = "https://cran.r-project.org/src/base/R-4/R-$version.tar.xz"
|