diff options
author | rm <rm@FreeBSD.org> | 2013-01-24 15:42:32 +0800 |
---|---|---|
committer | rm <rm@FreeBSD.org> | 2013-01-24 15:42:32 +0800 |
commit | b39989e0eea5e516f606f2e82640ae501edfd2bc (patch) | |
tree | fbd7be663873792093f82b2da94ca05e2513dd5b /devel | |
parent | 4e7144ac9e6fb9889dd7a4f29ce7c05021a6b4c0 (diff) | |
download | freebsd-ports-gnome-b39989e0eea5e516f606f2e82640ae501edfd2bc.tar.gz freebsd-ports-gnome-b39989e0eea5e516f606f2e82640ae501edfd2bc.tar.zst freebsd-ports-gnome-b39989e0eea5e516f606f2e82640ae501edfd2bc.zip |
- update to 2.1
- trim Makefile header
- change MASTER_SITES to CHEESESHOP
- add license (BSD)
- add dependency on py-six (this port now works both with python2 and python3
from the same codebase via py-six)
- adjust possible python versions accordingly
- add tests
- clean-up pkg-descr
PR: 174672 (based on)
Submitted by: Alexey V. Degtyarev <alexey@renatasystems.org>
Approved by: nivit (maintainer, by mail)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-dateutil/Makefile | 20 | ||||
-rw-r--r-- | devel/py-dateutil/distinfo | 4 | ||||
-rw-r--r-- | devel/py-dateutil/files/patch-dateutil____init__.py | 10 | ||||
-rw-r--r-- | devel/py-dateutil/pkg-descr | 3 | ||||
-rw-r--r-- | devel/py-dateutil/pkg-plist | 4 |
5 files changed, 26 insertions, 15 deletions
diff --git a/devel/py-dateutil/Makefile b/devel/py-dateutil/Makefile index 7d5b3eb98272..f39efff2ee6f 100644 --- a/devel/py-dateutil/Makefile +++ b/devel/py-dateutil/Makefile @@ -1,22 +1,26 @@ -# New ports collection makefile for: py-datetime -# Date created: Sun May 8 06:34:45 UTC 2005 -# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> -# +# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> # $FreeBSD$ -# PORTNAME= dateutil -PORTVERSION= 1.5 +PORTVERSION= 2.1 CATEGORIES= devel python -MASTER_SITES= http://labix.org/download/python-dateutil/ +MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= python-dateutil-${PORTVERSION} MAINTAINER= nivit@FreeBSD.org COMMENT= Provides powerful extensions to the standard datetime module -USE_PYTHON= yes +LICENSE= BSD + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six +RUN_DEPENDS+= ${BUILD_DEPENDS} + +USE_PYTHON= yes USE_PYDISTUTILS= easy_install PYDISTUTILS_PKGNAME= python-dateutil +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} test.py + .include <bsd.port.mk> diff --git a/devel/py-dateutil/distinfo b/devel/py-dateutil/distinfo index 554fda33d9e4..6eabbe233f3a 100644 --- a/devel/py-dateutil/distinfo +++ b/devel/py-dateutil/distinfo @@ -1,2 +1,2 @@ -SHA256 (python-dateutil-1.5.tar.gz) = c08aca7d85f8f8eed61e83b3423b829262c596a9a78f7ca3de0bcee2217d0e3b -SIZE (python-dateutil-1.5.tar.gz) = 232384 +SHA256 (python-dateutil-2.1.tar.gz) = 4c44ec3f9ff057b8c7b4c78beca5fdd8710600ea9a1df42f31bfcbae2f059dee +SIZE (python-dateutil-2.1.tar.gz) = 152334 diff --git a/devel/py-dateutil/files/patch-dateutil____init__.py b/devel/py-dateutil/files/patch-dateutil____init__.py new file mode 100644 index 000000000000..cba102788722 --- /dev/null +++ b/devel/py-dateutil/files/patch-dateutil____init__.py @@ -0,0 +1,10 @@ +--- ./dateutil/__init__.py.orig 2012-03-28 18:25:44.000000000 +0400 ++++ ./dateutil/__init__.py 2013-01-23 14:12:35.000000000 +0400 +@@ -5,6 +5,6 @@ + This module offers extensions to the standard Python + datetime module. + """ +-__author__ = "Tomi Pieviläinen <tomi.pievilainen@iki.fi>" ++__author__ = "Tomi Pievilainen <tomi.pievilainen@iki.fi>" + __license__ = "Simplified BSD" + __version__ = "2.1" diff --git a/devel/py-dateutil/pkg-descr b/devel/py-dateutil/pkg-descr index a7a97ca26a02..dce13a152fe3 100644 --- a/devel/py-dateutil/pkg-descr +++ b/devel/py-dateutil/pkg-descr @@ -1,7 +1,4 @@ -[ excerpt from developer's www site ] - The dateutil module provides powerful extensions to the standard datetime module. -Author: GustavoNiemeyer <gustavo@niemeyer.net> WWW: http://labix.org/python-dateutil diff --git a/devel/py-dateutil/pkg-plist b/devel/py-dateutil/pkg-plist index 0aaf21b6554a..17e53a7d1698 100644 --- a/devel/py-dateutil/pkg-plist +++ b/devel/py-dateutil/pkg-plist @@ -1,8 +1,8 @@ -@comment $FreeBSD$ %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/dateutil/__init__.py %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/dateutil/__init__.pyc @@ -28,7 +28,7 @@ %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/dateutil/zoneinfo/__init__.py %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/dateutil/zoneinfo/__init__.pyc %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/dateutil/zoneinfo/__init__.pyo -%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/dateutil/zoneinfo/zoneinfo-2010g.tar.gz +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/dateutil/zoneinfo/zoneinfo--latest.tar.gz @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/dateutil/zoneinfo @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/dateutil @dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO |