summaryrefslogtreecommitdiff
blob: 96a64d2dec3f515e8e14102ddb69267b494d908a (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-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License
# $Header: /var/cvsroot/gentoo-x86/net-misc/xsmbrowser/xsmbrowser-3.4.0.ebuild,v 1.3 2003/09/05 22:01:49 msterret Exp $

DESCRIPTION="GUI SMB browser with preview written in expect"
HOMEPAGE="http://www.public.iastate.edu/~chadspen/xsmbrowser.html"
LICENSE="GPL-2"
RDEPEND="virtual/x11
	 net-fs/samba
	 dev-tcltk/expect"
KEYWORDS="x86"
SLOT="0"
SRC_URI="http://www.public.iastate.edu/~chadspen/${P}.tar.gz"
S=${WORKDIR}/${P}

pkg_setup() {
	if [ -z "`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"
}