diff options
Diffstat (limited to 'databases/py-pysqlite22/Makefile')
-rw-r--r-- | databases/py-pysqlite22/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/databases/py-pysqlite22/Makefile b/databases/py-pysqlite22/Makefile index 0708e62e6277..67acc1a930eb 100644 --- a/databases/py-pysqlite22/Makefile +++ b/databases/py-pysqlite22/Makefile @@ -7,6 +7,7 @@ PORTNAME= pysqlite PORTVERSION= 2.1.3 +PORTREVISION= 1 CATEGORIES= databases python MASTER_SITES= http://initd.org/pub/software/pysqlite/releases/${PORTVERSION:C/\.[0-9]$//}/${PORTVERSION}/ \ ${MASTER_SITE_GENTOO} @@ -28,12 +29,17 @@ DOCSDIR= ${PREFIX}/${DOCSBASE} PORTDOCS= * -pre-configure: +post-patch: @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" ${WRKSRC}/setup.cfg .if !defined(NOPORTDOCS) - @${REINPLACE_CMD} -e "s|pysqlite2-doc|${DOCSBASE}|" ${WRKSRC}/setup.py + @${REINPLACE_CMD} -E -e "s|pysqlite2-doc|${DOCSBASE}|" \ + -e "s|.*build_docs\(\)\$$||" ${WRKSRC}/setup.py .else - @${REINPLACE_CMD} -e "s|data_files = data_files,||" ${WRKSRC}/setup.py + @${REINPLACE_CMD} -E -e "s|.*build_docs\(\)\$$||" \ + -e "s|data_files = \[.*|data_files = []|" \ + -e "s|.*glob.glob\(.*\).*||" \ + -e "s|.*pysqlite2-doc/code.*||" \ + ${WRKSRC}/setup.py .endif post-install: |