2013-03-27 17:59:17 +01:00
|
|
|
# Created by: lbartoletti <coder@tuxfamily.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pyspatialite
|
|
|
|
PORTVERSION= 3.0.1
|
2016-01-03 18:50:43 +01:00
|
|
|
DISTVERSIONSUFFIX= -alpha-0
|
2015-06-15 15:03:11 +02:00
|
|
|
PORTREVISION= 7
|
2013-03-27 17:59:17 +01:00
|
|
|
CATEGORIES= databases python
|
2016-01-03 18:50:43 +01:00
|
|
|
MASTER_SITES= CHEESESHOP/source/p/${PORTNAME}
|
2013-03-27 17:59:17 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2017-06-10 16:54:34 +02:00
|
|
|
MAINTAINER= lbartoletti@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
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libspatialite.so:databases/spatialite \
|
|
|
|
libgeos_c.so:graphics/geos \
|
|
|
|
libproj.so:graphics/proj \
|
|
|
|
libfreexl.so:textproc/freexl
|
2015-02-14 19:52:05 +01:00
|
|
|
|
2015-06-12 13:12:29 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2013-03-27 17:59:17 +01:00
|
|
|
|
2017-11-30 16:50:30 +01:00
|
|
|
USES= iconv python:2.7
|
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>
|