summaryrefslogtreecommitdiff
blob: 2589133c3aff6d7df1cb1b80274fd95cb1a2574c (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
35
36
37
38
39
40
41
42
43
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/libxml/libxml-0.3.8.4.ebuild,v 1.4 2007/05/20 08:42:11 opfer Exp $

inherit ruby

MY_P=${PN}-ruby-${PV}
S="${WORKDIR}/${MY_P}"

DESCRIPTION="libxml for Ruby with a user friendly API, akin to REXML, but feature complete and significantly faster."
HOMEPAGE="http://libxml.rubyforge.org"
SRC_URI="http://rubyforge.org/frs/download.php/15237/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="doc"
USE_RUBY="ruby18 ruby19"

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

src_compile() {
	rake compile || die "rake compile failed"

	if use doc ; then
		rake doc || die "rake doc failed"
	fi
}

src_test() {
	rake test || die "rake test failed"
}

src_install() {
	rake install DESTDIR="${D}"

	dodoc CHANGELOG README

	if use doc ; then
		dohtml -r html/*
	fi
}