diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2022-04-03 01:13:52 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2022-04-04 19:24:22 +0200 |
commit | edbd0a17b09ae75dea60f08987e00bd76000c3ff (patch) | |
tree | 99f536203c162974cc1f78e87ad94780839081ea /main/ruby/APKBUILD | |
parent | c6627bb05c725b41d03640e9af65f3e99cb2084f (diff) | |
download | aports-edbd0a17b09ae75dea60f08987e00bd76000c3ff.zip |
main/ruby: fix aport to allow running rootpkg separately
Diffstat (limited to 'main/ruby/APKBUILD')
-rw-r--r-- | main/ruby/APKBUILD | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/ruby/APKBUILD b/main/ruby/APKBUILD index 7ec7f47f44d..ef9818dc382 100644 --- a/main/ruby/APKBUILD +++ b/main/ruby/APKBUILD @@ -87,7 +87,6 @@ done _gemdir="/usr/lib/ruby/gems/$_abiver" _rubydir="/usr/lib/ruby/$_abiver" _chost="${CHOST/-alpine-/-}" -_depends_full='' # see prepare() case "$CARCH" in x86) _arch="i386";; @@ -110,7 +109,7 @@ prepare() { if ! apk add -qs "ruby-$name>=$ver" >/dev/null 2>&1; then warning "bump package ruby-$name to version $ver" fi - _depends_full="$_depends_full ruby-$name>=$ver" + echo "ruby-$name>=$ver" >> "$srcdir"/.ruby-full.depends esac done < "$builddir"/gems/bundled_gems } @@ -222,7 +221,7 @@ full() { pkgdesc="Ruby with all bundled gems" # bundler is bundled since Ruby 2.6, so include it in ruby-full despite # that it's provided by a seprate aport/package. - depends="ruby ruby-rdoc ruby-bundler $_depends_full" + depends="ruby ruby-rdoc ruby-bundler $(cat "$srcdir"/.ruby-full.depends)" mkdir -p "$subpkgdir" } |