| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/orpie/orpie-1.5.1-r1.ebuild,v 1.5 2011/02/12 16:03:49 xarthisius Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit eutils autotools
|
| 7 |
|
| 8 |
DESCRIPTION="A fullscreen RPN calculator for the console"
|
| 9 |
HOMEPAGE="http://pessimization.com/software/orpie/"
|
| 10 |
SRC_URI="http://pessimization.com/software/${PN}/${P}.tar.gz"
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
|
| 15 |
IUSE="doc"
|
| 16 |
|
| 17 |
DEPEND="dev-ml/ocamlgsl
|
| 18 |
sys-libs/ncurses"
|
| 19 |
RDEPEND="${DEPEND}"
|
| 20 |
|
| 21 |
src_prepare() {
|
| 22 |
epatch "${FILESDIR}"/${P}-ocaml311.patch
|
| 23 |
epatch "${FILESDIR}"/${P}-nogsl.patch
|
| 24 |
epatch "${FILESDIR}"/${P}-orpierc.patch
|
| 25 |
sed -i -e "s:/usr:${EPREFIX}/usr:g" Makefile.in || die
|
| 26 |
eautoreconf
|
| 27 |
}
|
| 28 |
|
| 29 |
src_install() {
|
| 30 |
default
|
| 31 |
use doc && dodoc doc/manual.pdf && dohtml doc/manual.html
|
| 32 |
}
|