summaryrefslogtreecommitdiff
blob: fb67c734b61dcce6fbe2bbd98df705e85efd9cee (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyxdg/pyxdg-0.20_rc1.ebuild,v 1.1 2012/06/20 07:59:41 ssuominen Exp $

EAPI=4

PYTHON_DEPEND="2:2.6 3:3.2"
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="2.5 3.1 *-jython 2.7-pypy-*"

inherit distutils eutils

DESCRIPTION="A Python module to deal with freedesktop.org specifications"
HOMEPAGE="http://freedesktop.org/wiki/Software/pyxdg http://cgit.freedesktop.org/xdg/pyxdg/"
SRC_URI="http://cgit.freedesktop.org/xdg/${PN}/snapshot/rel-${PV/_}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2 LGPL-2" # xdg/Menu.py says GPL-2 but COPYING says LGPL-2
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="examples"

PYTHON_MODNAME=xdg

DOCS="AUTHORS ChangeLog README TODO"

S=${WORKDIR}/rel-${PV/_}

src_install() {
	distutils_src_install

	if use examples; then
		docinto examples
		dodoc test/*.py
	fi
}