2003-02-06 00:20:32 +00:00
|
|
|
# New ports collection makefile for: py-PySQLite
|
|
|
|
# Date created: 02 Oct 2002
|
|
|
|
# Whom: Gerhard Haering <gerhard.haering@gmx.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-11-03 19:45:57 +00:00
|
|
|
PORTNAME= pysqlite
|
2007-08-01 14:22:43 +00:00
|
|
|
PORTVERSION= 2.3.5
|
2005-11-03 19:45:57 +00:00
|
|
|
CATEGORIES= databases python
|
2006-02-10 14:32:39 +00:00
|
|
|
MASTER_SITES= http://initd.org/pub/software/pysqlite/releases/${PORTVERSION:C/\.[0-9]$//}/${PORTVERSION}/ \
|
2005-11-07 02:36:07 +00:00
|
|
|
${MASTER_SITE_GENTOO}
|
|
|
|
MASTER_SITE_SUBDIR= distfiles
|
2005-11-03 19:45:57 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2003-02-06 00:20:32 +00:00
|
|
|
|
2005-11-03 19:45:57 +00:00
|
|
|
MAINTAINER= mnag@FreeBSD.org
|
|
|
|
COMMENT= A DB-API v2 Python library for the SQLite 3 embedded SQL engine
|
2003-02-06 00:20:32 +00:00
|
|
|
|
2005-11-03 19:45:57 +00:00
|
|
|
LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3
|
2003-02-06 00:20:32 +00:00
|
|
|
|
2006-07-10 03:07:30 +00:00
|
|
|
CONFLICTS= py*-pysqlite-2.[0-24-9].*
|
2005-04-10 09:48:07 +00:00
|
|
|
|
2005-11-03 19:45:57 +00:00
|
|
|
USE_PYTHON= 2.3+
|
2005-03-13 23:25:19 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
2005-05-22 00:14:38 +00:00
|
|
|
PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
2005-11-03 19:45:57 +00:00
|
|
|
DOCSBASE= share/doc/py-${PORTNAME}2
|
|
|
|
DOCSDIR= ${PREFIX}/${DOCSBASE}
|
2003-02-06 00:20:32 +00:00
|
|
|
|
2005-11-03 19:45:57 +00:00
|
|
|
PORTDOCS= *
|
2005-03-13 23:25:19 +00:00
|
|
|
|
2006-02-12 03:44:45 +00:00
|
|
|
post-patch:
|
2006-07-10 03:07:30 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr|${PREFIX}|" ${WRKSRC}/setup.cfg
|
2005-05-22 00:14:38 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-02-12 03:44:45 +00:00
|
|
|
@${REINPLACE_CMD} -E -e "s|pysqlite2-doc|${DOCSBASE}|" \
|
2006-02-12 04:04:47 +00:00
|
|
|
-e "s/.*(cmdclass|extras_require) =.*//" \
|
|
|
|
${WRKSRC}/setup.py
|
2005-05-22 00:14:38 +00:00
|
|
|
.else
|
2006-02-12 04:04:47 +00:00
|
|
|
@${REINPLACE_CMD} -E -e "s/.*(cmdclass|extras_require) =.*//" \
|
2006-02-12 03:44:45 +00:00
|
|
|
-e "s|data_files = \[.*|data_files = []|" \
|
|
|
|
-e "s|.*glob.glob\(.*\).*||" \
|
|
|
|
-e "s|.*pysqlite2-doc/code.*||" \
|
|
|
|
${WRKSRC}/setup.py
|
2005-05-22 00:14:38 +00:00
|
|
|
.endif
|
|
|
|
|
2003-02-06 00:20:32 +00:00
|
|
|
post-install:
|
2005-03-13 23:25:19 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-02-06 00:20:32 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-05-22 00:14:38 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}/code
|
2006-05-03 15:14:07 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
|
2003-02-06 00:20:32 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|