-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathjruby-9.4.yaml
71 lines (60 loc) · 1.86 KB
/
jruby-9.4.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
package:
name: jruby-9.4
version: 9.4.6.0
epoch: 0
description: JRuby, an implementation of Ruby on the JVM
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- bash
- busybox
- ca-certificates-bundle
- maven
- openjdk-8
- openjdk-8-default-jvm
pipeline:
- uses: git-checkout
with:
repository: https://github.com/jruby/jruby
tag: ${{package.version}}
expected-commit: 576fab2c51300c7793262ce8a24224af3db0a7d3
- runs: |
export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
# upgrade uri gem in stdlib
sed -i "s/'uri', '0.12.1'/'uri', '0.12.2'/" lib/pom.rb
mvn install
mkdir -p ${{targets.contextdir}}/usr/bin
mkdir -p ${{targets.contextdir}}/usr/share/jruby
mkdir -p ${{targets.contextdir}}/usr/share/jruby/bin
rm -rf lib/jni/*Darwin*
rm -rf lib/jni/*-SunOS*
rm -rf lib/jni/*-Windows*
rm -rf lib/jni/*-AIX*
rm -rf lib/jni/*-*BSD*
rm -rf lib/target
mv lib "${{targets.contextdir}}"/usr/share/jruby
rm -rf bin/*.bat
rm -rf bin/*.dll
rm -rf bin/*.exe
mv bin/* "${{targets.contextdir}}"/usr/share/jruby/bin/
for binary in jgem jirb jruby jrubyc; do
ln -sf "/usr/share/jruby/bin/${binary}" "${{targets.contextdir}}/usr/bin/${binary}"
done
subpackages:
- name: ${{package.name}}-default-ruby
description: Set the ruby interpreter to jruby implementation
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/bin
mkdir -p ${{targets.contextdir}}/usr/share/jruby/bin
for binary in gem irb ruby rake bundle bundler; do
ln -sf "/usr/share/jruby/bin/${binary}" "${{targets.contextdir}}/usr/bin/${binary}"
done
update:
enabled: true
github:
identifier: jruby/jruby
use-tag: true
tag-filter-prefix: 9.4.