summaryrefslogtreecommitdiff
blob: f76702b1c1e5c8ef48768c0479115f45582a26ec (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/wpd2sxw/wpd2sxw-0.6.1.ebuild,v 1.2 2005/01/01 16:41:55 eradicator Exp $

DESCRIPTION="WordPerfect Document (wpd) to OpenOffice.org (sxw) converter"
HOMEPAGE="http://libwpd.sf.net"
SRC_URI="mirror://sourceforge/libwpd/${P}.tar.gz
	perl? ( http://libwpd.sourceforge.net/wpd2sxwbatch.pl )"
RESTRICT="nomirror"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="perl"
DEPEND="gnome-extra/libgsf
	>=app-text/libwpd-0.7.1
	perl? ( dev-lang/perl )"

src_unpack() {
	unpack ${P}.tar.gz
	cd ${S}
}

src_compile() {
	econf || die "configure failed"
	emake || die "make failed"
}

src_install() {
	einstall || die "install failed"
	dobin ${DISTDIR}/wpd2sxwbatch.pl
}