summaryrefslogtreecommitdiff
blob: d9a728a6c892424477cfad32f5c920f5d735fed4 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/sancho-bin/sancho-bin-0.9.4.3.ebuild,v 1.2 2004/05/01 06:02:12 squinky86 Exp $

IUSE="gtk2"

DESCRIPTION="a powerful frontend for mldonkey"
SRC_URI="gtk2? ( http://sancho-gui.sourceforge.net/tmp/${PN/-bin/}-${PV/.3/-3}-linux-gtk.tar.bz2 )
	!gtk2? ( http://sancho-gui.sourceforge.net/tmp/${PN/-bin/}-${PV/.3/-3}-linux-fox.tar.bz2 )"
HOMEPAGE="http://sancho-gui.sourceforge.net/"

KEYWORDS="~x86"
SLOT="0"
LICENSE="CPL-1.0 LGPL-2.1"
RESTRICT="nomirror"

DEPEND="virtual/glibc
	virtual/x11
	gtk2? ( >=x11-libs/gtk+-2 )"

use gtk2 && TOOLKIT="gtk" || TOOLKIT="fox"
S="${WORKDIR}/${PN/-bin/}-${PV/.3/-3}-linux-${TOOLKIT}"

src_compile() {
	einfo "Nothing to compile."
}

src_install() {
	dodir /opt/sancho
	dodir /opt/bin

	cd ${S}
	cp -dpR sancho distrib lib ${D}/opt/sancho

	exeinto /opt/sancho
	doexe sancho-bin

	exeinto /opt/bin
	newexe ${FILESDIR}/sancho.sh sancho

	dodir /etc/env.d
	echo -e "PATH=/opt/sancho\n" > ${D}/etc/env.d/20sancho
}

pkg_postinst() {
	einfo
	einfo "Sancho requires the presence of a p2p core, like"
	einfo "net-p2p/mldonkey, in order to operate."
	einfo
}