source: trunk/dports/python/py-astroML/Portfile

Last change on this file was 148976, checked in by raimue@…, 18 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- 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
2# $Id: Portfile 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           select 1.0
7
8set realname        astroML
9
10name                py-${realname}
11version             0.3
12categories-append   science
13license             BSD
14platforms           darwin
15supported_archs     noarch
16maintainers         aronnax openmaintainer
17
18python.versions     27 34 35
19
20description         tools for machine learning and data mining in astronomy
21
22long_description    AstroML is a Python module for machine learning and data \
23                    mining built on numpy, scipy, scikit-learn, and \
24                    matplotlib, and distributed under the 3-Clause BSD \
25                    license. It contains a growing library of statistical and \
26                    machine learning routines for analyzing astronomical data \
27                    in python, loaders for several open astronomical datasets, \
28                    and a large suite of examples of analyzing and visualizing \
29                    astronomical datasets.
30
31homepage            http://www.astroml.org
32master_sites        pypi:[string index ${realname} 0]/${realname}
33distname            ${realname}-${version}
34
35checksums           md5     56d5c281ca079eb569ef1898be1604db \
36                    sha1    dbf1a775f2dff6e3f3721d1b69a65a5d757bde95 \
37                    rmd160  2a029523b0fcc768acb4e2a3efe1050e24a32cc8
38
39if {${name} eq ${subport}} {
40    livecheck.type      regex
41    livecheck.url       http://pypi.python.org/pypi?:action=doap&name=${realname}
42    livecheck.regex     {<release><Version><revision>([^<]+)</revision></Version></release>}
43} else {
44    depends_lib-append \
45                    port:py${python.version}-numpy \
46                    port:py${python.version}-scipy \
47                    port:py${python.version}-matplotlib \
48                    port:py${python.version}-scikit-learn \
49                    port:py${python.version}-astropy
50
51    variant addons description "Install optional package ${name}_addons for faster C implementations of some algorithms" {
52        depends_run-append \
53                    port:${name}_addons
54    }
55
56    default_variants +addons
57
58    livecheck.type  none
59}
Note: See TracBrowser for help on using the repository browser.