summaryrefslogtreecommitdiff
blob: 15cf129309f10870405580f558b5f8a7f744e63c (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/gpixpod/gpixpod-0.6.2.ebuild,v 1.3 2006/12/21 17:00:42 lack Exp $

inherit distutils

DESCRIPTION="Organize photos on your iPod, freely!"
HOMEPAGE="http://www.gpixpod.org/"
SRC_URI="mirror://sourceforge/gpixpod/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=">=dev-python/pygtk-2.8.4
		>=x11-libs/gtk+-2.0.0"
RDEPEND="${DEPEND}"

src_unpack() {
	distutils_python_version
	unpack ${A}

	# Fixing gpixpod.py for searching gpixpod.glade in the same directory
	sed -i "s:gpixpod\.glade:/usr/share/gpixpod/gpixpod\.glade:g" ${S}/gpixpod.py

	# Fixing launching script
	sed -i "s:/usr/lib/gpixpod/:/usr/$(get_libdir)/python${PYVER}/site-packages/:" ${S}/gpixpod
}

src_install() {
	distutils_src_install

	mv ${D}/usr/lib/gpixpod/* ${D}/usr/share/gpixpod
	rmdir {D}/usr/lib/gpixpod

	rm -rf ${D}/usr/share/doc/gpixpod
	dodoc KNOWNBUGS
}