ports/111046: [NEW PORT]devel/cog:Cog is a code generation tool for any language

Alex Pesternikov ap at page2rss.com
Sat Mar 31 01:20:13 UTC 2007


>Number:         111046
>Category:       ports
>Synopsis:       [NEW PORT]devel/cog:Cog is a code generation tool for any language
>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 Mar 31 01:20:13 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Alex Pesternikov
>Release:        
>Organization:
Page2RSS
>Environment:
>Description:
Cog is a code generation tool. It lets you use pieces of Python code as generators in your
source files to generate whatever code you need.
Cog transforms files in a very simple way: it finds chunks of Python code embedded in them,
executes the Python code, and inserts its output back into the original file. The file can
contain whatever text you like around the Python code. It will usually be source code.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	cog
#	cog/distinfo
#	cog/Makefile
#	cog/pkg-descr
#	cog/pkg-plist
#
echo c - cog
mkdir -p cog > /dev/null 2>&1
echo x - cog/distinfo
sed 's/^X//' >cog/distinfo << 'END-of-cog/distinfo'
XMD5 (cog-2.0.tar.gz) = 3eb0d8d32f11f8094ce159af428ce80c
XSHA256 (cog-2.0.tar.gz) = fb92e1085b7bb9508b577e94767b7a726e07b957aa86df6bbdc70a8afd642a3c
XSIZE (cog-2.0.tar.gz) = 22168
END-of-cog/distinfo
echo x - cog/Makefile
sed 's/^X//' >cog/Makefile << 'END-of-cog/Makefile'
X# New ports collection makefile for:   cog
X# Date created:        30 March 2007
X# Whom:                ap
X#
X# $FreeBSD$
X#
X
XPORTNAME=      cog
XPORTVERSION=   2.0
XCATEGORIES=    devel python
XMASTER_SITES=  http://www.nedbatchelder.com/code/cog/
X
XMAINTAINER=    apesternikov at page2rss.com
XCOMMENT=       Code Generator for any language
X
XUSE_PYTHON=     yes
XUSE_PYDISTUTILS=        yes
X
X#MAN1=          oneko.1
X#MANCOMPRESSED= yes
X#USE_IMAKE=     yes
X
Xpost-install:
X	@${MV} -f ${PREFIX}/bin/cog.py ${PREFIX}/bin/cog
X	@${MV} -f ${PREFIX}/bin/test_cog.py ${PREFIX}/bin/test_cog
X
X.include <bsd.port.mk>
END-of-cog/Makefile
echo x - cog/pkg-descr
sed 's/^X//' >cog/pkg-descr << 'END-of-cog/pkg-descr'
XCog transforms files in a very simple way: it finds chunks of Python code
Xembedded in them, executes the Python code, and inserts its output back into
Xthe original file. The file can contain whatever text you like around the
XPython code. It will usually be source code.
X
XAuthor: Ned Batchelder
XWWW: http://www.nedbatchelder.com/code/cog/index.html
END-of-cog/pkg-descr
echo x - cog/pkg-plist
sed 's/^X//' >cog/pkg-plist << 'END-of-cog/pkg-plist'
Xbin/cog
Xbin/test_cog
X%%PYTHON_SITELIBDIR%%/cogapp/cogapp.py
X%%PYTHON_SITELIBDIR%%/cogapp/makefiles.py
X%%PYTHON_SITELIBDIR%%/cogapp/test_cogapp.py
X%%PYTHON_SITELIBDIR%%/cogapp/test_makefiles.py
X%%PYTHON_SITELIBDIR%%/cogapp/test_whiteutils.py
X%%PYTHON_SITELIBDIR%%/cogapp/whiteutils.py
X%%PYTHON_SITELIBDIR%%/cogapp/__init__.py
X%%PYTHON_SITELIBDIR%%/cogapp/cogapp.pyc
X%%PYTHON_SITELIBDIR%%/cogapp/makefiles.pyc
X%%PYTHON_SITELIBDIR%%/cogapp/test_cogapp.pyc
X%%PYTHON_SITELIBDIR%%/cogapp/test_makefiles.pyc
X%%PYTHON_SITELIBDIR%%/cogapp/test_whiteutils.pyc
X%%PYTHON_SITELIBDIR%%/cogapp/whiteutils.pyc
X%%PYTHON_SITELIBDIR%%/cogapp/__init__.pyc
X%%PYTHON_SITELIBDIR%%/cogapp/cogapp.pyo
X%%PYTHON_SITELIBDIR%%/cogapp/makefiles.pyo
X%%PYTHON_SITELIBDIR%%/cogapp/test_cogapp.pyo
X%%PYTHON_SITELIBDIR%%/cogapp/test_makefiles.pyo
X%%PYTHON_SITELIBDIR%%/cogapp/test_whiteutils.pyo
X%%PYTHON_SITELIBDIR%%/cogapp/whiteutils.pyo
X%%PYTHON_SITELIBDIR%%/cogapp/__init__.pyo
X%%PYTHON_SITELIBDIR%%/handyxml/handyxml.py
X%%PYTHON_SITELIBDIR%%/handyxml/test_handyxml.py
X%%PYTHON_SITELIBDIR%%/handyxml/__init__.py
X%%PYTHON_SITELIBDIR%%/handyxml/handyxml.pyc
X%%PYTHON_SITELIBDIR%%/handyxml/test_handyxml.pyc
X%%PYTHON_SITELIBDIR%%/handyxml/__init__.pyc
X%%PYTHON_SITELIBDIR%%/handyxml/handyxml.pyo
X%%PYTHON_SITELIBDIR%%/handyxml/test_handyxml.pyo
X%%PYTHON_SITELIBDIR%%/handyxml/__init__.pyo
X at dirrm %%PYTHON_SITELIBDIR%%/cogapp
X at dirrm %%PYTHON_SITELIBDIR%%/handyxml
END-of-cog/pkg-plist
exit


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



More information about the freebsd-ports-bugs mailing list