source: trunk/dports/python/py-freebase/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: 1.7 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
6
7name                py-freebase
8epoch               1
9version             1.0.8
10revision            1
11categories-append   devel
12platforms           darwin
13license             BSD
14maintainers         nomaintainer
15
16description         Python interface to freebase.com API
17long_description    Freebase.com has an open API that can be used to \
18                    access and update structured data. The RESTful \
19                    http-based API is completely documented at \
20                    Freebase.com along with some simple examples. This \
21                    library provides a python interface to that API.
22homepage            http://code.google.com/p/freebase-python/
23
24supported_archs     noarch
25
26master_sites        pypi:f/freebase/
27distname            freebase-${version}
28checksums           md5     f873f6f53668b4df66c8b844c716acf5 \
29                    sha1    9f0e398d4f1e21126d5949ccf2bc8172d10065c0 \
30                    rmd160  f7ec4ba8c1918c60852724ff79e72e36800658e8
31
32python.versions     27
33
34if {${name} ne ${subport}} {
35    post-destroot {
36        xinstall -m 755 -d \
37                ${destroot}${prefix}/share/doc/${subport} \
38                ${destroot}${prefix}/share/examples/${subport}
39        xinstall -m 644 -W ${worksrcpath} COPYRIGHT README \
40                ${destroot}${prefix}/share/doc/${subport}
41        copy {*}[glob ${worksrcpath}/examples/*] \
42                ${destroot}${prefix}/share/examples/${subport}
43   }
44}
45
46livecheck.url       [lindex ${master_sites} 0]
47livecheck.regex     {freebase-([.\d]+)\.tar\.gz}
Note: See TracBrowser for help on using the repository browser.