summaryrefslogtreecommitdiff
blob: 5f85e39fe5c6ade1e5b335552cf7da8fd36ef66d (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
36
37
38
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/uudeview/uudeview-0.5.18.ebuild,v 1.1 2002/11/08 14:26:16 hanno Exp $

IUSE="tcltk"

S="${WORKDIR}/${P}"
DESCRIPTION="uu, xx, base64, binhex decoder"

SRC_URI="http://www.fpx.de/fp/Software/UUDeview/download/${P}.tar.gz"
HOMEPAGE="http://www.fpx.de/fp/Software/UUDeview/"
KEYWORDS="~x86 ~sparc ~sparc64"
SLOT="0"
LICENSE="GPL-2"
DEPEND="tcltk?  ( dev-lang/tcl dev-lang/tk )"

src_compile() {
	local myconf
	use tcltk || myconf="--disable-tcl --disable-tk"

	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--infodir=/usr/share/info \
		${myconf} \
		--mandir=${D}/usr/share/man || die "./configure failed"
	emake || die
}

src_install () {
	make \
		prefix=${D}/usr \
		infodir=${D}/usr/share/info \
		install || die

	# Install documentation.
	dodoc COPYING INSTALL README
}