# Copyright 1999-2006 Gentoo Foundation # 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.56.ebuild,v 1.4 2006/07/04 14:28:43 squinky86 Exp $ MY_P=${P/-bin/} MY_P=${MY_P%.*}-${MY_P##*.} DESCRIPTION="a powerful frontend for mldonkey" HOMEPAGE="http://sancho-gui.sourceforge.net/" SRC_URI="http://sancho-gui.sourceforge.net/dl/tmp94/${MY_P}-linux-gtk.tar.bz2" KEYWORDS="amd64 x86" SLOT="0" LICENSE="CPL-1.0 LGPL-2.1" DEPEND="virtual/libc || ( ( x11-libs/libXxf86vm x11-libs/libXext x11-libs/libX11 ) virtual/x11 ) >=x11-libs/gtk+-2 >=net-libs/linc-1.0.3 amd64? ( >=app-emulation/emul-linux-x86-baselibs-1.0 >=app-emulation/emul-linux-x86-gtklibs-1.0 )" S="${WORKDIR}/${MY_P}-linux-gtk" 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 insinto /etc/revdep-rebuild doins ${FILESDIR}/50-${PN} } pkg_postinst() { einfo einfo "Sancho requires the presence of a p2p core, like" einfo "net-p2p/mldonkey, in order to operate." einfo }