aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-pysqlite22/Makefile
blob: 4dfef1b4d430bc3c7537854a101ced9b55b165cd (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
# New ports collection makefile for:   py-PySQLite
# Date created:                        02 Oct 2002
# Whom:                                Gerhard Haering <gerhard.haering@gmx.de>
#
# $FreeBSD$
#

PORTNAME=   PySQLite
PORTVERSION=    0.3.0
CATEGORIES= databases python
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pysqlite
PKGNAMEPREFIX=  py-
DISTNAME=   pysqlite-${PORTVERSION}

MAINTAINER= gerhard.haering@gmx.de

RUN_DEPENDS=    ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
LIB_DEPENDS=    sqlite.2:${PORTSDIR}/databases/sqlite

WRKSRC=     ${WRKDIR}/pysqlite-${PORTVERSION}
USE_PYTHON= yes
USE_REINPLACE=  yes
USE_PYDISTUTILS=    yes

DOCS=       README

PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}

DATETIME_DEP=   ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py

DOCSDIR=    ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}

post-patch:
    ${REINPLACE_CMD} -e 's^/usr/local/include/sqlite^${LOCALBASE}/include^g' ${WRKSRC}/setup.py
    ${REINPLACE_CMD} -e 's^/usr/local/lib^${LOCALBASE}/lib^g' ${WRKSRC}/setup.py

.if !defined(NOPORTDOCS)
post-install:
    @${MKDIR} ${DOCSDIR}
.for file in ${DOCS}
    @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
szeising2013-09-301-5/+5 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * Update to 2.21.9 for new xorg.zeising2013-06-211-1/+3 * Update to 2.21.8 for new xorg.zeising2013-06-051-1/+1 * The FreeBSD x11 team proudly presentszeising2013-05-251-9/+19 * Teach the KMS intel driver how the KMS i915 kernel module in head is named.kwm2012-06-071-1/+2 * - Please welcome Xorg 7.5.2miwi2012-04-221-5/+44 * - Remove WITH_FBSD10_FIX, is no longer neededmiwi2011-11-091-1/+0 * - Fix build on FreeBSD 10.0miwi2011-10-291-0/+1 * - Please welcome Xorg 7.5.1miwi2011-02-261-8/+2 * - Fix build on 6.Xmiwi2010-05-071-1/+7 * Add another patch to fix unresolved symbols.rnoland2010-05-041-1/+1 * - Update to Xorg 7.5miwi2010-05-011-1/+1 * Chase xorg-server update and bump driver PORTREVISIONS.rnoland2010-02-071-0/+1 * Update to 2.7.1rnoland2009-05-131-1/+1 * Update to 2.7.0rnoland2009-05-081-2/+2 * Update Xorg server to 1.6.0rnoland2009-04-041-1/+1 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-241-1/+1 * Update x11-drivers/xf86-video-intel to 2.4.3.flz2008-12-231-1/+1 * Update x11-drivers/xf86-video-intel to 2.4.2.flz2008-09-021-1/+1 * Update x11-drivers/xf86-video-intel to 2.4.0.flz2008-07-311-1/+1 * Update to 2.3.2.delphij2008-07-231-2/+1 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1 * Update x11-drivers/xf86-video-intel to 2.2.1.flz2008-04-011-1/+1 * Rollback to xf86-video-intel 2.1.1 before anyone notices.flz2008-01-021-1/+1 * Update x11-drivers/xf86-video-intel to 2.2.0.flz2008-01-021-1/+1 * - Update X.org ports to 7.3.flz2007-09-141-1/+1 * xf86-video-intel: update to 2.1.0anholt2007-07-061-1/+1