2013-03-27 17:59:17 +01:00
|
|
|
# Created by: lbartoletti <coder@tuxfamily.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pyspatialite
|
|
|
|
PORTVERSION= 3.0.1
|
2015-06-12 13:12:29 +02:00
|
|
|
PORTREVISION= 6
|
2013-03-27 17:59:17 +01:00
|
|
|
CATEGORIES= databases python
|
2015-06-12 13:12:29 +02:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2013-03-27 17:59:17 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2015-05-11 20:34:57 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha-0
|
2013-03-27 17:59:17 +01:00
|
|
|
|
|
|
|
MAINTAINER= coder@tuxfamily.org
|
2015-02-14 19:52:05 +01:00
|
|
|
COMMENT= DB-API 2.0 interface for SQLite 3.x with Spatialite
|
2013-03-27 17:59:17 +01:00
|
|
|
|
2015-06-12 13:12:29 +02:00
|
|
|
LICENSE= ZLIB
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2015-02-14 19:52:05 +01:00
|
|
|
LIB_DEPENDS= libspatialite.so:${PORTSDIR}/databases/spatialite \
|
|
|
|
libgeos_c.so:${PORTSDIR}/graphics/geos \
|
|
|
|
libproj.so:${PORTSDIR}/graphics/proj \
|
|
|
|
libfreexl.so:${PORTSDIR}/textproc/freexl
|
|
|
|
|
2015-06-12 13:12:29 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2013-03-27 17:59:17 +01:00
|
|
|
|
2014-10-19 10:50:17 +02:00
|
|
|
USES= iconv python
|
2015-06-12 13:12:29 +02:00
|
|
|
USE_PYTHON= autoplist concurrent distutils
|
2013-03-27 17:59:17 +01:00
|
|
|
|
2013-09-06 15:07:07 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if empty(ICONV_LIB)
|
|
|
|
ICONV_APPEND=
|
|
|
|
.else
|
2015-02-14 19:52:05 +01:00
|
|
|
ICONV_APPEND= ,iconv
|
2013-09-06 15:07:07 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-27 17:59:17 +01:00
|
|
|
post-patch:
|
2015-06-12 13:12:29 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|pyspatialite-doc|${DOCSDIR}|g" ${WRKSRC}/setup.py
|
2015-02-14 19:52:05 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
|
|
|
|
-e "s|%%ICONV%%|${ICONV_APPEND}|" ${WRKSRC}/setup.cfg
|
2015-06-12 13:12:29 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyspatialite/_spatialite.so
|
|
|
|
|
2013-09-06 15:07:07 +02:00
|
|
|
.include <bsd.port.post.mk>
|