pkgsrc/devel/pythontidy/Makefile
rillig 7724b801cd devel: align variable assignments
pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
2019-11-03 10:39:04 +00:00

38 lines
1,013 B
Makefile

# $NetBSD: Makefile,v 1.5 2019/11/03 10:39:28 rillig Exp $
#
DISTNAME= PythonTidy-1.20
PKGNAME= ${DISTNAME:tl}
PKGREVISION= 2
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"