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

inherit python

EAPI="2"

DESCRIPTION="Command-line client for NetworkManager"
HOMEPAGE="http://vidner.net/martin/software/cnetworkmanager/"
SRC_URI="http://vidner.net/martin/software/${PN}/${P}.tar.gz"

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

DEPEND=""
RDEPEND=">=dev-lang/python-2.5[xml]
	dev-python/pygobject
	dev-python/dbus-python"

src_compile() {
	sed -e '/docdir/d' -i Makefile || die "Sed failed"
	emake DESTDIR=${D} PREFIX=/usr sysconfdir=/etc || die "emake failed"
}

src_install() {
	insinto "$(python_get_sitedir)"
	doins pbkdf2.py
	dobin cnetworkmanager
	dodoc NEWS README
}

pkg_postinst() {
	python_need_rebuild
	python_mod_optimize "$(python_get_sitedir)/pbkdf2.py"
}

pkg_postrm() {
	python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/pbkdf2.py
}