blob: fef17372612afd2113d94e5f1c8e44a54432e93e (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby20"
GITHUB_URI="https://github.com/Flameeyes/${PN}"
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="${GITHUB_URI}.git"
fi
RUBY_FAKEGEM_RECIPE_TEST="none"
RUBY_FAKEGEM_RECIPE_DOC="none"
RUBY_FAKGEM_GESPEC="${PN}.gemspec"
inherit ruby-fakegem ${EGIT_REPO_URI:+git-2}
if [[ -n ${EGIT_REPO_URI} ]]; then
SRC_URI=""
else
SRC_URI="${GITHUB_URI}/archive/${PV}.tar.gz -> ${P}.tar.gz"
fi
DESCRIPTION="Ruby library to access ELF files information"
HOMEPAGE="http://www.flameeyes.eu/projects/ruby-elf"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS=""
IUSE="test"
ruby_add_bdepend "
test? ( dev-ruby/test-unit:2 )
dev-ruby/rake"
# for the man pages
DEPEND+="
dev-libs/libxslt
app-text/docbook-xsl-ns-stylesheets"
RDEPEND+="
virtual/man"
if [[ ${PV} == "9999" ]]; then
all_ruby_unpack() {
git_src_unpack
}
fi
all_ruby_compile() {
# build the man pages
rake manpages || die "rake manpages failed"
}
each_ruby_test() {
ruby-ng_testrb-2 test/test_*.rb
}
all_ruby_install() {
all_fakegem_install
doman manpages/*.1
dodoc DONATING README.md
}
|