blob: a996f92604d402d2741d97862b71395158ef37e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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"
|