| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/o3read/o3read-0.0.4.ebuild,v 1.10 2010/01/02 11:30:59 fauli Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit toolchain-funcs
|
| 8 |
|
| 9 |
DESCRIPTION="Converts OpenOffice formats to text or HTML"
|
| 10 |
HOMEPAGE="http://siag.nu/o3read/"
|
| 11 |
SRC_URI="http://siag.nu/pub/${PN}/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
RESTRICT=test
|
| 19 |
|
| 20 |
src_prepare() {
|
| 21 |
sed \
|
| 22 |
-e 's:-o:$(LDFLAGS) -o:g' \
|
| 23 |
-e '/^CC/d' \
|
| 24 |
-e '/^CFLAGS/g' \
|
| 25 |
-i Makefile || die
|
| 26 |
tc-export CC
|
| 27 |
}
|
| 28 |
|
| 29 |
src_install() {
|
| 30 |
dobin o3read o3totxt o3tohtml utf8tolatin1
|
| 31 |
doman o3read.1 o3tohtml.1 o3totxt.1 utf8tolatin1.1
|
| 32 |
}
|