2019-11-03 11:39:04 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2019/11/03 10:39:28 rillig Exp $
|
2011-08-31 13:43:17 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= PythonTidy-1.20
|
|
|
|
PKGNAME= ${DISTNAME:tl}
|
2019-04-25 09:32:34 +02:00
|
|
|
PKGREVISION= 2
|
2011-08-31 13:43:17 +02:00
|
|
|
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}
|
|
|
|
|
2019-11-03 11:39:04 +01:00
|
|
|
NO_BUILD= yes
|
2011-08-31 13:43:17 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2019-11-03 11:39:04 +01:00
|
|
|
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'
|
2011-08-31 13:43:17 +02:00
|
|
|
|
|
|
|
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"
|