diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2009-01-14 17:39:15 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2009-01-14 17:39:15 +0000 |
commit | e60f095e57ae7549fa2b2c75f159d785ed34ebb2 (patch) | |
tree | fe0f64d750c86e08b6a238e877bfba5b02dee3ea /dev-python/python-dateutil | |
parent | remove unused use flag (diff) | |
download | gentoo-2-e60f095e57ae7549fa2b2c75f159d785ed34ebb2.tar.gz gentoo-2-e60f095e57ae7549fa2b2c75f159d785ed34ebb2.tar.bz2 gentoo-2-e60f095e57ae7549fa2b2c75f159d785ed34ebb2.zip |
Version bump. Use timezone from sys-libs/timezone-data now
(Portage version: 2.2_rc20/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'dev-python/python-dateutil')
-rw-r--r-- | dev-python/python-dateutil/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/python-dateutil/files/python-dateutil-1.4.1-locale.patch | 13 | ||||
-rw-r--r-- | dev-python/python-dateutil/python-dateutil-1.4.1.ebuild | 38 |
3 files changed, 59 insertions, 2 deletions
diff --git a/dev-python/python-dateutil/ChangeLog b/dev-python/python-dateutil/ChangeLog index e9afb4ab127e..7c8175a315e7 100644 --- a/dev-python/python-dateutil/ChangeLog +++ b/dev-python/python-dateutil/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/python-dateutil -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/python-dateutil/ChangeLog,v 1.15 2008/06/18 14:27:36 coldwind Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-dateutil/ChangeLog,v 1.16 2009/01/14 17:39:15 bicatali Exp $ + +*python-dateutil-1.4.1 (14 Jan 2009) + + 14 Jan 2009; Sébastien Fabbro <bicatali@gentoo.org> + +files/python-dateutil-1.4.1-locale.patch, +python-dateutil-1.4.1.ebuild: + Version bump. Use timezone from sys-libs/timezone-data now 18 Jun 2008; Santiago M. Mola <coldwind@gentoo.org> python-dateutil-1.1.ebuild, python-dateutil-1.2.ebuild, diff --git a/dev-python/python-dateutil/files/python-dateutil-1.4.1-locale.patch b/dev-python/python-dateutil/files/python-dateutil-1.4.1-locale.patch new file mode 100644 index 000000000000..53d4bb868302 --- /dev/null +++ b/dev-python/python-dateutil/files/python-dateutil-1.4.1-locale.patch @@ -0,0 +1,13 @@ +Index: python-dateutil/example.py +=================================================================== +--- python-dateutil.orig/example.py 2006-09-06 13:21:44.000000000 +0200 ++++ python-dateutil/example.py 2006-09-06 13:21:56.000000000 +0200 +@@ -5,7 +5,7 @@ + from datetime import * + import commands + import os +-now = parse(commands.getoutput("date")) ++now = parse(commands.getoutput("LC_ALL=C date")) + today = now.date() + year = rrule(YEARLY,bymonth=8,bymonthday=13,byweekday=FR)[0].year + rdelta = relativedelta(easter(year), today) diff --git a/dev-python/python-dateutil/python-dateutil-1.4.1.ebuild b/dev-python/python-dateutil/python-dateutil-1.4.1.ebuild new file mode 100644 index 000000000000..6cae37f6ad82 --- /dev/null +++ b/dev-python/python-dateutil/python-dateutil-1.4.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-dateutil/python-dateutil-1.4.1.ebuild,v 1.1 2009/01/14 17:39:15 bicatali Exp $ + +EAPI=2 +NEED_PYTHON=2.3 +inherit eutils distutils + +DESCRIPTION="dateutil datetime math and logic library for python" +HOMEPAGE="http://labix.org/python-dateutil" +SRC_URI="http://labix.org/download/python-dateutil/${P}.tar.gz" + +LICENSE="PSF-2.3" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~x86" +IUSE="" + +DOCS="NEWS README" + +DEPENDS="sys-libs/timezone-data" +PYTHON_MODNAME=dateutil + +src_prepare() { + epatch "${FILESDIR}"/${P}-locale.patch + # use zoneinfo in /usr/share/zoneinfo + sed -i -e 's/zoneinfo.gettz/gettz/g' test.py || die +} + +src_test() { + PYTHONPATH=build/lib "${python}" test.py || die +} + +src_install() { + distutils_src_install + insinto /usr/share/doc/${PF}/examples + doins example.py sandbox/*.py + rm -f "${D}"/usr/lib*/python*/site-packages/dateutil/zoneinfo/*.tar.* +} |