diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-03-18 15:50:02 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-03-18 16:26:13 +0100 |
commit | 24f49e24b45e9d9c07a145db641b90244a4d7dda (patch) | |
tree | bef142a61d413c5ddd9bca8e21aaadfdfd89562e /community | |
parent | d23da71229efe181c50ea451f837235a034ad6c6 (diff) | |
download | aports-24f49e24b45e9d9c07a145db641b90244a4d7dda.tar.bz2 aports-24f49e24b45e9d9c07a145db641b90244a4d7dda.tar.xz |
community/ruby-htmlentities: new aport
Diffstat (limited to 'community')
-rw-r--r-- | community/ruby-htmlentities/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/community/ruby-htmlentities/APKBUILD b/community/ruby-htmlentities/APKBUILD new file mode 100644 index 0000000000..8e06465b32 --- /dev/null +++ b/community/ruby-htmlentities/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=ruby-htmlentities +_gemname=htmlentities +pkgver=4.3.1 +pkgrel=0 +pkgdesc="A module for encoding and decoding (X)HTML entities." +url="https://github.com/threedaymonk/htmlentities" +arch="noarch" +license="MIT" +depends="ruby" +depends_dev="" +makedepends="$depends_dev ruby-dev" +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="53a9218c02ef3671d6fc9fe843ebd360 htmlentities-4.3.1.gem" +sha256sums="d199741b653ea3e84a55e07f4d8190806465e693b04031c63c2a215b382e0397 htmlentities-4.3.1.gem" +sha512sums="6da6e1c2903622972ede1633e3d139d41bbe580097301848d9cd89e0f76d1b97ab512e444f7669763e2a4403c774bcbf0333b2b17465801c7c905f8c2acc8df6 htmlentities-4.3.1.gem" |