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

inherit eutils distutils

DESCRIPTION="A python script for retrieving gentoo overlays "
HOMEPAGE="http://projects.gunnarwrobel.de/scripts"
SRC_URI="http://dev.gentoo.org/~wrobel/layman/${PF}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
S=${WORKDIR}/${PF}

DEPEND=""

src_install() {

	distutils_src_install

	dodir /etc/layman
	cp etc/layman.cfg ${D}/etc/layman/

	#doman doc/layman.5 
}

src_test() {
	cd ${S}
	einfo "Running layman doctests..."
	if ! PYTHONPATH="." ${python} layman/tests/dtest.py; then
		eerror "DocTests failed - please submit a bug report"
		die "DocTesting failed!"
	fi
}