diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-03-18 16:31:36 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-03-18 16:31:36 +0100 |
commit | ea6a7e16ad7be1532875bd821e60857f33905d66 (patch) | |
tree | 4e4d7b4678911407c1f77cac8742cd95a671f578 /community/ruby-rails-html-sanitizer | |
parent | 840ac4ae3b54497f6839ac673b060a055fc5acc8 (diff) | |
download | aports-ea6a7e16ad7be1532875bd821e60857f33905d66.tar.bz2 aports-ea6a7e16ad7be1532875bd821e60857f33905d66.tar.xz |
redmine: move with deps to community
Diffstat (limited to 'community/ruby-rails-html-sanitizer')
-rw-r--r-- | community/ruby-rails-html-sanitizer/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/ruby-rails-html-sanitizer/APKBUILD b/community/ruby-rails-html-sanitizer/APKBUILD new file mode 100644 index 0000000000..42ea34c06f --- /dev/null +++ b/community/ruby-rails-html-sanitizer/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +_gemname=rails-html-sanitizer +pkgname=ruby-$_gemname +pkgver=1.0.3 +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" + +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="d13c644238baf23fb79d39c820c51a11 rails-html-sanitizer-1.0.3.gem" +sha256sums="a7da8eb4ce2e673ba909d36a94a9e06f196e88a92e76d01dfee3803d0d6a0e8d rails-html-sanitizer-1.0.3.gem" +sha512sums="84d91014384773389492d7cde0afcdc7e3324320970788d88861f89395d847d2599d1e645177f5301109194805ffb684f591e287f3e4280117738416655d934a rails-html-sanitizer-1.0.3.gem" |