aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-yard/APKBUILD
blob: 477fa53f132ee801537250a51747708fc2804735 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: 
_gemname=yard
pkgname=ruby-yard
pkgver=0.8.5.2
pkgrel=0	
pkgdesc="A documentation generation tool for Ruby"
url="http://yardoc.org"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev=""
makedepends="ruby-dev ruby-gems"
install=""
subpackages=""
source="http://rubygems.org/downloads/$_gemname-$pkgver.gem"

_builddir="$srcdir"/$_gemname-$pkgver
build() {
	mkdir -p "$_builddir" || return 1
	local _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
}

md5sums="3dd47e06fb17c7b7de88eb02bfbfb57b  yard-0.8.5.2.gem"
sha256sums="6c69c6e488df57d268a8ad406420a28217286a531e15788ae08bbd5266d42a5f  yard-0.8.5.2.gem"
sha512sums="a166971827b6692035dabb0e8f69b442e664403af79fc56f48184088f0ca5f1b198d0d81d4eb25042151968ef5f493b8146ab4e933700a8649c69cff99cbb649  yard-0.8.5.2.gem"