summaryrefslogtreecommitdiff
blob: 28968b24e501463830525d98190301a632ccd994 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pymetar/pymetar-0.13.ebuild,v 1.2 2007/10/27 09:18:23 dev-zero Exp $

NEED_PYTHON="2.3"

inherit distutils

DESCRIPTION="Downloads the weather report for a given station ID, decodes it and the provides easy access to all the data found in the report."
HOMEPAGE="http://www.schwarzvogel.de/software-pymetar.shtml"
SRC_URI="http://www.schwarzvogel.de/pkgs/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
IUSE=""

DEPEND=""
RDEPEND=""

DOCS="librarydoc.txt THANKS bin/example.py"

src_unpack() {
	unpack ${A}
	cd "${S}"

	# Faulty setup.py installs ez_setup.py generated by distutils_src_unpack
	sed -i \
		-e '/packages/d' \
		-e "s|'COPYING', ||" \
		setup.py || die "sed failed"

	distutils_src_unpack
}