1 |
# Copyright 1999-2004 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/xsmbrowser/xsmbrowser-3.4.0.ebuild,v 1.11 2004/08/21 21:36:35 dholm Exp $ |
4 |
|
5 |
DESCRIPTION="GUI SMB browser with preview written in expect" |
6 |
HOMEPAGE="http://www.public.iastate.edu/~chadspen/xsmbrowser.html" |
7 |
SRC_URI="http://www.public.iastate.edu/~chadspen/${P}.tar.gz" |
8 |
|
9 |
LICENSE="GPL-2" |
10 |
SLOT="0" |
11 |
KEYWORDS="x86 ~sparc ~amd64 ~ppc" |
12 |
IUSE="X" |
13 |
|
14 |
RDEPEND="virtual/x11 |
15 |
net-fs/samba |
16 |
dev-tcltk/expect" |
17 |
|
18 |
pkg_setup() { |
19 |
if ! use X; then |
20 |
eerror |
21 |
eerror "You must have X in your USE flags. Expect must be compiled with X support." |
22 |
eerror "Without X support, xSMBrowser will not function." |
23 |
eerror |
24 |
eerror "If expect is already merged, you probably have to remerge it with USE=\"X\"." |
25 |
eerror |
26 |
die "You must have USE=\"X\"." |
27 |
fi |
28 |
} |
29 |
|
30 |
src_install() { |
31 |
dobin ${S}/xsmbrowser || die "xsmbrowser dobin failed" |
32 |
|
33 |
# fix the default pixmap path |
34 |
dosed s:\"pixmaps\":\"/usr/share/pixmaps/xsmbrowser\": \ |
35 |
/usr/bin/xsmbrowser || die "Pixmap path fix failed" |
36 |
|
37 |
insinto /usr/share/pixmaps/xsmbrowser |
38 |
doins ${S}/pixmaps/* || die "Pixmap doins failed" |
39 |
} |