summaryrefslogtreecommitdiff
blob: dbd88452e64f3ef2a57ba09ac97d22bf9ba2ab89 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit eutils

DESCRIPTION="Convert between any document format supported by OpenOffice"
HOMEPAGE="http://dag.wieers.com/home-made/unoconv/"
SRC_URI="http://dag.wieers.com/home-made/unoconv/${P}.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
IUSE=""

SLOT="0"

RDEPEND=">=dev-lang/python-2.5
	 || ( app-office/openoffice  app-office/openoffice-bin
        app-office/libreoffice app-office/libreoffice-bin )"
DEPEND="${RDEPEND}
        dev-python/setuptools
      >=app-text/asciidoc-8.2.6"

src_prepare() {
	epatch "${FILESDIR}/fix_empty_ld_path.patch"
	epatch "${FILESDIR}/fix_libreoffice_support.patch"
}

src_install() {
	emake docs DESTDIR="${D}"
	emake docs-install DESTDIR="${D}"
	emake install DESTDIR="${D}"
	emake install-links DESTDIR="${D}"
}