/[gentoo-x86]/dev-ruby/fssm/fssm-0.2.8.1.ebuild
Gentoo

Contents of /dev-ruby/fssm/fssm-0.2.8.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Jan 15 06:46:46 2013 UTC (23 months ago) by zerochaos
Branch: MAIN
Changes since 1.5: +3 -3 lines
adding ~arm keywords to net-analyzer/metasploit rdeps

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/fssm/fssm-0.2.8.1.ebuild,v 1.5 2012/08/14 03:40:16 flameeyes Exp $
4
5 EAPI=4
6
7 USE_RUBY="ruby18 ruby19 ree18 jruby"
8
9 RUBY_FAKEGEM_RECIPE_TEST="rspec"
10
11 RUBY_FAKEGEM_TASK_DOC=""
12 RUBY_FAKEGEM_EXTRADOC="README.markdown"
13
14 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
15
16 inherit ruby-fakegem
17
18 DESCRIPTION="File System State Monitor API"
19 HOMEPAGE="http://github.com/ttilley/fssm"
20
21 LICENSE="MIT"
22 SLOT="0"
23 KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
24 IUSE=""
25
26 # rb-inotify is a Linux-specific extension, so we will need to make this
27 # conditional when keywords are added that are not linux-specific.
28 ruby_add_rdepend "kernel_linux? ( >=dev-ruby/rb-inotify-0.8.6-r1 )"
29
30 all_ruby_prepare() {
31 # Remove bundler support
32 sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die
33 rm Gemfile || die
34
35 # Fix/ignore broken specs with patch from upstream
36 epatch "${FILESDIR}/${PN}-0.2.7-test.patch"
37
38 # if we're going to require rb-inotify, let's make sure it gets used
39 # as well; if we don't declare it in the dependencies this will not
40 # be loaded by bundler-based projects to begin with.
41 if use kernel_linux; then
42 sed -i -e '/^end/i s.add_dependency "rb-inotify"' ${RUBY_FAKEGEM_GEMSPEC} || die
43 fi
44
45 # Avoid a dependency on git.
46 sed -i -e '/git ls-files/d' ${PN}.gemspec || die
47 }
48
49 all_ruby_install() {
50 all_fakegem_install
51
52 dodoc example.rb
53 }

  ViewVC Help
Powered by ViewVC 1.1.20