[127685] trunk/dports/python/py-gdal/Portfile
petr at macports.org
petr at macports.org
Fri Oct 31 21:06:43 PDT 2014
Revision: 127685
https://trac.macports.org/changeset/127685
Author: petr at macports.org
Date: 2014-10-31 21:06:43 -0700 (Fri, 31 Oct 2014)
Log Message:
-----------
py-gdal: update to @1.11.1 and add py34 subport, closes #45692.
Further modifications:
* use PyPI pattern
* formating, cleanup
* doc and examples
* add categories and livecheck
Modified Paths:
--------------
trunk/dports/python/py-gdal/Portfile
Modified: trunk/dports/python/py-gdal/Portfile
===================================================================
--- trunk/dports/python/py-gdal/Portfile 2014-11-01 03:23:12 UTC (rev 127684)
+++ trunk/dports/python/py-gdal/Portfile 2014-11-01 04:06:43 UTC (rev 127685)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
@@ -3,24 +4,29 @@
PortGroup python 1.0
+set _name GDAL
+set _n [string index ${_name} 0]
+
name py-gdal
-version 1.8.1
-revision 1
+version 1.11.1
+categories-append gis
+platforms darwin
license MIT
maintainers nomaintainer
+
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
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+distname ${_name}-${version}
-#set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
-python.versions 26 27
+checksums md5 1a6b51c8e2dd5990007a33e081b8a057 \
+ sha1 50c34b3484a7a0ae3fdf7289deecd6472685937b \
+ rmd160 720064d6a747818b0f2161a5855c6e07b2cb7b3c
+python.versions 26 27 34
+
if {${name} ne ${subport}} {
depends_lib-append port:gdal \
@@ -29,22 +35,20 @@
patch {
reinplace "s|../../apps/|${prefix}/bin/|" ${worksrcpath}/setup.cfg
}
-
+
post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
- xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}
- xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}/scripts
-
- xinstall -W ${worksrcpath} README.txt PKG-INFO \
- ${destroot}${prefix}/share/doc/${subport}
-
- xinstall -m 644 ${worksrcpath}/samples/README \
- ${destroot}${prefix}/share/examples/${subport}/
- eval xinstall -m 755 [glob ${worksrcpath}/samples/*.py] \
- ${destroot}${prefix}/share/examples/${subport}/
- eval xinstall -m 755 [glob ${worksrcpath}/scripts/*.py] \
- ${destroot}${prefix}/share/examples/${subport}/scripts
- eval xinstall -m 644 [glob ${worksrcpath}/scripts/*.dox] \
- ${destroot}${prefix}/share/examples/${subport}/scripts
+ set dest_doc ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 755 -d ${dest_doc}
+
+ xinstall ${worksrcpath}/README.txt ${dest_doc}
+
+ copy ${worksrcpath}/samples ${dest_doc}/examples
+ copy ${worksrcpath}/scripts ${dest_doc}/examples
}
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url [lindex ${master_sites} 0]
+ livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141031/9f2f0a18/attachment-0001.html>
More information about the macports-changes
mailing list