aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-unf
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-05-29 08:57:37 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-05-29 09:01:18 +0000
commitbdc7bf095a094540d434ee5524acf78e4bdf9088 (patch)
treef3211f34e1dba019e91222a3aae763b731dcce3d /testing/ruby-unf
parent10e9ccbfdc69e8caab1d3c781f81e03711daf40b (diff)
downloadaports-bdc7bf095a094540d434ee5524acf78e4bdf9088.tar.bz2
aports-bdc7bf095a094540d434ee5524acf78e4bdf9088.tar.xz
testing/ruby-unf: new aport
Diffstat (limited to 'testing/ruby-unf')
-rw-r--r--testing/ruby-unf/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/ruby-unf/APKBUILD b/testing/ruby-unf/APKBUILD
new file mode 100644
index 0000000000..16e36c4f8b
--- /dev/null
+++ b/testing/ruby-unf/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+
+_gemname=unf
+pkgname=ruby-$_gemname
+pkgver=0.1.4
+pkgrel=0
+pkgdesc="A wrapper library to bring Unicode Normalization Form support to Ruby/JRuby"
+arch="noarch"
+url="https://github.com/knu/ruby-unf"
+license="'2-clause BSDL'"
+depends="ruby ruby-unf_ext"
+source="https://rubygems.org/downloads/$_gemname-$pkgver.gem"
+_builddir="$srcdir"/$_gemname-$pkgver
+
+build() {
+ mkdir -p "$_builddir" || return 1
+ export _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \
+ --ignore-dependencies \
+ --verbose \
+ --no-rdoc \
+ --no-ri \
+ || return 1
+ rm -rf "$pkgdir"/$_gemdir/cache \
+ "$pkgdir"/$_geminstdir/ext \
+ "$pkgdir"/$_geminstdir/.require_paths
+}
+
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+md5sums="64009f92a131c50bc1a932dc50d562c6 unf-0.1.4.gem"
+sha256sums="4999517a531f2a955750f8831941891f6158498ec9b6cb1c81ce89388e63022e unf-0.1.4.gem"
+sha512sums="a4784afa8b852497f758d1b6cdcf095eb9e5397a36c97b1f22b53cf8077cfedbf83fdcda36f359acf59ba61f1ab8b706ddd31d097afbc98a40d2dbd0f934292b unf-0.1.4.gem"