aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-unf-ext
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-29 08:11:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-29 12:36:41 +0000
commit80acbaee801184140fac0c967cbb8aa051db2b06 (patch)
tree77c8128eadea951dd93cce5ba6632c5ddc120426 /unmaintained/ruby-unf-ext
parent5db5ee5c13e577e862e822501b2e4863fbd63195 (diff)
downloadaports-80acbaee801184140fac0c967cbb8aa051db2b06.tar.bz2
aports-80acbaee801184140fac0c967cbb8aa051db2b06.tar.xz
move testing/ruby-* to unmaintained
ruby-mime-types and ruby-nokogiri was there already so remove those
Diffstat (limited to 'unmaintained/ruby-unf-ext')
-rw-r--r--unmaintained/ruby-unf-ext/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/ruby-unf-ext/APKBUILD b/unmaintained/ruby-unf-ext/APKBUILD
new file mode 100644
index 0000000000..cdc5153ea1
--- /dev/null
+++ b/unmaintained/ruby-unf-ext/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+
+_gemname=unf_ext
+pkgname=ruby-$_gemname
+pkgver=0.0.7.1
+pkgrel=1
+pkgdesc="Unicode Normalization Form support library for CRuby"
+arch="all"
+url="https://github.com/knu/ruby-unf_ext"
+license="MIT"
+depends="ruby"
+makedepends="ruby-dev"
+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.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+md5sums="39bfbb9e124410f57a97d1837f02d42a unf_ext-0.0.7.1.gem"
+sha256sums="ab58d1a808d38872817bea89fc3f055bfc250af48d9653425e35c7c18caec253 unf_ext-0.0.7.1.gem"
+sha512sums="06239dc5870ad0f345266b12ad6ed9508ab731dfd37b450d0e1eae1ef8e8301f8ad1ef7fffbbcf69b56b0af5aa257ea279dda3a252bdf397d11949e9885db3d4 unf_ext-0.0.7.1.gem"