2005-04-29 09:06:01 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: py-mechanize
|
|
|
|
# Date created: Apr 29, 2005
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mechanize
|
2008-01-08 16:39:17 +01:00
|
|
|
PORTVERSION= 0.1.7.b
|
2005-04-29 09:06:01 +02:00
|
|
|
CATEGORIES= www python
|
2007-04-18 07:51:30 +02:00
|
|
|
MASTER_SITES= http://wwwsearch.sourceforge.net/mechanize/src/ \
|
|
|
|
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/
|
2005-04-29 09:06:01 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
|
|
|
|
|
2007-04-18 07:51:30 +02:00
|
|
|
MAINTAINER= lwhsu@FreeBSD.org
|
2005-04-29 09:06:01 +02:00
|
|
|
COMMENT= Stateful programmatic web browsing in Python
|
|
|
|
|
2007-02-23 14:02:50 +01:00
|
|
|
BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \
|
2007-02-26 17:17:39 +01:00
|
|
|
${PYTHON_SITELIBDIR}/${PYCLIENTFORM_EGG}:${PORTSDIR}/www/py-clientform
|
|
|
|
RUN_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \
|
|
|
|
${PYTHON_SITELIBDIR}/${PYCLIENTFORM_EGG}:${PORTSDIR}/www/py-clientform
|
2005-04-29 09:06:01 +02:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGVERSION= 0.1.6b
|
|
|
|
PYDISTUTILS_NOEGGINFO= yes # XXX convert easy_install support to bsd.python.mk's
|
2005-04-29 09:06:01 +02:00
|
|
|
|
2007-02-23 14:02:50 +01:00
|
|
|
EASY_INSTALL_CMD?= easy_install-${PYTHON_VER}
|
|
|
|
PYDISTUTILS_BUILD_TARGET= bdist_egg
|
|
|
|
PYDISTUTILS_INSTALL_TARGET= easy_install
|
|
|
|
PYDISTUTILS_INSTALLARGS= -N -s ${PREFIX}/bin -S ${PYTHON_SITELIBDIR} dist/${PYMECHANIZE_EGG}
|
2005-04-29 09:06:01 +02:00
|
|
|
|
2007-02-23 14:02:50 +01:00
|
|
|
PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
|
|
|
|
PYMECHANIZE_EGG=${PYMECHANIZE_EGG} \
|
|
|
|
PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION}
|
|
|
|
|
2007-02-26 17:17:39 +01:00
|
|
|
PYMECHANIZE_EGG= ${DISTNAME}-py${PYTHON_VER}.egg
|
2007-02-23 14:02:50 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
PYCLIENTFORM_EGG!= ${MAKE} -f ${PORTSDIR}/www/py-clientform/Makefile -V PYCLIENTFORM_EGG
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|