aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-rmagick/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-rmagick/APKBUILD
parentb951abfe754edd478b0a17f12cad5fb56e42eee1 (diff)
downloadaports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.bz2
aports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.xz
move community/ruby-* to unmaintained
Diffstat (limited to 'unmaintained/ruby-rmagick/APKBUILD')
-rw-r--r--unmaintained/ruby-rmagick/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/unmaintained/ruby-rmagick/APKBUILD b/unmaintained/ruby-rmagick/APKBUILD
new file mode 100644
index 0000000000..a8d527a51a
--- /dev/null
+++ b/unmaintained/ruby-rmagick/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=ruby-rmagick
+_gemname=rmagick
+pkgver=2.15.4
+pkgrel=0
+pkgdesc="Ruby ImageMagick interface"
+url="http://rmagick.rubyforge.org"
+arch="all"
+license="custom"
+depends="ruby ghostscript-fonts"
+depends_dev="ruby-dev imagemagick-dev freetype-dev libjpeg-turbo-dev zlib-dev"
+makedepends="$depends_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="ca28bf18354103aada43bbe070c3df4d rmagick-2.15.4.gem"
+sha256sums="69db6635c2630ffd63c1858646cbc280226f31a7bc34e1c9d1322c2c73e1e386 rmagick-2.15.4.gem"
+sha512sums="9cb43632e510e3592e3a643117d61020d6cbec932acecc19c1e977cca001ccc04bae46669895fa2f5f0e8d43c09f1c2c429595a9358a4a74cbdbb4ecd8957b80 rmagick-2.15.4.gem"