summaryrefslogtreecommitdiff
blob: f3874be306742143a1105a29e49c2d8242294927 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-dicts/bookview/bookview-3.2.ebuild,v 1.6 2005/01/01 12:47:12 eradicator Exp $

inherit eutils

DESCRIPTION="NDTP client written in Tcl/Tk"
HOMEPAGE="http://www.sra.co.jp/people/m-kasahr/bookview/"
SRC_URI="ftp://ftp.sra.co.jp/pub/net/ndtp/bookview/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="cjk"

DEPEND=">=sys-apps/sed-4"
RDEPEND=">=dev-lang/tk-8.3"

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/${P}-gentoo.diff
}

src_compile() {
	econf `use_enable cjk ja-doc` || die
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die

	insinto /etc/X11/app-defaults
	newins ${FILESDIR}/Bookview.ad Bookview

	dodoc AUTHORS ChangeLog* INSTALL NEWS README
	use cjk && dodoc INSTALL-ja README-ja
}