blob: 0c5ce47733dd8e33bfa686dfd82e2689a7b11c46 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# New ports collection makefile for: py-PySQLite
# Date created: 02 Oct 2002
# Whom: Gerhard Haering <gerhard.haering@gmx.de>
#
# $FreeBSD$
#
PORTNAME= pysqlite
PORTVERSION= 2.0.7
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.1*
NO_LATEST_LINK= 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}
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|.*build_docs\(\)\$$||" ${WRKSRC}/setup.py
.else
@${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:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/code
@${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
.endif
.include <bsd.port.mk>
|