- Updated to 0.1.6.b
- Added pkg-plist PR: ports/109454 Submitted by: nivit
This commit is contained in:
parent
26d244bcbb
commit
0895c6b2c3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185748
3 changed files with 26 additions and 12 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
4
www/py-mechanize/pkg-plist
Normal file
4
www/py-mechanize/pkg-plist
Normal file
|
@ -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%%
|
Loading…
Reference in a new issue