aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-03-26 10:48:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-26 14:21:45 +0000
commit871565823f7d36a83b4cd277efaaa9d9d1f68eb8 (patch)
treeaaefda523eed85244b83a99158bfa517ad1ea9fd
parent4c2360b7e5d03951f0c520d077edf7911ec20aa3 (diff)
downloadaports-871565823f7d36a83b4cd277efaaa9d9d1f68eb8.tar.bz2
aports-871565823f7d36a83b4cd277efaaa9d9d1f68eb8.tar.xz
main/ruby-protected_attributes4.2: new aport
needed by redmine
-rw-r--r--main/ruby-protected_attributes4.2/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/ruby-protected_attributes4.2/APKBUILD b/main/ruby-protected_attributes4.2/APKBUILD
new file mode 100644
index 0000000000..3e9eb65365
--- /dev/null
+++ b/main/ruby-protected_attributes4.2/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=protected_attributes
+pkgname=ruby-${_gemname}4.2
+pkgver=1.0.9
+pkgrel=0
+pkgdesc="Protect attributes from mass assignment for rails 4.2"
+url="https://github.com/rails/protected_attributes"
+arch="noarch"
+license="MIT"
+depends="ruby ruby-activemodel4.2"
+depends_dev=
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+
+_builddir="$srcdir"/$_realname-$pkgver
+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="6e0b5577d2d5a7cc23275dc9cc212152 protected_attributes-1.0.9.gem"
+sha256sums="d35a1c8664a47bd83ae3e47b1cebdba5c678a2f9f3d20196f80fa5aed29abd14 protected_attributes-1.0.9.gem"
+sha512sums="5317d8c7ebc70e3b3f465e82d0e1c6565815d5f2a9fa58269dec7e1b7d97a5b6ca02b69c5141ee2b38db6bd8c8482dc7258efff1822829c58c60390559f91f65 protected_attributes-1.0.9.gem"