aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pythontidy/Makefile
blob: b7e7cd76178ccaf57ac346ef1e8a5cc7e2d2f720 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# New ports collection makefile for:    pythontidy
# Date created:     Jan. 16 ,2007
# Whom:         Li-Wen Hsu <lwhsu@lwhsu.org>
#
# $FreeBSD$
#

PORTNAME=   pythontidy
PORTVERSION=    1.11
CATEGORIES= devel python
MASTER_SITES=   http://www.lacusveris.com/PythonTidy/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   PythonTidy-${PORTVERSION}.python
EXTRACT_SUFX=   #
DIST_SUBDIR=    python

MAINTAINER= lwhsu@lwhsu.org
COMMENT=    Cleans up, regularizes, and reformats the text of Python scripts

USE_PYTHON= yes
NO_BUILD=   yes

PLIST_FILES=    bin/pythontidy

do-extract:
    @${MKDIR} ${WRKDIR}
    @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKDIR}

do-patch:
    ${REINPLACE_CMD} -e s,/usr/bin/python,${PYTHON_CMD}, ${WRKDIR}/${DISTFILES}

do-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/${DISTFILES} ${TARGETDIR}/bin/pythontidy

.include <bsd.port.mk>