[89246] trunk/dports/python
and.damore at macports.org
and.damore at macports.org
Sat Jan 21 15:55:13 PST 2012
Revision: 89246
http://trac.macports.org/changeset/89246
Author: and.damore at macports.org
Date: 2012-01-21 15:55:11 -0800 (Sat, 21 Jan 2012)
Log Message:
-----------
port py-gdal: moving to python portgroup from py27-gdal (deleted)
Added Paths:
-----------
trunk/dports/python/py-gdal/
trunk/dports/python/py-gdal/Portfile
Removed Paths:
-------------
trunk/dports/python/py27-gdal/
Added: trunk/dports/python/py-gdal/Portfile
===================================================================
--- trunk/dports/python/py-gdal/Portfile (rev 0)
+++ trunk/dports/python/py-gdal/Portfile 2012-01-21 23:55:11 UTC (rev 89246)
@@ -0,0 +1,55 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+
+name py-gdal
+version 1.8.1
+license MIT
+maintainers and.damore openmaintainer
+description GDAL: Geospatial Data Abstraction Library
+long_description \
+ This Python package and extensions are a number of tools for programming \
+ and manipulating the GDAL Geospatial Data Abstraction Library.
+platforms darwin
+homepage http://www.gdal.org
+master_sites http://pypi.python.org/packages/source/G/GDAL/
+distname GDAL-${version}
+checksums md5 cab9540923a71f448aeb0ef588e462ce \
+ sha1 f76ec50adbb74924aa6699397688d8124d73f1e4 \
+ rmd160 47c6be95e0407e1b72272b9f505c868aa3bea93c
+
+#set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
+python.versions 24 25 26 27
+
+if {$subport != $name} {
+ depends_lib port:gdal
+
+ if {${python.version} != 24} {
+ depends_lib-append port:py${python.version}-numpy
+ } else {
+ depends_lib-append port:py-numpy
+ }
+}
+
+patch {
+ reinplace "s|../../apps/|${prefix}/bin/|" ${worksrcpath}/setup.cfg
+}
+
+post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
+ xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}/scripts
+
+ xinstall -W ${worksrcpath} README.txt PKG-INFO \
+ ${destroot}${prefix}/share/doc/${name}
+
+ xinstall -m 644 ${worksrcpath}/samples/README \
+ ${destroot}${prefix}/share/examples/${name}/
+ eval xinstall -m 755 [glob ${worksrcpath}/samples/*.py] \
+ ${destroot}${prefix}/share/examples/${name}/
+ eval xinstall -m 755 [glob ${worksrcpath}/scripts/*.py] \
+ ${destroot}${prefix}/share/examples/${name}/scripts
+ eval xinstall -m 644 [glob ${worksrcpath}/scripts/*.dox] \
+ ${destroot}${prefix}/share/examples/${name}/scripts
+}
Property changes on: trunk/dports/python/py-gdal/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120121/866bb99e/attachment-0001.html>
More information about the macports-changes
mailing list