Index: head/databases/pyspatialite/pkg-plist =================================================================== --- head/databases/pyspatialite/pkg-plist (revision 389264) +++ head/databases/pyspatialite/pkg-plist (nonexistent) @@ -1,18 +0,0 @@ -%%PYTHON_SITELIBDIR%%/pyspatialite-3.0.1_alpha_0-py%%PYTHON_VER%%.egg-info/PKG-INFO -%%PYTHON_SITELIBDIR%%/pyspatialite-3.0.1_alpha_0-py%%PYTHON_VER%%.egg-info/SOURCES.txt -%%PYTHON_SITELIBDIR%%/pyspatialite-3.0.1_alpha_0-py%%PYTHON_VER%%.egg-info/dependency_links.txt -%%PYTHON_SITELIBDIR%%/pyspatialite-3.0.1_alpha_0-py%%PYTHON_VER%%.egg-info/top_level.txt -%%PYTHON_SITELIBDIR%%/pyspatialite/__init__.py -%%PYTHON_SITELIBDIR%%/pyspatialite/__init__.pyc -%%PYTHON_SITELIBDIR%%/pyspatialite/__init__.pyo -%%PYTHON_SITELIBDIR%%/pyspatialite/_spatialite.so -%%PYTHON_SITELIBDIR%%/pyspatialite/dbapi2.py -%%PYTHON_SITELIBDIR%%/pyspatialite/dbapi2.pyc -%%PYTHON_SITELIBDIR%%/pyspatialite/dbapi2.pyo -%%PYTHON_SITELIBDIR%%/pyspatialite/dump.py -%%PYTHON_SITELIBDIR%%/pyspatialite/dump.pyc -%%PYTHON_SITELIBDIR%%/pyspatialite/dump.pyo -%%PORTDOCS%%%%DOCSDIR%%/default.css -%%PORTDOCS%%%%DOCSDIR%%/docutils.css -%%PORTDOCS%%%%DOCSDIR%%/install-source.txt -%%PORTDOCS%%@dir %%DOCSDIR%%/code Property changes on: head/databases/pyspatialite/pkg-plist ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/databases/pyspatialite/Makefile =================================================================== --- head/databases/pyspatialite/Makefile (revision 389264) +++ head/databases/pyspatialite/Makefile (revision 389265) @@ -1,39 +1,44 @@ # Created by: lbartoletti # $FreeBSD$ PORTNAME= pyspatialite PORTVERSION= 3.0.1 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= databases python -MASTER_SITES= CHEESESHOP/source/p/${PORTNAME} +MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha-0 MAINTAINER= coder@tuxfamily.org COMMENT= DB-API 2.0 interface for SQLite 3.x with Spatialite +LICENSE= ZLIB +LICENSE_FILE= ${WRKSRC}/LICENSE + LIB_DEPENDS= libspatialite.so:${PORTSDIR}/databases/spatialite \ libgeos_c.so:${PORTSDIR}/graphics/geos \ libproj.so:${PORTSDIR}/graphics/proj \ libfreexl.so:${PORTSDIR}/textproc/freexl - -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-alpha-0 +OPTIONS_DEFINE= DOCS USES= iconv python -USE_PYTHON= distutils -PYDISTUTILS_PKGNAME= pyspatialite +USE_PYTHON= autoplist concurrent distutils .include .if empty(ICONV_LIB) ICONV_APPEND= .else ICONV_APPEND= ,iconv .endif post-patch: - @${REINPLACE_CMD} -e "s|pyspatialite-doc|${DOCSDIR}|g" ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e "s|pyspatialite-doc|${DOCSDIR}|g" ${WRKSRC}/setup.py @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ -e "s|%%ICONV%%|${ICONV_APPEND}|" ${WRKSRC}/setup.cfg + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyspatialite/_spatialite.so + .include Index: head/databases/pyspatialite/files/patch-setup.cfg =================================================================== --- head/databases/pyspatialite/files/patch-setup.cfg (revision 389264) +++ head/databases/pyspatialite/files/patch-setup.cfg (revision 389265) @@ -1,11 +1,11 @@ ---- setup.cfg.orig 2014-12-30 18:37:55.696294687 +0100 -+++ setup.cfg 2014-12-30 18:37:30.988798563 +0100 -@@ -2,3 +2,8 @@ +--- setup.cfg.orig 2013-11-22 19:21:43 UTC ++++ setup.cfg +@@ -2,4 +2,9 @@ tag_build = tag_date = 0 tag_svn_revision = 0 +[build_ext] +libraries = spatialite,geos,geos_c,proj%%ICONV%% -+library-dirs = %%LOCALBASE%%/lib/ -+include-dirs = %%LOCALBASE%%/include/ -+with-freexl = True ++library-dirs = %%LOCALBASE%%/lib ++include-dirs = %%LOCALBASE/include ++with-freexl = True Index: head/databases/pyspatialite/files/patch-setup.py =================================================================== --- head/databases/pyspatialite/files/patch-setup.py (revision 389264) +++ head/databases/pyspatialite/files/patch-setup.py (revision 389265) @@ -1,37 +1,46 @@ ---- setup.py.orig 2014-12-30 18:38:25.823292562 +0100 -+++ setup.py 2014-12-30 18:39:43.418635165 +0100 -@@ -65,7 +65,7 @@ +--- setup.py.orig 2013-11-22 19:17:22 UTC ++++ setup.py +@@ -65,8 +65,6 @@ class DocBuilder(Command): if rc != 0: print "Is sphinx installed? If not, try 'sudo easy_install sphinx'." -AMALGAMATION_ROOT = "amalgamation/libspatialite-amalgamation-3.0.1" -+#AMALGAMATION_ROOT = "amalgamation/libspatialite-amalgamation-3.0.1" - +- TRUTHY = ("yes", "true", "t", "1") -@@ -258,12 +258,12 @@ - "src/prepare_protocol.c", + class HeaderNotFoundException(Exception): +@@ -220,12 +218,11 @@ def get_setup_args(): + print "Fatal error: PYSPATIALITE_VERSION could not be detected!" + sys.exit(1) + +- data_files = [("pyspatialite-doc", ++ data_files = [("/usr/local/share/doc/pyspatialite", + glob.glob("doc/*.html") \ + + glob.glob("doc/*.txt") \ + + glob.glob("doc/*.css")), +- ("pyspatialite-doc/code", +- glob.glob("doc/code/*.py"))] ++ ] + + py_modules = ["spatialite"] + setup_args = dict( +@@ -259,11 +256,8 @@ def get_setup_args(): "src/statement.c", "src/util.c", -- "src/row.c", + "src/row.c", - os.path.join(AMALGAMATION_ROOT, "sqlite3.c"), - os.path.join(AMALGAMATION_ROOT, "spatialite.c") -+ "src/row.c" -+# os.path.join(AMALGAMATION_ROOT, "sqlite3.c"), -+# os.path.join(AMALGAMATION_ROOT, "spatialite.c") ], include_dirs = [ - os.path.join(AMALGAMATION_ROOT,"headers") -+# os.path.join(AMALGAMATION_ROOT,"headers") ], library_dirs = [], runtime_library_dirs = [], -@@ -272,7 +272,7 @@ +@@ -272,7 +266,6 @@ def get_setup_args(): ("VERSION",'"%s"' % PYSPATIALITE_VERSION), ("SQLITE_ENABLE_RTREE", "1"), # build with fulltext search enabled ("NDEBUG","1"), - ("SPL_AMALGAMATION","1"), -+# ("SPL_AMALGAMATION","1"), ('MODULE_NAME', '\\"spatialite.dbapi2\\"') if sys.platform == "win32" else ('MODULE_NAME', '"spatialite.dbapi2"') ], ) Index: head/databases/pyspatialite/files/patch-src-connection.h =================================================================== --- head/databases/pyspatialite/files/patch-src-connection.h (revision 389264) +++ head/databases/pyspatialite/files/patch-src-connection.h (revision 389265) @@ -1,11 +1,11 @@ ---- src/connection.h.orig 2014-12-30 18:40:27.628284595 +0100 -+++ src/connection.h 2014-12-30 18:40:37.947283409 +0100 +--- src/connection.h.orig 2013-11-22 09:33:35 UTC ++++ src/connection.h @@ -30,7 +30,7 @@ #include "cache.h" #include "module.h" -#include "spatialite/sqlite3.h" +#include "spatialite/sqlite.h" #include "spatialite.h" SPATIALITE_DECLARE void spatialite_init(int verbose);