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

inherit multilib python

DESCRIPTION="Text-based frontend to Dynamips Cisco router emulator."
HOMEPAGE="http://www.dynagen.org/"
SRC_URI="mirror://sourceforge/dyna-gen/${P}.tar.gz"

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

DEPEND=""
RDEPEND="app-emulation/dynamips"

src_install() {
	insinto $(python_get_sitedir)
	doins *.py || die "python files install failed"

	dobin ${PN} || die "failed install of /usr/bin/dynagen"

	insinto /etc
	doins ${PN}.ini || die "config file install failed"

	insinto /usr/share/${PN}
	doins configspec || die "failed configspec install"

	dodoc README.txt

	insinto /usr/share/doc/${P}
	doins -r sample_labs
	dohtml -r docs/*
}

pkg_postinst() {
	python_version
	python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages
}

pkg_postrm() {
	python_mod_cleanup
}