[145876] trunk/dports/python/py-obspy/Portfile
petr at macports.org
petr at macports.org
Fri Feb 19 10:15:25 PST 2016
Revision: 145876
https://trac.macports.org/changeset/145876
Author: petr at macports.org
Date: 2016-02-19 10:15:24 -0800 (Fri, 19 Feb 2016)
Log Message:
-----------
py-obspy: update to version 1.0.0
Modified Paths:
--------------
trunk/dports/python/py-obspy/Portfile
Modified: trunk/dports/python/py-obspy/Portfile
===================================================================
--- trunk/dports/python/py-obspy/Portfile 2016-02-19 17:49:18 UTC (rev 145875)
+++ trunk/dports/python/py-obspy/Portfile 2016-02-19 18:15:24 UTC (rev 145876)
@@ -3,15 +3,15 @@
PortSystem 1.0
PortGroup python 1.0
+PortGroup select 1.0
set _name obspy
set _n [string index ${_name} 0]
-name py-obspy
-conflicts ${name}-devel
+name py-${_name}
+conflicts py-${_name}-devel
-version 0.10.2
-revision 2
+version 1.0.0
categories-append science
platforms darwin
license LGPL-3
@@ -33,33 +33,76 @@
distname ${_name}-${version}
master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
-checksums md5 7a77c6b96143e6758c38fed0775d2b16 \
- rmd160 17d7cfd97472fc1fce34fe36b90f98da6c3d2c0b \
- sha256 9af1b349204a1447a1ceac9b1844295297bb40217c98d8e01b62d51e6ceda609
+checksums md5 40925691d3b0eaeac39b0513c46cf306 \
+ rmd160 3dc521ac999e1860d76df9da745ad12a84e4b65e \
+ sha256 df0d5df29f72f03247a93ebf47de999d8fd7070bef7b94e0669412824570e5d5
-python.versions 27 34
+python.versions 27 34 35
if {${name} ne ${subport}} {
- depends_build-append port:py${python.version}-numpy
+ conflicts py{python.version}-${_name}
- depends_lib-append port:py${python.version}-future \
+ # py-scipy is not universal
+ universal_variant no
+
+ depends_build-append port:py${python.version}-setuptools \
+ port:py${python.version}-numpy
+
+ depends_lib-append port:py${python.version}-decorator \
+ port:py${python.version}-future \
port:py${python.version}-lxml \
port:py${python.version}-matplotlib \
port:py${python.version}-numpy \
port:py${python.version}-scipy \
- port:py${python.version}-setuptools \
+ port:py${python.version}-requests \
port:py${python.version}-sqlalchemy
- # py-numpy & py-scipy are not universal
- universal_variant no
+ # soft dependencies added for simplicity
+ depends_lib-append port:py${python.version}-gdal \
+ port:py${python.version}-geographiclib
- # fix wrong file permissions of the distfile
- post-extract {
- fs-traverse f ${worksrcpath} {
- file attributes ${f} -permissions a+r
+ # Note: Required for post-installation testing only
+ depends_run-append port:py${python.version}-flake8 \
+ port:py${python.version}-flake8-pep8-naming \
+ port:py${python.version}-pyproj
+
+ # Python 3.3+: mock is available as unittest.mock
+ if { ${python.version} < 33 } {
+ depends_run-append port:py${python.version}-mock
+ }
+
+ # add manpages
+ depends_build-append port:help2man
+
+ post-build {
+ set libarch [glob -tail -directory ${worksrcpath}/build lib.*]
+ set libsrc build/${libarch}/obspy/lib
+ set libtgt ${worksrcpath}/obspy/lib
+
+ # hack: link to built libraries to make scripts (and help2man) work
+ foreach l [glob -tail -directory ${worksrcpath}/${libsrc} *.so] {
+ ln -s ../../${libsrc}/${l} ${libtgt}/.
}
+
+ system -W ${worksrcpath} "${build.cmd} build_man"
}
+ post-destroot {
+ system -W ${worksrcpath} "${destroot.cmd} install_man ${destroot.destdir}"
+ }
+ # port select
+ depends_run-append port:${_name}_select
+
+ select.group ${_name}
+ select.file ${filespath}/${_name}${python.version}
+
+ notes-append "
+To make this Python ${python.branch} version of ObsPy the default \
+(i.e, use its script by their default names, e.g. obspy-runtests, etc.), run:
+
+sudo port select --set ${select.group} [file tail ${select.file}]
+ "
+
livecheck.type none
} else {
livecheck.type regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160219/3603c181/attachment.html>
More information about the macports-changes
mailing list