summaryrefslogtreecommitdiff
blob: 476a3ee0e39e6faf6f48629e21fc312eb8571cea (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-mmap/ruby-mmap-0.2.6.ebuild,v 1.3 2008/10/06 10:09:25 flameeyes Exp $

inherit ruby

IUSE=""

MY_P=${P/ruby-/}

DESCRIPTION="The Mmap class implement memory-mapped file objects"
HOMEPAGE="http://moulon.inra.fr/ruby/mmap.html"
SRC_URI="ftp://moulon.inra.fr/pub/ruby/${MY_P}.tar.gz"

SLOT="0"
USE_RUBY="ruby18 ruby19"
LICENSE="Ruby"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}

	if built_with_use --missing false dev-lang/ruby cjk; then
		cd "${S}"
		epatch "${FILESDIR}/${P}-oniguruma_rb_reg_regsub.patch"
	fi
}

src_compile() {
	ruby_src_compile all rdoc || die
}