aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-railties4.2/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/ruby-railties4.2/APKBUILD')
-rw-r--r--community/ruby-railties4.2/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/ruby-railties4.2/APKBUILD b/community/ruby-railties4.2/APKBUILD
new file mode 100644
index 0000000000..f6c7ce19d3
--- /dev/null
+++ b/community/ruby-railties4.2/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=railties
+pkgname=ruby-${_gemname}4.2
+pkgver=4.2.5.2
+pkgrel=0
+pkgdesc="Rails internals: application bootup, plugins, generators, and rake tasks"
+url="http://www.rubyonrails.org/"
+arch="noarch"
+license="MIT"
+depends="ruby ruby-actionpack4.2 ruby-activesupport4.2
+ ruby-rake ruby-thor"
+depends_dev=
+makedepends="$depends_dev ruby"
+install=""
+subpackages=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+
+build() {
+ return 0
+}
+
+package() {
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
+ mkdir -p "$pkgdir" || return 1
+
+ gem install --local --install-dir "$pkgdir"/$_gemdir \
+ --ignore-dependencies --verbose --no-rdoc --no-ri \
+ "$srcdir"/$_gemname-$pkgver.gem || return 1
+ rm -rf "$pkgdir"/$_gemdir/cache \
+ "$pkgdir"/$_geminstdir/ext \
+ "$pkgdir"/$_geminstdir/.require_paths
+
+ cd "$pkgdir"
+ for i in usr/lib/ruby/gems/*/bin/*; do
+ if [ -e "$i" ]; then
+ mkdir -p "$pkgdir"/usr/bin
+ ln -s /$i "$pkgdir"/usr/bin/
+ fi
+ done
+}
+
+md5sums="e89156f674088447f22261b3872899a8 railties-4.2.5.2.gem"
+sha256sums="cfff64cbc0e409341003c35fa2e576e6a8cd8259a9894d09f15c6123be73f146 railties-4.2.5.2.gem"
+sha512sums="5857debf0518e7f39d4c55bafa207c36106797b1408ac6cb91c7593bd4dc0e4820ec8c4595e2cab56a910d001abf8d455e78d6f9a07b595454a3fde4c536520b railties-4.2.5.2.gem"