From 68a69215701afd02ebe35ce284688a841ba715c0 Mon Sep 17 00:00:00 2001 From: miwi Date: Fri, 18 Dec 2009 00:42:26 +0000 Subject: This plugin allows for validating custom fields as dates in tickets and adds fancy date selector to these fields. WWW: http://trac-hacks.org/wiki/DateFieldPlugin PR: ports/141702 Submitted by: Eygene Ryabinkin --- www/Makefile | 1 + www/trac-datefield/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ www/trac-datefield/distinfo | 3 +++ www/trac-datefield/pkg-descr | 4 ++++ 4 files changed, 46 insertions(+) create mode 100644 www/trac-datefield/Makefile create mode 100644 www/trac-datefield/distinfo create mode 100644 www/trac-datefield/pkg-descr (limited to 'www') diff --git a/www/Makefile b/www/Makefile index e376edfe4591..1cb8101c223a 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1549,6 +1549,7 @@ SUBDIR += trac-ctxtnavadd SUBDIR += trac-customfieldadmin SUBDIR += trac-customroadmap + SUBDIR += trac-datefield SUBDIR += trac-down SUBDIR += trac-email2trac SUBDIR += trac-fullblog diff --git a/www/trac-datefield/Makefile b/www/trac-datefield/Makefile new file mode 100644 index 000000000000..be8b8dba44b1 --- /dev/null +++ b/www/trac-datefield/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: trac-autocomplete +# Date created: December 16, 2009 +# Whom: Eygene Ryabinkin +# +# $FreeBSD$ +# + +PORTNAME= datefield +PORTVERSION= 1.0.1 +CATEGORIES= www python +MASTER_SITES= http://dist.codelabs.ru/fbsd/ +PKGNAMEPREFIX= trac- +DISTNAME= datefieldplugin-r${REL} + +MAINTAINER= rea-fbsd@codelabs.ru +COMMENT= A plugin for creating date fields + +BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools +RUN_DEPENDS+= trac>=0.11:${PORTSDIR}/www/trac + +USE_PYTHON= 2.5+ +USE_ZIP= yes +NO_BUILD= yes +USE_PYDISTUTILS= yes +PYDISTUTILS_PKGNAME= TracDateField +PYDISTUTILS_NOEGGINFO= yes +WRKSRC= ${WRKDIR}/datefieldplugin/0.11 +REL= 7267 +PLIST_FILES= ${PYTHON_SITELIBDIR:S;${LOCALBASE}/;;}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg + +# We must fix file permissions -- ZIP file have 0000 for every file. +# Directory permissions are fine (they aren't stored inside ZIP +# file), but we set them too -- just in case. +post-extract: + @${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} 644 + @${FIND} ${WRKSRC} -type d | ${XARGS} ${CHMOD} 755 + +.include diff --git a/www/trac-datefield/distinfo b/www/trac-datefield/distinfo new file mode 100644 index 000000000000..421c1df92b33 --- /dev/null +++ b/www/trac-datefield/distinfo @@ -0,0 +1,3 @@ +MD5 (datefieldplugin-r7267.zip) = a1dd6e85a484ee191beff2b17c510fdb +SHA256 (datefieldplugin-r7267.zip) = 565869c98580bd2b64c180b0a466d640b2b36f55a85d2f46804a6c676c1a8abe +SIZE (datefieldplugin-r7267.zip) = 105459 diff --git a/www/trac-datefield/pkg-descr b/www/trac-datefield/pkg-descr new file mode 100644 index 000000000000..56672494d570 --- /dev/null +++ b/www/trac-datefield/pkg-descr @@ -0,0 +1,4 @@ +This plugin allows for validating custom fields as dates in tickets +and adds fancy date selector to these fields. + +WWW: http://trac-hacks.org/wiki/DateFieldPlugin -- cgit