/[gentoo-x86]/dev-python/pytz/pytz-2012c.ebuild
Gentoo

Contents of /dev-python/pytz/pytz-2012c.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Wed Jun 6 15:20:45 2012 UTC (12 months, 1 week ago) by jer
Branch: MAIN
Changes since 1.7: +2 -2 lines
Stable for HPPA (bug #412307).

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 patrick 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 jer 1.8 # $Header: /var/cvsroot/gentoo-x86/dev-python/pytz/pytz-2012c.ebuild,v 1.7 2012/06/05 21:15:34 ranger Exp $
4 patrick 1.1
5     EAPI="3"
6     SUPPORT_PYTHON_ABIS="1"
7    
8     inherit distutils eutils
9    
10     DESCRIPTION="World timezone definitions for Python"
11     HOMEPAGE="http://pypi.python.org/pypi/pytz http://pytz.sourceforge.net/"
12     SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.bz2"
13    
14     LICENSE="MIT"
15     SLOT="0"
16 jer 1.8 KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
17 patrick 1.1 IUSE=""
18    
19     DEPEND="dev-python/setuptools
20     >=sys-libs/timezone-data-${PV}"
21     RDEPEND="${DEPEND}"
22    
23     DOCS="CHANGES.txt"
24    
25     src_prepare() {
26     distutils_src_prepare
27    
28     # Use timezone-data zoneinfo.
29     epatch "${FILESDIR}/${PN}-2009j-zoneinfo.patch"
30     }
31    
32     src_test() {
33     testing() {
34     PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" pytz/tests/test_tzinfo.py
35     }
36     python_execute_function testing
37     }
38    
39     src_install() {
40     distutils_src_install
41    
42     delete_zoneinfo() {
43     rm -fr "${ED}$(python_get_sitedir)/pytz/zoneinfo"
44     }
45     python_execute_function -q delete_zoneinfo
46     }

  ViewVC Help
Powered by ViewVC 1.1.20