1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/databases/py-pysqlite22/Makefile
Eitan Adler 7a6c7f9b8e - deprecate py-PySQLite10, py-PySQLite11, py-pysqlite20, py-pysqlite22, py-pysqlite23
PR:		ports/161038
Submitted by:	Ruslan Mahmatkhanov <cvs-src@yandex.ru>
Approved by:	maintainer timeout (16 days)
Approved by:	sahil (mentor)
2011-10-13 03:52:30 +00:00

59 lines
1.6 KiB
Makefile

# New ports collection makefile for: py-PySQLite
# Date created: 02 Oct 2002
# Whom: Gerhard Haering <gerhard.haering@gmx.de>
#
# $FreeBSD$
#
PORTNAME= pysqlite
PORTVERSION= 2.2.2
PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= http://initd.org/pub/software/pysqlite/releases/${PORTVERSION:C/\.[0-9]$//}/${PORTVERSION}/ \
${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR= distfiles
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= mnag@FreeBSD.org
COMMENT= A DB-API v2 Python library for the SQLite 3 embedded SQL engine
LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3
CONFLICTS= py*-pysqlite-2.[0-13-9].*
DEPRECATED= unmaintained upstream, only useful for python2.4 or less, no consumers in the ports tree
EXPIRATION_DATE= 2011-12-11
LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}22${PKGNAMESUFFIX}
USE_PYTHON= 2.5+
USE_PYDISTUTILS= yes
PYDISTUTILS_BUILDARGS= build_ext -I${LOCALBASE}/include -L${LOCALBASE}/lib
DOCSBASE= share/doc/py-${PORTNAME}2
DOCSDIR= ${PREFIX}/${DOCSBASE}
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" ${WRKSRC}/setup.cfg
.if !defined(NOPORTDOCS)
@${REINPLACE_CMD} -E -e "s|pysqlite2-doc|${DOCSBASE}|" \
-e "s/.*(cmdclass|extras_require) =.*//" \
${WRKSRC}/setup.py
.else
@${REINPLACE_CMD} -E -e "s/.*(cmdclass|extras_require) =.*//" \
-e "s|data_files = \[.*|data_files = []|" \
-e "s|.*glob.glob\(.*\).*||" \
-e "s|.*pysqlite2-doc/code.*||" \
${WRKSRC}/setup.py
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/code
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
.endif
.include <bsd.port.mk>