aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-htmlentities/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-29 08:06:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-29 12:36:41 +0000
commitf58e361776f7398d806321ea9d63f59f5fc38b5d (patch)
treeeea648afb288a35c5b1e2bffb3d3b4442578b08b /unmaintained/ruby-htmlentities/APKBUILD
parentb951abfe754edd478b0a17f12cad5fb56e42eee1 (diff)
downloadaports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.bz2
aports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.xz
move community/ruby-* to unmaintained
Diffstat (limited to 'unmaintained/ruby-htmlentities/APKBUILD')
-rw-r--r--unmaintained/ruby-htmlentities/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/unmaintained/ruby-htmlentities/APKBUILD b/unmaintained/ruby-htmlentities/APKBUILD
new file mode 100644
index 0000000000..8e06465b32
--- /dev/null
+++ b/unmaintained/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"