-
Notifications
You must be signed in to change notification settings - Fork 270
/
erlang-27.yaml
115 lines (101 loc) · 2.66 KB
/
erlang-27.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
package:
name: erlang-27
version: "27.2"
epoch: 0
description: General-purpose programming language and runtime environment
copyright:
- license: Apache-2.0
dependencies:
runtime:
# mnesia depends on the ca-certificates bundle
- ca-certificates-bundle
provides:
- erlang=${{package.full-version}}
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- freetds-dev
- ncurses-dev
- openssf-compiler-options
- openssl-dev
- perl-dev
- unixodbc-dev
- zlib-dev
pipeline:
- uses: fetch
with:
expected-sha256: b66c2cc4fa2c87211b668e4486d4f3e5b1b6705698873ea3e6d9850801ac992d
uri: https://github.com/erlang/otp/releases/download/OTP-${{package.version}}/otp_src_${{package.version}}.tar.gz
- runs: |
export CPPFLAGS="-D_BSD_SOURCE $CPPFLAGS"
./otp_build autoconf
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--host="$CHOST" \
--build="$CBUILD" \
--enable-threads \
--enable-shared-zlib \
--enable-ssl=dynamic-ssl-lib \
--enable-jit
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
subpackages:
- name: ${{package.name}}-dev
description: "headers for erlang"
pipeline:
- uses: split/dev
dependencies:
runtime:
- erlang
provides:
- erlang-dev=${{package.full-version}}
- name: ${{package.name}}-odbc
description: "Erlang odbc library"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib/erlang/lib
mv "${{targets.destdir}}"/usr/lib/erlang/lib/odbc-* "${{targets.subpkgdir}}"/usr/lib/erlang/lib
dependencies:
runtime:
- erlang
- freetds
- unixodbc
provides:
- erlang-odbc=${{package.full-version}}
update:
enabled: true
github:
identifier: erlang/otp
strip-prefix: OTP-
use-tag: true
tag-filter: OTP-27
test:
pipeline:
- runs: |
erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
ct_run --version
ct_run --help
dialyzer --version
dialyzer --help
erl --version
erl --help
erlc -v
typer --version
typer --help
- runs: |
cat <<EOF > "hello.erl"
-module(hello).
-export([hello_wolfi/0]).
hello_wolfi() -> io:fwrite("hello, wolfi\n").
EOF
erlc hello.erl
erl -noshell -pa . -eval "hello:hello_wolfi()." -s init stop