ports/159564: [NEW PORT] textproc/codespell: Source code spell checker
Glen Barber
gjb at FreeBSD.org
Sun Aug 7 00:10:10 UTC 2011
>Number: 159564
>Category: ports
>Synopsis: [NEW PORT] textproc/codespell: Source code spell checker
>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: Sun Aug 07 00:10:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Glen Barber
>Release: 9-CURRENT
>Organization:
>Environment:
>Description:
Codespell is a source code spell checker.
Build logs for 8-STABLE and 7-STABLE can be found here:
- http://www.glenbarber.us/stuff/8-STABLE-codespell-1.1.log
- http://www.glenbarber.us/stuff/7-STABLE-codespell-1.1.log
>How-To-Repeat:
>Fix:
shar(1) of the new port is attached.
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:
#
# codespell
# codespell/pkg-descr
# codespell/distinfo
# codespell/Makefile
#
echo c - codespell
mkdir -p codespell > /dev/null 2>&1
echo x - codespell/pkg-descr
sed 's/^X//' >codespell/pkg-descr << 'aad13cddf6e16b57c8efc267a80f296f'
XSource code spell checker.
X
XWWW: http://git.profusion.mobi/cgit.cgi/lucas/codespell/
aad13cddf6e16b57c8efc267a80f296f
echo x - codespell/distinfo
sed 's/^X//' >codespell/distinfo << '09f8e6a12ad552789b2985dfdf35a2b6'
XSHA256 (codespell-1.1.tar.gz) = 0cdab2474ab1aacf830ab57280615935b745eb299fde0d50235a6dc2d423ea2e
XSIZE (codespell-1.1.tar.gz) = 42289
09f8e6a12ad552789b2985dfdf35a2b6
echo x - codespell/Makefile
sed 's/^X//' >codespell/Makefile << '71f865a93f49f2dcc3c0ce105f2119c0'
X# New ports collection makefile for: codespell
X# Date created: 6 February 2011
X# Whom: Glen Barber <gjb at FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= codespell
XPORTVERSION= 1.1
XCATEGORIES= textproc
XMASTER_SITES= http://www.glenbarber.us/ports/${CATEGORIES}/${PORTNAME}/
XDISTNAME= ${PORTNAME}-${PORTVERSION}
X
XMAINTAINER= gjb at FreeBSD.org
XCOMMENT= Source code spelling checker
X
XLICENSE= GPLv2
X
XUSE_PYTHON= 3.1+
X
XPLIST_FILES= bin/codespell
XPORTDOCS= COPYING README TODO
XPORTEXAMPLES= *
X
X.include <bsd.port.pre.mk>
X
Xdo-build:
X ${REINPLACE_CMD} 's|#!/usr/bin/env python3|#!${LOCALBASE}/bin/${PYTHON_VERSION}|' \
X ${WRKSRC}/codespell.py
X
Xdo-install:
X ${INSTALL_SCRIPT} ${WRKSRC}/codespell.py ${PREFIX}/bin/codespell
X
Xpost-install:
X.if !defined(NOPORTSDOCS)
X @${MKDIR} ${DOCSDIR}
X. for i in ${PORTDOCS}
X @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
X. endfor
X.endif
X
X.for i in data example
X @${MKDIR} ${EXAMPLESDIR}/${i}
X @${INSTALL_DATA} ${WRKSRC}/${i}/* ${EXAMPLESDIR}/${i}
X.endfor
X
X @${ECHO} ""
X @${ECHO} "You have successfully installed codespell!"
X @${ECHO} "The dictionary file has been installed to:"
X @${ECHO} "${EXAMPLESDIR}/data/dictionary.txt"
X @${ECHO} ""
X
X.include <bsd.port.post.mk>
71f865a93f49f2dcc3c0ce105f2119c0
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list