diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-05-27 14:18:25 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-05-27 16:28:25 +0200 |
commit | f1c1b7843ac95e3a42b2c22e49827f4e615777b5 (patch) | |
tree | e797f01438eb297be7271f71763bad2b6d2c5cec /testing | |
parent | d3b914236b64f987c10cce1ed21bcae9ff7115b3 (diff) | |
download | aports-f1c1b7843ac95e3a42b2c22e49827f4e615777b5.tar.bz2 aports-f1c1b7843ac95e3a42b2c22e49827f4e615777b5.tar.xz |
testing/ruby-sanitize: new aport
Whitelist-based HTML sanitizer
http://rubygems.org/gems/sanitize
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-sanitize/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-sanitize/APKBUILD b/testing/ruby-sanitize/APKBUILD new file mode 100644 index 0000000000..b532c9bb9b --- /dev/null +++ b/testing/ruby-sanitize/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Seung Soo Mun <hamletmun@gmail.com> +# Maintainer: +_gemname=sanitize +pkgname=ruby-$_gemname +pkgver=2.1.0 +pkgrel=0 +pkgdesc="Whitelist-based HTML sanitizer" +url="http://rubygems.org/gems/$_gemname" +arch="noarch" +license="MIT" +depends="ruby ruby-nokogiri" +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 +} + +md5sums="de4969351643836ca2a48d010167ba03 sanitize-2.1.0.gem" +sha256sums="c3be075f5b38a1b02404be5778b181e50fba9ab253bac851cb217d9a71375b77 sanitize-2.1.0.gem" +sha512sums="29a26e37342a75af2bc7795578edf2c5064263c58d38dfc36e18f1e111271616c026f7d808a05d63185c12f0e52384db84d62bdb796bf1b21d7e902ef0c1d096 sanitize-2.1.0.gem" |