summaryrefslogtreecommitdiff
blob: 8aa760506ec5c5de4748501957bb9fb043b3765e (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
41
42
43
44
45
46
47
48
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils eutils

MY_P=${P/icepy/IcePy}

DESCRIPTION="ICE middleware Python bindings"
HOMEPAGE="http://www.zeroc.com/index.html"
SRC_URI="http://www.zeroc.com/download/Ice/${PV%.?}/${MY_P}.tar.gz"

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

DEPEND="~dev-cpp/ice-${PV}"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}

	cd "${S}"

	cp "${FILESDIR}"/${PN}-setup.py setup.py
	sed -i -e "s/ICEVERSION/${PV}/" setup.py

}

src_install() {
	distutils_src_install

	# installing additional documentation
	dohtml -r doc/*
	dodoc CHANGES

	insinto "/usr/share/${PN}"
	doins -r slice/
	find "${D}/usr/share/${PN}/slice" -iname Makefile -delete

	if use examples; then
		doins -r demo/
		doins -r certs/
	fi
}