aboutsummaryrefslogtreecommitdiff
path: root/www/py-mechanize
diff options
context:
space:
mode:
authorNicola Vitale <nivit@FreeBSD.org>2007-02-23 13:02:50 +0000
committerNicola Vitale <nivit@FreeBSD.org>2007-02-23 13:02:50 +0000
commit0895c6b2c33d6767e95aee16e5d4dd81b3e429b8 (patch)
tree4335e2015614c4013f8cc493a84a5945261cdfc3 /www/py-mechanize
parent26d244bcbbe2cad62f60e807e9394db4f6690ef0 (diff)
downloadports-0895c6b2c33d6767e95aee16e5d4dd81b3e429b8.tar.gz
ports-0895c6b2c33d6767e95aee16e5d4dd81b3e429b8.zip
Notes
Diffstat (limited to 'www/py-mechanize')
-rw-r--r--www/py-mechanize/Makefile28
-rw-r--r--www/py-mechanize/distinfo6
-rw-r--r--www/py-mechanize/pkg-plist4
3 files changed, 26 insertions, 12 deletions
diff --git a/www/py-mechanize/Makefile b/www/py-mechanize/Makefile
index 2e64d14f1bb2..7c75ff457a32 100644
--- a/www/py-mechanize/Makefile
+++ b/www/py-mechanize/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= mechanize
-PORTVERSION= 0.0.9.a
+PORTVERSION= 0.1.6.b
CATEGORIES= www python
MASTER_SITES= http://wwwsearch.sourceforge.net/mechanize/src/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,18 +16,28 @@ 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 \
+BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \
+ ${PYTHON_SITELIBDIR}/ClientCookie/__init__.py:${PORTSDIR}/devel/py-clientcookie \
+ ${PYTHON_SITELIBDIR}/${PYCLIENTFORM_EGG}:${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}
+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}
-.include <bsd.port.mk>
+PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \
+ PYMECHANIZE_EGG=${PYMECHANIZE_EGG} \
+ PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION}
+
+PYMECHANIZE_EGG= ${DISTNAME}-py${PYTHON_VER}.egg
+
+.include <bsd.port.pre.mk>
+
+PYCLIENTFORM_EGG!= ${MAKE} -f ${PORTSDIR}/www/py-clientform/Makefile -V PYCLIENTFORM_EGG
+
+.include <bsd.port.post.mk>
diff --git a/www/py-mechanize/distinfo b/www/py-mechanize/distinfo
index de48a5ba1442..20bc5523dc72 100644
--- a/www/py-mechanize/distinfo
+++ b/www/py-mechanize/distinfo
@@ -1,3 +1,3 @@
-MD5 (mechanize-0.0.9a.tar.gz) = 7c805a9d3596b9e3267b1f88a9bbe1da
-SHA256 (mechanize-0.0.9a.tar.gz) = d46055a526f8772bc0f74cefe5125f0d400411fc74a6540c6e7c2d072045cfd1
-SIZE (mechanize-0.0.9a.tar.gz) = 25378
+MD5 (mechanize-0.1.6b.tar.gz) = 98c27be9464f1342ede05784999d2757
+SHA256 (mechanize-0.1.6b.tar.gz) = 133c7f2e75fbff97dc05d45cbf261c272cf0969bacfcdfa6e72eb03cbf50864d
+SIZE (mechanize-0.1.6b.tar.gz) = 230996
diff --git a/www/py-mechanize/pkg-plist b/www/py-mechanize/pkg-plist
new file mode 100644
index 000000000000..89f645bbdbcd
--- /dev/null
+++ b/www/py-mechanize/pkg-plist
@@ -0,0 +1,4 @@
+@comment $FreeBSD$
+@unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%PORTNAME%%==%%PORTVERSION%%
+%%PYTHON_SITELIBDIR%%/%%PYMECHANIZE_EGG%%
+@exec %%EASY_INSTALL_CMD%% -N -S %D/%%PYTHON_SITELIBDIR%% %%PORTNAME%%==%%PORTVERSION%%