summaryrefslogtreecommitdiff
blob: 412dfb7f8b6c45df44999f286d9083b1813072f0 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/rox-base/rox-lib/rox-lib-2.0.3-r2.ebuild,v 1.1 2007/02/13 17:03:46 lack Exp $

NEED_PYTHON="2.3"
inherit python eutils 0install multilib

MY_PN="rox-lib2"
DESCRIPTION="ROX-Lib2 - Shared code for ROX applications by Thomas Leonard"
HOMEPAGE="http://rox.sourceforge.net/desktop/ROX-Lib"
SRC_URI="mirror://sourceforge/rox/${MY_PN}-${PV}.tar.bz2"

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

RDEPEND=">=rox-base/rox-2.2.0
		>=dev-python/pygtk-2.8.2"

S=${WORKDIR}/${MY_PN}-${PV}

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${P}-nosvg.patch"
}

src_install() {
	local baselibdir="/usr/$(get_libdir)"
	dodir ${baselibdir}
	cp -r ROX-Lib2/ ${D}${baselibdir}
	python_mod_optimize ${D}${baselibdir}/ROX-Lib2/ >/dev/null 2>&1
	dodir /usr/share/doc/
	dosym ${baselibdir}/ROX-Lib2/Help /usr/share/doc/${P}

	0install_local_feed ROX-Lib2/ROX-Lib2.xml ${baselibdir}/ROX-Lib2
}