summaryrefslogtreecommitdiff
blob: c9eed6559d62e326f94cec28652daf3d76857d3b (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/libxml/libxml-0.3.4.ebuild,v 1.4 2006/03/30 03:32:01 agriffis Exp $

inherit ruby

DESCRIPTION="libxml for Ruby with a user friendly API, akin to REXML, but feature complete and significantly faster."
HOMEPAGE="http://raa.ruby-lang.org/project/libxml/"
SRC_URI="http://www.rubynet.org/modules/xml/libxml/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~ia64 ~ppc ~sparc ~x86"
IUSE=""
USE_RUBY="ruby16 ruby18 ruby19"

DEPEND="virtual/ruby
	>=dev-libs/libxml2-2.6.6"

src_compile() {
	ruby extconf.rb || die
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die
	erubydoc
}

src_test() {
	cd test
	for i in *.rb ; do
		ruby -rtest/unit $i || die "test $i failed."
	done
}