# 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: # # trac-keywords # trac-keywords/Makefile # trac-keywords/distinfo # trac-keywords/files # trac-keywords/files/patch-web_ui.py # trac-keywords/pkg-descr # echo c - trac-keywords mkdir -p trac-keywords > /dev/null 2>&1 echo x - trac-keywords/Makefile sed 's/^X//' >trac-keywords/Makefile << 'END-of-trac-keywords/Makefile' X# New ports collection makefile for: trac-keywords X# Date created: December 17, 2009 X# Whom: Eygene Ryabinkin X# X# $FreeBSD$ X# X XPORTNAME= keywords XPORTVERSION= 0.2 XCATEGORIES= www python XMASTER_SITES= http://dist.codelabs.ru/fbsd/ XPKGNAMEPREFIX= trac- XDISTNAME= trackeywordsplugin-r${REL} X XMAINTAINER= rea-fbsd@codelabs.ru XCOMMENT= A plugin for using pre-configured keywords X XBUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools XRUN_DEPENDS+= trac>=0.11:${PORTSDIR}/www/trac X XUSE_PYTHON= 2.5+ XUSE_ZIP= yes XNO_BUILD= yes XUSE_PYDISTUTILS= yes XPYDISTUTILS_PKGNAME= TracKeywordsPlugin XPYDISTUTILS_NOEGGINFO= yes XWRKSRC= ${WRKDIR}/trackeywordsplugin/0.11 XREL= 7273 XPLIST_FILES= ${PYTHON_SITELIBDIR:S;${LOCALBASE}/;;}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg X Xpost-extract: X# We must fix file permissions -- ZIP file have 0000 for every file. X# Directory permissions are fine (they aren't stored inside ZIP X# file), but we set them too -- just in case. X @${FIND} ${WRKSRC} -type f | ${XARGS} chmod 644 X @${FIND} ${WRKSRC} -type d | ${XARGS} chmod 755 X# Fix misplaced Genshi template: https://trac-hacks.org/ticket/6104 X @${MV} ${WRKDIR}/trackeywordsplugin/0.10/trackeywords/templates/keywords.html ${WRKSRC}/trackeywords/templates/ X# Seems like web_ui.py was misplaced too. X @${MV} ${WRKDIR}/trackeywordsplugin/0.10/trackeywords/web_ui.py ${WRKSRC}/trackeywords/ X X.include END-of-trac-keywords/Makefile echo x - trac-keywords/distinfo sed 's/^X//' >trac-keywords/distinfo << 'END-of-trac-keywords/distinfo' XMD5 (trackeywordsplugin-r7273.zip) = fc00fc7f8ca16fcf2b99267a06ebfa2f XSHA256 (trackeywordsplugin-r7273.zip) = 64f4e88a96039cbcc35ae835d87ed2a9a1aa28e97281caa443092c52ad18f572 XSIZE (trackeywordsplugin-r7273.zip) = 9528 END-of-trac-keywords/distinfo echo c - trac-keywords/files mkdir -p trac-keywords/files > /dev/null 2>&1 echo x - trac-keywords/files/patch-web_ui.py sed 's/^X//' >trac-keywords/files/patch-web_ui.py << 'END-of-trac-keywords/files/patch-web_ui.py' X--- trackeywords/web_ui.py.orig 2009-09-09 17:18:34.000000000 +0400 X+++ trackeywords/web_ui.py 2010-04-05 11:32:50.000000000 +0400 X@@ -80,7 +80,8 @@ X X # changed to Genshi signature X def post_process_request(self, req, template, data, content_type): X- data['keywords'] = self._get_keywords() X+ if data is not None: X+ data['keywords'] = self._get_keywords() X return (template, data, content_type) X X ### ITemplateProvider methods END-of-trac-keywords/files/patch-web_ui.py echo x - trac-keywords/pkg-descr sed 's/^X//' >trac-keywords/pkg-descr << 'END-of-trac-keywords/pkg-descr' XThis plugin allows for validating custom fields as dates in tickets. X XWWW: http://trac-hacks.org/wiki/DateFieldPlugin END-of-trac-keywords/pkg-descr exit