blob: 67a41e548babcd539015864db88fd2f6e107fb6f (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/iwidgets/iwidgets-4.0.1-r2.ebuild,v 1.1 2009/08/08 01:23:42 mescalinum Exp $
inherit multilib
MY_P="${PN}${PV}"
S="${WORKDIR}/${MY_P}"
ITCL_MY_P="itcl3.2.1"
DESCRIPTION="Widget collection for incrTcl/incrTk"
HOMEPAGE="http://incrtcl.sourceforge.net/itcl/"
SRC_URI="mirror://sourceforge/incrtcl/${MY_P}.tar.gz
mirror://sourceforge/incrtcl/${ITCL_MY_P}_src.tgz"
LICENSE="as-is BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND=">=dev-tcltk/itcl-3.2.1
>=dev-tcltk/itk-3.2.1"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "/^\(LIB\|SCRIPT\)_INSTALL_DIR =/s|lib|$(get_libdir)|" \
Makefile.in || die
# Bug 115470
rm doc/panedwindow.n
}
src_compile() {
econf --with-itcl="${WORKDIR}/${ITCL_MY_P}" || die "configure failed"
# we don't need to compile anything
}
src_install() {
# parallel borks #177088
emake -j1 INSTALL_ROOT="${D}" install || die "emake install failed"
dodoc CHANGES ChangeLog README license.terms
# bug 247184 - iwidget installs man pages in /usr/man
mkdir -p "${D}"/usr/share/man/mann
mv "${D}"/usr/man/mann/* "${D}"/usr/share/man/mann/
rm -rf "${D}"/usr/man
# demos are in the wrong place:
mkdir -p "${D}/usr/share/doc/${PVR}"
mv "${D}/usr/$(get_libdir)/${MY_P}/demos" "${D}/usr/share/doc/${PVR}/"
}
|