summaryrefslogtreecommitdiff
blob: 055cad438e9e845c7becb4288627f15e97f17ec5 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtranslate/libtranslate-0.99.ebuild,v 1.2 2008/01/21 21:42:13 philantrop Exp $

inherit eutils

DESCRIPTION="Library for translating text and web pages between natural languages."
HOMEPAGE="http://www.nongnu.org/libtranslate"
SRC_URI="http://savannah.nongnu.org/download/libtranslate/${P}.tar.gz"

SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="BSD"
IUSE=""

# The tests require the package to be installed already.
RESTRICT="test"

DEPEND=">=dev-libs/glib-2.4.0
		>=net-libs/libsoup-2.2.0
		>=dev-libs/libxml2-2.0
		>=app-text/talkfilters-2.3.4-r1
		>=dev-util/pkgconfig-0.22"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}

	# Upstream patches for several minor issues.
	epatch "${FILESDIR}/${P}-charsetparse.diff"
	epatch "${FILESDIR}/${P}-condfix.diff"
	epatch "${FILESDIR}/${P}-int64.diff"
	epatch "${FILESDIR}/${P}-man-page.diff"
}

src_install() {
	emake DESTDIR="${D}" install || die "installation failed"

	dodoc AUTHORS NEWS README TODO || die "installing docs failed"
}