[114142] trunk/dports/python/py-spatialite
vince at macports.org
vince at macports.org
Sat Nov 30 03:11:02 PST 2013
Revision: 114142
https://trac.macports.org/changeset/114142
Author: vince at macports.org
Date: 2013-11-30 03:11:02 -0800 (Sat, 30 Nov 2013)
Log Message:
-----------
Bump to 3.0.1-alpha, the previous version does not compile anymore.
Since the project has moved to GitHub, makes the port part of github group, too.
Modified Paths:
--------------
trunk/dports/python/py-spatialite/Portfile
trunk/dports/python/py-spatialite/files/patch-setup_py.diff
Modified: trunk/dports/python/py-spatialite/Portfile
===================================================================
--- trunk/dports/python/py-spatialite/Portfile 2013-11-30 11:03:47 UTC (rev 114141)
+++ trunk/dports/python/py-spatialite/Portfile 2013-11-30 11:11:02 UTC (rev 114142)
@@ -2,14 +2,14 @@
PortSystem 1.0
PortGroup python 1.0
+PortGroup github 1.0
name py-spatialite
# pyspatialite comes in several flavors according the spatialite API it's going to work with
-version 2.6.2
-revision 1
+version 3.0.1
set spatialite-compat "-spatialite.2.3.1"
-license ZLIB
+license BSD
maintainers and.damore openmaintainer
description Python interface to SQLite 3 and Spatialite
long_description \
@@ -21,12 +21,11 @@
platforms darwin
homepage http://pypi.python.org/pypi/pyspatialite/${version}${spatialite-compat}
-master_sites http://pypi.python.org/packages/source/p/pyspatialite
-distname pyspatialite-${version}${spatialite-compat}
+github.setup lokkju pyspatialite 3.0.1-alpha-0
-checksums md5 9b996455e8080dbeef5f0cdcb23c16e0 \
- sha1 f4b2785f2da727eab36297653ec330b7ad7fd114 \
- rmd160 d3a2717cb91c774b4e8714b097cb0d0018ad67d3
+checksums md5 b006a6fdc23a26400ea5b0d1ca6ab471 \
+ sha1 e9f60f6a46b6e523ddcf94fd7ec7c113985246fc \
+ rmd160 b6f7ff630e35cf0b0dbdd81b834d36c5fe162f91
# have to check if it works with 3.x
python.versions 24 25 26 27
@@ -38,9 +37,9 @@
port:geos \
port:proj
- patchfiles patch-setup_py.diff \
- patch-lib_dbapi2_py.diff \
- patch-src_connection.diff
+ patchfiles patch-setup_py.diff
+# patch-lib_dbapi2_py.diff \
+# patch-src_connection.diff
post-patch {
reinplace -locale C "s|%%PREFIX%%|${prefix}|" ${worksrcpath}/setup.py
Modified: trunk/dports/python/py-spatialite/files/patch-setup_py.diff
===================================================================
--- trunk/dports/python/py-spatialite/files/patch-setup_py.diff 2013-11-30 11:03:47 UTC (rev 114141)
+++ trunk/dports/python/py-spatialite/files/patch-setup_py.diff 2013-11-30 11:11:02 UTC (rev 114142)
@@ -1,20 +1,10 @@
---- setup.py_orig 2013-01-14 21:39:34.000000000 +1300
-+++ setup.py 2013-01-14 22:32:36.000000000 +1300
-@@ -117,12 +117,11 @@
- # sometimes iconv is built in, sometimes it isn't
- if not self.compiler.has_function("iconv"):
- ext.libraries.append("iconv")
--
-- #Default locations for Mac
-- ext.include_dirs.append("/Library/Frameworks/GEOS.framework/unix/include/")
-- ext.include_dirs.append("/Library/Frameworks/PROJ.framework/unix/include/")
-- ext.library_dirs.append("/Library/Frameworks/GEOS.framework/unix/lib")
-- ext.library_dirs.append("/Library/Frameworks/PROJ.framework/unix/lib")
-+ ext.libraries.append("charset")
-+
-+ # Default locations for Macports
-+ ext.include_dirs.append("%%PREFIX%%/include")
-+ ext.library_dirs.append("%%PREFIX%%/lib")
+--- setup.py.old 2013-11-30 11:54:05.000000000 +0100
++++ setup.py 2013-11-30 11:53:34.000000000 +0100
+@@ -170,6 +170,7 @@
+ include_dirs.extend(self.strip_includes(self.compiler.linker_exe))
+ include_dirs.extend(self.strip_includes(self.compiler.preprocessor))
+ self.compiler.include_dirs.extend(self.uniq(include_dirs))
++ self.compiler.include_dirs.append('%%PREFIX%%/include')
- ext.define_macros.append(("SQLITE_ENABLE_FTS3", "1")) # build with fulltext search enabled
- ext.define_macros.append(("SQLITE_ENABLE_RTREE", "1")) # build with fulltext search enabled
+ if self.with_proj4:
+ self.check_header(ext,"proj_api.h")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131130/551e119b/attachment.html>
More information about the macports-changes
mailing list