blob: 754d6785086ff78dc97f2e8853dd3060e571388c (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/xsmbrowser/xsmbrowser-3.4.0.ebuild,v 1.11 2004/08/21 21:36:35 dholm Exp $
DESCRIPTION="GUI SMB browser with preview written in expect"
HOMEPAGE="http://www.public.iastate.edu/~chadspen/xsmbrowser.html"
SRC_URI="http://www.public.iastate.edu/~chadspen/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~sparc ~amd64 ~ppc"
IUSE="X"
RDEPEND="virtual/x11
net-fs/samba
dev-tcltk/expect"
pkg_setup() {
if ! use X; then
eerror
eerror "You must have X in your USE flags. Expect must be compiled with X support."
eerror "Without X support, xSMBrowser will not function."
eerror
eerror "If expect is already merged, you probably have to remerge it with USE=\"X\"."
eerror
die "You must have USE=\"X\"."
fi
}
src_install() {
dobin ${S}/xsmbrowser || die "xsmbrowser dobin failed"
# fix the default pixmap path
dosed s:\"pixmaps\":\"/usr/share/pixmaps/xsmbrowser\": \
/usr/bin/xsmbrowser || die "Pixmap path fix failed"
insinto /usr/share/pixmaps/xsmbrowser
doins ${S}/pixmaps/* || die "Pixmap doins failed"
}
|