summaryrefslogtreecommitdiff
blob: 08b84a36a32d3c62ec38f908dbb9c038e75773a2 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils python

DESCRIPTION="FTP client in Python and GTK."
HOMEPAGE="http://foff.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S=${WORKDIR}/${PN}

DEPEND=">=dev-lang/python-2.3
	>=dev-python/pygtk-2.6"
RDEPEND="${DEPEND}"

src_install() {
	# Copying.txt is needed by the about window
	insinto "/usr/$(get_libdir)/${PN}"
	doins *.py foff_logo00.png *.glade *.gladep Copying.txt

	# The app needs to be executed from the installed dir
	echo -e "#!/bin/bash \ncd "/usr/$(get_libdir)/${PN}" \n\
/usr/bin/python ${PN}.py" >> foff

	dobin foff
	dodoc Readme.txt ChangeLog.txt
}

pkg_postinst() {
	python_mod_optimize "${ROOT}usr/$(get_libdir)/${PN}"
}

pkg_postrm() {
	python_mod_cleanup "${ROOT}usr/$(get_libdir)/${PN}"
}