/[gentoo-x86]/dev-ruby/oniguruma/oniguruma-1.1.0-r2.ebuild
Gentoo

Contents of /dev-ruby/oniguruma/oniguruma-1.1.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Jun 5 10:59:26 2010 UTC (4 years, 3 months ago) by graaff
Branch: MAIN
Fix dependencies. Install documentation.
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 graaff 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/dev-ruby/oniguruma/oniguruma-1.1.0-r1.ebuild,v 1.3 2010/05/23 16:52:55 graaff Exp $
4    
5     EAPI="2"
6     USE_RUBY="ruby18"
7    
8     RUBY_FAKEGEM_TASK_DOC="docs"
9     RUBY_FAKEGEM_DOCDIR="doc"
10    
11     RUBY_FAKEGEM_EXTRADOC="History.txt README.txt Syntax.txt"
12    
13     inherit ruby-fakegem
14    
15     DESCRIPTION="Ruby bindings to the Oniguruma"
16     HOMEPAGE="http://oniguruma.rubyforge.org/"
17    
18     LICENSE="BSD-2"
19     SLOT="0"
20     KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
21     IUSE=""
22    
23     DEPEND="${DEPEND} dev-libs/oniguruma"
24     RDEPEND="${RDEPEND} dev-libs/oniguruma"
25    
26     RUBY_PATCHES=( "${P}-unmonkey.patch" )
27    
28     ruby_add_bdepend "
29     doc? ( dev-ruby/hoe )
30     test? (
31     dev-ruby/hoe
32     virtual/ruby-test-unit
33     )"
34    
35     each_ruby_configure() {
36     pushd ext >& /dev/null
37     ${RUBY} extconf.rb
38     popd >& /dev/null
39     }
40    
41     each_ruby_compile() {
42     pushd ext >& /dev/null
43     emake || die "Compilation failed."
44     popd >& /dev/null
45     mv ext/oregexp.so lib || die "Unable to move oregexp.so"
46     }
47    
48     each_ruby_install() {
49     each_fakegem_install
50     }

  ViewVC Help
Powered by ViewVC 1.1.20