summaryrefslogtreecommitdiff
path: root/databases/py-pysqlite23/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/py-pysqlite23/Makefile')
-rw-r--r--databases/py-pysqlite23/Makefile33
1 files changed, 19 insertions, 14 deletions
diff --git a/databases/py-pysqlite23/Makefile b/databases/py-pysqlite23/Makefile
index f9fbc1abec0e..fd06c507999d 100644
--- a/databases/py-pysqlite23/Makefile
+++ b/databases/py-pysqlite23/Makefile
@@ -5,38 +5,43 @@
# $FreeBSD$
#
-PORTNAME= PySQLite
-PORTVERSION= 1.1.6
+PORTNAME= pysqlite
+PORTVERSION= 2.0.0
CATEGORIES= databases python
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= pysqlite
+MASTER_SITES= http://initd.org/pub/software/pysqlite/releases/2.0/2.0.0/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= pysqlite-${PORTVERSION}
MAINTAINER= marcus@corp.grupos.com.br
COMMENT= A DB-API v2 Python library for the SQLite 3 embedded SQL engine
LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3
-LATEST_LINK= ${PYTHON_PKGNAMEPREFIX}${PORTNAME}11
+LATEST_LINK= ${PYTHON_PKGNAMEPREFIX}${PORTNAME}2
-CONFLICTS= py*-PySQLite-1.0*
-
-WRKSRC= ${WRKDIR}/pysqlite
-USE_PYTHON= yes
+USE_REINPLACE= yes
+USE_PYTHON= 2.3+
USE_PYDISTUTILS= yes
+PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib
+DOCSBASE= share/doc/py-${PORTNAME}2
+DOCSDIR= ${PREFIX}/${DOCSBASE}
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
+pre-configure:
+ @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" ${WRKSRC}/setup.cfg
+.if !defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e "s|pysqlite2-doc|${DOCSBASE}|" ${WRKSRC}/setup.py
+.else
+ @${REINPLACE_CMD} -e "s|data_files = data_files,||" ${WRKSRC}/setup.py
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/doc/rest/manual.txt ${DOCSDIR}
- @${MKDIR} ${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
+ @${MKDIR} ${DOCSDIR}/code
+ @${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
.endif
.include <bsd.port.mk>