aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-rails-html-sanitizer
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-12-26 10:10:32 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-12-26 11:18:11 +0200
commit7ca30c3cdf5ab3e6f0c8ccc504d6fd388640b879 (patch)
tree7778db110dfe49f84723d4bdff374a649c0a3d9c /main/ruby-rails-html-sanitizer
parent3d0e8152811d813dd751ab8d55231b00f32beedd (diff)
downloadaports-7ca30c3cdf5ab3e6f0c8ccc504d6fd388640b879.tar.bz2
aports-7ca30c3cdf5ab3e6f0c8ccc504d6fd388640b879.tar.xz
main/ruby-rails: upgrade to 4.2.0
Diffstat (limited to 'main/ruby-rails-html-sanitizer')
-rw-r--r--main/ruby-rails-html-sanitizer/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/main/ruby-rails-html-sanitizer/APKBUILD b/main/ruby-rails-html-sanitizer/APKBUILD
new file mode 100644
index 0000000000..943ca4a653
--- /dev/null
+++ b/main/ruby-rails-html-sanitizer/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+_gemname=rails-html-sanitizer
+pkgname=ruby-$_gemname
+pkgver=1.0.1
+pkgrel=0
+pkgdesc="HTML sanitization for Rails applications"
+url=http://rubyonrails.org/
+arch=noarch
+license=MIT
+depends="ruby ruby-loofah"
+depends_dev=
+makedepends="$depends_dev ruby"
+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
+}
+
+md5sums="6c56594b2ac8bfb75da4e6dc97983b48 rails-html-sanitizer-1.0.1.gem"
+sha256sums="f8c08716c30a087d655ff99249a8cafd426344dc96d6647ee9015e4d06a08dee rails-html-sanitizer-1.0.1.gem"
+sha512sums="05c4cbf5d49c6ed0c90bfe37bb10d1c12c69eb50170cb1bf8affddf3a02a12a2e043687fc541c4dd178c92040b3d3967bc643df759c699e325cead1a047b9f30 rails-html-sanitizer-1.0.1.gem"