/[gentoo-x86]/dev-ruby/rb-inotify/rb-inotify-0.8.8.ebuild
Gentoo

Contents of /dev-ruby/rb-inotify/rb-inotify-0.8.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Sep 29 15:18:12 2012 UTC (21 months, 1 week ago) by grobian
Branch: MAIN
Changes since 1.7: +2 -2 lines
Marked ~x64-macos

(Portage version: 2.2.01.21143-prefix/cvs/Darwin i386)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rb-inotify/rb-inotify-0.8.8.ebuild,v 1.7 2012/09/25 06:10:27 graaff Exp $
4
5 EAPI=4
6
7 USE_RUBY="ruby18 ruby19 ree18 jruby"
8
9 RUBY_FAKEGEM_TASK_TEST=""
10
11 RUBY_FAKEGEM_TASK_DOC="yard"
12 RUBY_FAKEGEM_DOCDIR="doc"
13 RUBY_FAKEGEM_EXTRADOC="README.md"
14
15 RUBY_FAKEGEM_EXTRAINSTALL="VERSION"
16
17 RUBY_FAKEGEM_GEMSPEC="rb-inotify.gemspec"
18
19 inherit ruby-fakegem
20
21 DESCRIPTION="A thorough inotify wrapper for Ruby using FFI."
22 HOMEPAGE="https://github.com/nex3/rb-inotify"
23
24 LICENSE="MIT"
25 SLOT="0"
26 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x64-macos"
27 IUSE=""
28
29 ruby_add_rdepend "virtual/ruby-ffi"
30
31 ruby_add_bdepend "doc? ( dev-ruby/yard )"
32
33 all_ruby_prepare() {
34 # Avoid unneeded dependency on jeweler.
35 sed -i -e '/:build/ s:^:#:' -e '/module Jeweler/,/^end/ s:^:#:' -e '/class Jeweler/,/^end/ s:^:#:' Rakefile || die
36
37 # Remove mandatory markup processor from yard options, bug 436112.
38 sed -i -e '/maruku/d' .yardopts || die
39 }
40
41 each_ruby_prepare() {
42 case ${RUBY} in
43 *jruby)
44 # jruby has a native implementation and should not list ffi
45 # in the gemspec.
46 sed -i -e '/ffi/d' rb-inotify.gemspec || die
47 ;;
48 *)
49 ;;
50 esac
51 }

  ViewVC Help
Powered by ViewVC 1.1.20