ports/109480: [NEW PORT] devel/py-parsedatetime: Python module for parsing 'human readable' date/time expressions

Li-Wen Hsu lwhsu at lwhsu.org
Sat Feb 24 04:20:05 UTC 2007


>Number:         109480
>Category:       ports
>Synopsis:       [NEW PORT] devel/py-parsedatetime: Python module for parsing 'human readable' date/time expressions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 24 04:20:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Li-Wen Hsu
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD jail0.lwhsu.csie.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 26 00:04:54 CST 2007
>Description:
Python module that is able to parse 'human readable' date/time expressions.

parsedatetime is able to parse, for example, the following:

    * August 25th, 2008
    * 25 Aug 2008
    * Aug 25 5pm
    * 5pm August 25
    * next saturday
    * tomorrow
    * next thursday at 4pm
    * at 4pm
    * eod
    * tomorrow eod
    * eod tuesday
    * eoy
    * eom
    * in 5 minutes
    * 5 minutes from now
    * 5 hours before now
    * 2 hours before noon
    * 2 days from tomorrow 

WWW:	http://code-bear.com/code/parsedatetime/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- py24-parsedatetime-0.8.3.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-parsedatetime
#	py-parsedatetime/pkg-descr
#	py-parsedatetime/Makefile
#	py-parsedatetime/distinfo
#	py-parsedatetime/pkg-plist
#
echo c - py-parsedatetime
mkdir -p py-parsedatetime > /dev/null 2>&1
echo x - py-parsedatetime/pkg-descr
sed 's/^X//' >py-parsedatetime/pkg-descr << 'END-of-py-parsedatetime/pkg-descr'
XPython module that is able to parse 'human readable' date/time expressions.
X
Xparsedatetime is able to parse, for example, the following:
X
X    * August 25th, 2008
X    * 25 Aug 2008
X    * Aug 25 5pm
X    * 5pm August 25
X    * next saturday
X    * tomorrow
X    * next thursday at 4pm
X    * at 4pm
X    * eod
X    * tomorrow eod
X    * eod tuesday
X    * eoy
X    * eom
X    * in 5 minutes
X    * 5 minutes from now
X    * 5 hours before now
X    * 2 hours before noon
X    * 2 days from tomorrow 
X
XWWW:	http://code-bear.com/code/parsedatetime/
END-of-py-parsedatetime/pkg-descr
echo x - py-parsedatetime/Makefile
sed 's/^X//' >py-parsedatetime/Makefile << 'END-of-py-parsedatetime/Makefile'
X# New ports collection makefile for:	py-parsedatetime
X# Date created:		Feb. 24, 2007
X# Whom:			Li-Wen Hsu <lwhsu at lwhsu.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	parsedatetime
XPORTVERSION=	0.8.3
XCATEGORIES=	devel python
XMASTER_SITES=	http://code-bear.com/code/parsedatetime/ \
X		http://cheeseshop.python.org/packages/source/p/parsedatetime/ \
X		http://parsedatetime.googlecode.com/files/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	lwhsu at lwhsu.org
XCOMMENT=	Python module for parsing 'human readable' date/time expressions
X
XBUILD_DEPENDS=	${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
XRUN_DEPENDS=	${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	yes
X
XEASY_INSTALL_CMD?=	easy_install-${PYTHON_VER}
X
XPYDISTUTILS_BUILD_TARGET=	bdist_egg
XPYDISTUTILS_INSTALL_TARGET=	easy_install
XPYDISTUTILS_INSTALLARGS=	-O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${PARSEDATETIME_EGG}
X
XPARSEDATETIME_EGG=	${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg
X
XPLIST_SUB+=	EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
X		PARSEDATETIME_EGG=${PARSEDATETIME_EGG} \
X		PARSEDATETIME_EGG_VER="${PORTNAME}==${PORTVERSION}"
X
X.if !defined(NOPORTDOCS)
XDOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
X.endif
XEXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
XEXAMPLES=	README.txt basic.py with_locale.py
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${CP} -R ${WRKSRC}/docs/ ${DOCSDIR}
X.endif
X	@${MKDIR} ${EXAMPLESDIR}
X.for f in ${EXAMPLES}
X	${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
X.endfor
X
X.include <bsd.port.mk>
END-of-py-parsedatetime/Makefile
echo x - py-parsedatetime/distinfo
sed 's/^X//' >py-parsedatetime/distinfo << 'END-of-py-parsedatetime/distinfo'
XMD5 (parsedatetime-0.8.3.tar.gz) = 09c82e2d2e421cc12caf820796775ee3
XSHA256 (parsedatetime-0.8.3.tar.gz) = 7d4b7dadd3f39c00a8db153894c06ce4a0c082756fdf2781f869bd12ea953590
XSIZE (parsedatetime-0.8.3.tar.gz) = 181563
END-of-py-parsedatetime/distinfo
echo x - py-parsedatetime/pkg-plist
sed 's/^X//' >py-parsedatetime/pkg-plist << 'END-of-py-parsedatetime/pkg-plist'
X at unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%PARSEDATETIME_EGG_VER%%
X%%PYTHON_SITELIBDIR%%/%%PARSEDATETIME_EGG%%
X at exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%PARSEDATETIME_EGG_VER%%
X%%PORTDOCS%%%%DOCSDIR%%/PyICU-module.html
X%%PORTDOCS%%%%DOCSDIR%%/PyICU-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/class-tree.html
X%%PORTDOCS%%%%DOCSDIR%%/crarr.png
X%%PORTDOCS%%%%DOCSDIR%%/epydoc.css
X%%PORTDOCS%%%%DOCSDIR%%/epydoc.js
X%%PORTDOCS%%%%DOCSDIR%%/exceptions.AssertionError-class.html
X%%PORTDOCS%%%%DOCSDIR%%/frames.html
X%%PORTDOCS%%%%DOCSDIR%%/help.html
X%%PORTDOCS%%%%DOCSDIR%%/identifier-index.html
X%%PORTDOCS%%%%DOCSDIR%%/index.html
X%%PORTDOCS%%%%DOCSDIR%%/module-tree.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.parsedatetime-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.parsedatetime-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.parsedatetime.Calendar-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.parsedatetime_consts-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.parsedatetime_consts-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.parsedatetime_consts.Constants-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.parsedatetime_consts.pdtLocale_au-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.parsedatetime_consts.pdtLocale_en-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.parsedatetime_consts.pdtLocale_es-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestAustralianLocale-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestAustralianLocale-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestAustralianLocale.test-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestComplexDateTimes-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestComplexDateTimes-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestComplexDateTimes.test-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestErrors-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestErrors-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestErrors.test-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestInc-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestInc-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestInc.test-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestMultiple-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestMultiple-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestMultiple.test-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestPhrases-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestPhrases-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestPhrases.test-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestRanges-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestRanges-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestRanges.test-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestSimpleDateTimes-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestSimpleDateTimes-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestSimpleDateTimes.test-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestSimpleOffsets-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestSimpleOffsets-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestSimpleOffsets.test-class.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestUnits-module.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestUnits-pysrc.html
X%%PORTDOCS%%%%DOCSDIR%%/parsedatetime.tests.TestUnits.test-class.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-PyICU-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-everything.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.parsedatetime-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.parsedatetime_consts-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests.TestAustralianLocale-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests.TestComplexDateTimes-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests.TestErrors-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests.TestInc-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests.TestMultiple-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests.TestPhrases-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests.TestRanges-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests.TestSimpleDateTimes-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests.TestSimpleOffsets-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc-parsedatetime.tests.TestUnits-module.html
X%%PORTDOCS%%%%DOCSDIR%%/toc.html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%EXAMPLESDIR%%/README.txt
X%%EXAMPLESDIR%%/basic.py
X%%EXAMPLESDIR%%/with_locale.py
X at dirrm %%EXAMPLESDIR%%
END-of-py-parsedatetime/pkg-plist
exit
--- py24-parsedatetime-0.8.3.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list