aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-mechanize/Makefile
blob: 2e64d14f1bb2c64839ad64554313baeb9370e139 (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
# ex:ts=8
# Ports collection makefile for:    py-mechanize
# Date created:         Apr 29, 2005
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   mechanize
PORTVERSION=    0.0.9.a
CATEGORIES= www python
MASTER_SITES=   http://wwwsearch.sourceforge.net/mechanize/src/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Stateful programmatic web browsing in Python

BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/ClientCookie/__init__.py:${PORTSDIR}/devel/py-clientcookie \
        ${PYTHON_SITELIBDIR}/ClientForm.py:${PORTSDIR}/www/py-clientform \
        ${PYTHON_SITELIBDIR}/pullparser.py:${PORTSDIR}/www/py-pullparser
RUN_DEPENDS=    ${BUILD_DEPENDS}

USE_PYTHON= yes
USE_PYDISTUTILS=    yes

post-install:
    @${FIND} ${PYTHON_SITELIBDIR}/mechanize ! -type d | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${PYTHON_SITELIBDIR}/mechanize -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}

.include <bsd.port.mk>