aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/pybook/Makefile
blob: 98be0c56c2a2fbf7b3f80828915e2a56d5616f58 (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
# ex:ts=8
# Ports collection makefile for:    pybook
# Date created:         Jan 27, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   pybook
PORTVERSION=    0.6f
CATEGORIES= textproc python
MASTER_SITES=   http://silmarill.org/pybook/

MAINTAINER= ports@FreeBSD.org

USE_PYTHON= yes

SETUP_CMD=  cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py

post-patch:
    @${PERL} -pi -e "s,python2,python,g" ${WRKSRC}/pybook.py

do-build:
    @${SETUP_CMD} build

do-install:
    @${SETUP_CMD} install
    @${MV} -f ${PREFIX}/bin/pybook.py ${PREFIX}/bin/pybook

.include <bsd.port.mk>