Index: Makefile =================================================================== RCS file: /home/pcvs/ports/security/pwman3/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- Makefile 6 May 2008 03:09:35 -0000 1.1 +++ Makefile 17 May 2009 08:00:57 -0000 @@ -7,6 +7,7 @@ PORTNAME= pwman3 PORTVERSION= 0.0.6 +PORTREVISION= 1 CATEGORIES= security python MASTER_SITES= http://pwman.bleurgh.com/~ivan/pwman3/source/ \ http://source.antisupport.com/pwman3/ @@ -16,11 +17,17 @@ COMMENT= Console password management application with sql storage RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycrypto>=2.0:${PORTSDIR}/security/py-pycrypto \ - ${PYTHON_PKGNAMEPREFIX}cElementTree>=1.0.5:${PORTSDIR}/devel/py-celementtree \ - ${PYTHON_PKGNAMEPREFIX}pysqlite>=2.0.5:${PORTSDIR}/databases/py-pysqlite23 + ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 USE_PYTHON= 2.5+ USE_PYDISTUTILS= yes PYDISTUTILS_PKGNAME= Pwman3 -.include +.include + +post-patch: + ${REINPLACE_CMD} -e s,cElementTree,xml.etree.cElementTree, ${WRKSRC}/pwman/exchange/exporter.py + ${REINPLACE_CMD} -e s,cElementTree,xml.etree.cElementTree, ${WRKSRC}/pwman/exchange/importer.py + ${REINPLACE_CMD} -e s,pysqlite2,sqlite3, ${WRKSRC}/pwman/data/drivers/sqlite.py + +.include