pkgsrc/devel/pythontidy/Makefile
apb 85acc53e23 Add PythonTidy 1.20
"Cleans up, regularizes, and reformats the text of Python scripts."
2011-08-31 11:43:17 +00:00

39 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2011/08/31 11:43:17 apb Exp $
#
DISTNAME= PythonTidy-1.20
PKGNAME= ${DISTNAME:tl}
CATEGORIES= devel
MASTER_SITES= http://lacusveris.com/PythonTidy/
EXTRACT_SUFX= .python
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://lacusveris.com/PythonTidy/
COMMENT= Cleans up, regularizes, and reformats the text of Python scripts
LICENSE= gnu-gpl-v2
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
NO_BUILD= yes
INSTALLATION_DIRS= bin
REPLACE_PYTHON= ${WRKSRC}/*.py
SUBST_CLASSES+= pythonbin
SUBST_STAGE.pythonbin= pre-configure
SUBST_MESSAGE.pythonbin= Fixing references to python interpreter.
SUBST_FILES.pythonbin= *.py
SUBST_SED.pythonbin= -e 's,%PYTHONBIN%,${PYTHONBIN},g'
do-extract:
${MKDIR} ${WRKSRC:Q}
${CP} ${_DISTDIR:Q}/${DISTNAME:Q}${EXTRACT_SUFX:Q} \
${WRKSRC:Q}/pythontidy.py
do-install:
${INSTALL_SCRIPT} ${WRKSRC:Q}/pythontidy.py \
${DESTDIR}${PREFIX}/bin/pythontidy
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"