summaryrefslogtreecommitdiff
blob: 0e946eca481e98f74ea7ae638fab6e78d3311d44 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/bwidget/bwidget-1.8.0.ebuild,v 1.4 2012/06/07 20:39:34 zmedico Exp $

inherit eutils multilib

DESCRIPTION="high-level widget set for Tcl/Tk completely written in Tcl"

MY_PN=${PN/bw/BW}
MY_P=${MY_PN}-${PV}
HOMEPAGE="http://tcllib.sourceforge.net/"
SRC_URI="mirror://sourceforge/tcllib/${MY_P}.tar.gz"
IUSE="doc"
LICENSE="BWidget"
SLOT="0"
KEYWORDS="~alpha amd64 ~ppc ~ppc64 ~sparc x86"

DEPEND="dev-lang/tk
		dev-lang/tcl"

S=${WORKDIR}/${MY_P}

src_install() {
	cd ${S}
	insinto /usr/$(get_libdir)/${P}
	doins *.tcl
	cp -R images lang ${D}usr/$(get_libdir)/${P}
	dodoc ChangeLog LICENSE.txt README.txt
	cp -R demo ${D}usr/share/doc/${PF}/
	use doc && dohtml BWman/*
}