summaryrefslogtreecommitdiff
blob: 26f6d84553cd9d1f06d33d0c1da6fcbf0139c5e2 (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-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-p2p/mldonkey/mldonkey-1.16.ebuild,v 1.2 2002/07/17 02:25:20 seemant Exp $

myarch=`uname -m`
S="${WORKDIR}/${PN}-shared"
DESCRIPTION="A new client for eDonkey, for file sharing."
SRC_URI="http://freesoftware.fsf.org/download/mldonkey/${P}.shared.${myarch}-Linux.tar.bz2"
HOMEPAGE="http://go.to/mldonkey"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"

DEPEND="gtk? ( x11-libs/gtk+ )"

src_compile() {
	einfo "Nothing to compile for ${P}."
}
src_install () {
	dodoc ChangeLog Readme.txt TODO
	rm -f ${WORKDIR}/mldonkey-shared/ChangeLog
	rm -f ${WORKDIR}/mldonkey-shared/Readme.txt
	rm -f ${WORKDIR}/mldonkey-shared/TODO
	rm -f ${WORKDIR}/mldonkey-shared/mldonkey_gui_started_for_macosx
	dodir /opt/mldonkey
	cp -r ${WORKDIR}/mldonkey-shared/* ${D}/opt/mldonkey
	insinto /etc/env.d
	doins ${FILESDIR}/97mldonkey
}
pkg_postinst () {
	einfo "The client command is mldonkey."
	einfo "The GUI needs GTK and the command is mldonkey_gui"
	einfo "mldonkey read the config from the dir where you are, and"
	einfo "create it if don't exist, so run the command ever in the"
	einfo "ever in the same dir. I spear to solve it in next relase"
}