Skip to content

Commit

Permalink
Merge pull request #9559 from ajayk/jruby
Browse files Browse the repository at this point in the history
jruby: new package 🎉
  • Loading branch information
ajayk authored Dec 7, 2023
2 parents ee63309 + e61f7b7 commit 9a6b1eb
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions jruby-9.4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package:
name: jruby-9.4
version: 9.4.5.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: 1abae2700ffd6ddec93b661400c9744e9bb45eff

- runs: |
export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
mvn install
mkdir -p ${{targets.destdir}}/usr/bin
mkdir -p ${{targets.destdir}}/usr/share/jruby
mkdir -p ${{targets.destdir}}/usr/share/jruby/bin
rm -rf bin/*.bat
rm -rf bin/*.dll
rm -rf bin/*.exe
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*
mv bin/* "${{targets.destdir}}"/usr/share/jruby/bin/
rm -rf lib/target
mv lib "${{targets.destdir}}"/usr/share/jruby
for f in "${{targets.destdir}}"/usr/share/jruby/bin/*; do
filename=$(basename "$f")
ln -sf /usr/share/jruby/bin/"$filename" "${{targets.destdir}}"/usr/bin/"$filename"
done
update:
enabled: true
github:
identifier: jruby/jruby
use-tag: true
tag-filter-prefix: 9.4.

0 comments on commit 9a6b1eb

Please sign in to comment.