aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-coderay/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-coderay/APKBUILD
parentb951abfe754edd478b0a17f12cad5fb56e42eee1 (diff)
downloadaports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.bz2
aports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.xz
move community/ruby-* to unmaintained
Diffstat (limited to 'unmaintained/ruby-coderay/APKBUILD')
-rw-r--r--unmaintained/ruby-coderay/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/unmaintained/ruby-coderay/APKBUILD b/unmaintained/ruby-coderay/APKBUILD
new file mode 100644
index 0000000000..a996f92604
--- /dev/null
+++ b/unmaintained/ruby-coderay/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=coderay
+pkgname=ruby-coderay
+pkgver=1.1.1
+pkgrel=0
+pkgdesc="Fast and easy syntax highlighting"
+url="http://coderay.rubychan.de"
+arch="noarch"
+license="MIT"
+depends="ruby"
+depends_dev=
+makedepends="$depends_dev ruby"
+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
+
+ cd "$pkgdir"
+ for i in usr/lib/ruby/gems/*/bin/*; do
+ if [ -e "$i" ]; then
+ mkdir -p "$pkgdir"/usr/bin
+ ln -s /$i "$pkgdir"/usr/bin/
+ fi
+ done
+}
+
+md5sums="6f60cedad4f128b38bd8eaf40490f328 coderay-1.1.1.gem"
+sha256sums="79a42eba4cbe2b056ba253eb02d1a7aec74ca951e54f33098830641e8748dff4 coderay-1.1.1.gem"
+sha512sums="7b2bbf51e6625a252f7eb6de6d3a5b2d401a3bcbd5ed3074a8a34e468bcbd4400f54906dd9ce0c7afcd2dd56b0bb28a597d2e01c614d19388f1576385bf4e97f coderay-1.1.1.gem"