pkgsrc/devel/pythontidy/Makefile

37 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2012/10/31 11:19:36 asau 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
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"