summaryrefslogtreecommitdiff
blob: 2cd69b708fe462bb8f43d98122ae12efc497e4ac (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-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/num-utils/num-utils-0.5.ebuild,v 1.5 2009/03/28 20:17:08 mr_bones_ Exp $

IUSE=""

DESCRIPTION="A set of programs for dealing with numbers from the command line"
SRC_URI="http://suso.suso.org/programs/num-utils/downloads/${P}.tar.gz"
HOMEPAGE="http://suso.suso.org/programs/num-utils/"
LICENSE="GPL-2"
DEPEND=""
RDEPEND="dev-lang/perl"

SLOT="0"
KEYWORDS="~amd64 ~x86 ~ppc"

src_compile() {
	# bug #248324
	mv normalize nnormalize || die
	sed -i \
		-e 's/^RPMDIR/#RPMDIR/' \
		-e 's/COPYING//' \
		-e '/^DOCS/s/MANIFEST//' \
		-e 's/normalize/nnormalize/' \
		Makefile || die "sed Makefile failed"
	emake || die "emake failed"
}

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

pkg_postinst() {
	elog "normalize has been renamed nnormalize"
}