37 lines
867 B
Makefile
37 lines
867 B
Makefile
# $OpenBSD: Makefile,v 1.5 2011/09/16 12:00:08 espie Exp $
|
|
|
|
COMMENT= stateful programmatic web browsing module
|
|
|
|
MODPY_EGG_VERSION= 0.2.4
|
|
DISTNAME= mechanize-${MODPY_EGG_VERSION}
|
|
PKGNAME= py-${DISTNAME}
|
|
REVISION= 2
|
|
|
|
CATEGORIES= www
|
|
|
|
HOMEPAGE= http://wwwsearch.sourceforge.net/mechanize/
|
|
|
|
# BSD or Zope Public License v2.1
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MODULES= lang/python
|
|
MODPY_SETUPTOOLS= Yes
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/src/
|
|
|
|
REGRESS_DEPENDS= devel/py-twisted/web2/
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-mechanize
|
|
cd ${WRKSRC}/examples && umask 022 && pax -rw . \
|
|
${PREFIX}/share/examples/py-mechanize
|
|
|
|
do-regress: fake
|
|
cd ${WRKSRC} && \
|
|
env PYTHONPATH="${WRKINST}${MODPY_LIBDIR}/site-packages/mechanize" ${MODPY_BIN} test.py
|
|
|
|
.include <bsd.port.mk>
|