forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathR.yaml
167 lines (150 loc) · 3.74 KB
/
R.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# Generated from https://git.alpinelinux.org/aports/plain/community/R/APKBUILD
package:
name: R
version: 4.3.1
epoch: 4
description: Language and environment for statistical computing
copyright:
- license: ( GPL-2.0-only OR GPL-3.0-only ) AND LGPL-2.1-or-later
dependencies:
runtime:
- busybox # The wrapper scripts need busybox.
- bzip2-dev
- cairo
- curl
- curl-dev
- fontconfig
- gcc
- gfortran
- glibc-dev
- glibc-iconv
- glibc-locale-en
- glibc-locales
- gnu-libiconv
- icu-dev
- libgomp
- libx11
- libxml2-dev
- libxt
- make
- pango
- pcre-dev
- openblas-dev
- openssl-dev
- tcl
- tiff
- tk
- tzdata
- xz
- zlib-dev
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- bzip2-dev
- ca-certificates-bundle
- cairo-dev
- curl-dev
- gcc
- gfortran
- glibc-dev
- glibc-iconv
- gnu-libiconv-dev
- icu-dev
- libgcc
- libgomp
- libice-dev
- libjpeg-turbo
- libjpeg-turbo-dev
- libpng-dev
- libx11-dev
- libxmu-dev
- make
- openblas-dev
- openjdk-17
- openjdk-17-default-jvm
- pango-dev
- pcre2-dev
- perl
- readline-dev
- tiff-dev
- tzdata
- xz-dev
- zlib-dev
pipeline:
- uses: fetch
with:
expected-sha256: 8dd0bf24f1023c6f618c3b317383d291b4a494f40d73b983ac22ffea99e4ba99
uri: https://cran.r-project.org/src/base/R-4/R-${{package.version}}.tar.gz
- runs: |
export CFLAGS="-I/usr/include/gnu-libiconv $CFLAGS"
r_cv_have_curl728=y \
./configure \
--prefix=/usr \
--sysconfdir=/etc/R \
--localstatedir=/var \
--mandir=/usr/share/man \
--libdir=/usr/lib \
rdocdir=/usr/share/doc/R \
rincludedir=/usr/include/R \
rsharedir=/usr/share/R \
--disable-nls \
--enable-R-shlib \
--enable-java \
--with-blas=openblas \
--with-cairo \
--with-ICU \
--with-jpeglib \
--with-lapack \
--with-libpng \
--with-libtiff \
--with-x \
--with-tcltk
- uses: autoconf/make
- runs: |
make -C src/nmath/standalone
- uses: autoconf/make-install
- runs: |
_rhome="usr/lib/R"
ldpath="/$_rhome/lib"
destdir="${{targets.destdir}}/$_rhome"
cd src/nmath/standalone
make DESTDIR="${{targets.destdir}}" install
cd ../../../
# Fixup R wrapper script (taken from Arch).
rm "$destdir"/bin/R
ln -sf /usr/bin/R "$destdir"/bin/R
# Remove some useless files (COPYING is duplicated, it will be
# in -doc, don't worry).
rm "$destdir"/COPYING "$destdir"/SVN-REVISION
mkdir -p "${{targets.destdir}}"/etc/R
# R apparently ignores --sysconfdir, so we must manually move configs
# to /etc/R and make symlinks.
cd "$destdir"/etc
for f in *; do
mv "$f" "${{targets.destdir}}"/etc/R/ && ln -sf /etc/R/$f $f
done
- uses: strip
subpackages:
- name: R-mathlib
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib
mv "${{targets.destdir}}"/usr/lib/libRmath.so* "${{targets.subpkgdir}}"/usr/lib
- name: R-dev
pipeline:
- uses: split/dev
description: R dev
- name: R-doc
pipeline:
- uses: split/manpages
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/share/doc/
mv "${{targets.destdir}}"/usr/share/doc/* "${{targets.subpkgdir}}"/usr/share/doc/
description: R manpages
update:
release-monitor:
identifier: 4150