aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-02-13 01:43:36 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-02-13 02:07:07 +0100
commit5b16508757c6e1dc9ccb4a6d63f836593f135388 (patch)
tree1cb6586067e5bc2ac1f8178b01a270aa68b58080 /main
parentf92bb1fb18b060944107253b4713066f9768cc9a (diff)
downloadaports-5b16508757c6e1dc9ccb4a6d63f836593f135388.tar.bz2
aports-5b16508757c6e1dc9ccb4a6d63f836593f135388.tar.xz
main/ruby: sort subpackages
Diffstat (limited to 'main')
-rw-r--r--main/ruby/APKBUILD69
1 files changed, 37 insertions, 32 deletions
diff --git a/main/ruby/APKBUILD b/main/ruby/APKBUILD
index dd4af36b09..fdbca27161 100644
--- a/main/ruby/APKBUILD
+++ b/main/ruby/APKBUILD
@@ -13,10 +13,15 @@ depends_dev="gmp-dev"
makedepends="$depends_dev zlib-dev libressl-dev gdbm-dev db-dev readline-dev
libffi-dev coreutils yaml-dev linux-headers autoconf"
# Maybe its a good idea to split dep libs to seperate pkgs.
-subpackages="$pkgname-doc $pkgname-dev $pkgname-irb::noarch
- $pkgname-rdoc::noarch $pkgname-rake::noarch $pkgname-bigdecimal::noarch
- $pkgname-io-console:io_console $pkgname-minitest::noarch
- $pkgname-json $pkgname-libs
+subpackages="$pkgname-doc $pkgname-dev
+ $pkgname-bigdecimal::noarch
+ $pkgname-io-console:io_console
+ $pkgname-irb::noarch
+ $pkgname-json
+ $pkgname-minitest::noarch
+ $pkgname-rake::noarch
+ $pkgname-rdoc::noarch
+ $pkgname-libs
"
source="ftp://ftp.ruby-lang.org/pub/ruby/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"
options="!fhs"
@@ -93,12 +98,20 @@ package() {
fi
}
-rake() {
- pkgdesc="Ruby based make-like utility"
+bigdecimal() {
+ pkgdesc="Ruby arbitrary-precision floating point decimal arithmetic"
depends="$pkgname"
- _mvgem rake || return 1
- _mv usr/bin/rake
+ _mvgem bigdecimal
+}
+
+io_console() {
+ pkgdesc="Ruby simple console IO library"
+ depends="$pkgname"
+
+ _mvgem io-console
+ _mv $_rubydir/io \
+ $_rubydir/$_chost/io/console.so
}
irb() {
@@ -111,29 +124,11 @@ irb() {
usr/lib/ruby/$_abiver/irb*
}
-rdoc() {
- pkgdesc="Ruby documentation tool"
- depends="$pkgname $pkgname-json"
-
- _mvgem rdoc || return 1
- _mv usr/bin/ri \
- usr/bin/rdoc
-}
-
-bigdecimal() {
- pkgdesc="Ruby arbitrary-precision floating point decimal arithmetic"
- depends="$pkgname"
-
- _mvgem bigdecimal
-}
-
-io_console() {
- pkgdesc="Ruby simple console IO library"
+json() {
+ pkgdesc="JSON implementation as a Ruby extension in C"
depends="$pkgname"
- _mvgem io-console
- _mv $_rubydir/io \
- $_rubydir/$_chost/io/console.so
+ _mvgem json
}
minitest() {
@@ -143,11 +138,21 @@ minitest() {
_mvgem minitest
}
-json() {
- pkgdesc="JSON implementation as a Ruby extension in C"
+rake() {
+ pkgdesc="Ruby based make-like utility"
depends="$pkgname"
- _mvgem json
+ _mvgem rake || return 1
+ _mv usr/bin/rake
+}
+
+rdoc() {
+ pkgdesc="Ruby documentation tool"
+ depends="$pkgname $pkgname-json"
+
+ _mvgem rdoc || return 1
+ _mv usr/bin/ri \
+ usr/bin/rdoc
}
libs() {