Ticket #48519: Portfile

File Portfile, 2.5 KB (added by hans@…, 9 years ago)
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$
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                fdroidserver
8version             0.4.0
9revision            0
10categories          devel net
11maintainers         eds.org:hans
12license             Affero GPL-3+
13
14description         Tools for creating and managing Android app repositories for F-Droid
15long_description \
16    F-Droid is an app store of FOSS \(Free and Open Source Software\) \
17    applications for the Android platform. The F-Droid server tools \
18    provide various scripts and tools that are used to maintain the \
19    main F-Droid application repository. You can use these same \
20    tools to create your own additional or alternative repository \
21    for publishing, or to assist in creating, testing and submitting \
22    metadata to the main repository.
23
24homepage            https://f-droid.org
25platforms           darwin
26master_sites        https://pypi.python.org/packages/source/f/fdroidserver/
27distname            fdroidserver-${version}
28
29checksums           md5 b98635817b6305353beb7ebf639be3d3 \
30                    rmd160 e0b6a91a3ed8692d61835e6e6b6ee0f2c3435662 \
31                    sha256 89742f2e03e082c9d185835dbb4f166dade19a0e257b247a6e0bca3b4fd9b523
32
33python.default_version  27
34
35# TODO: package pyasn1_modules
36
37depends_lib         port:libmagic \
38                    port:libyaml \
39                    port:py${python.version}-asn1 \
40                    port:py${python.version}-asn1-modules \
41                    port:py${python.version}-libcloud \
42                    port:py${python.version}-magic \
43                    port:py${python.version}-paramiko \
44                    port:py${python.version}-Pillow \
45                    port:py${python.version}-requests \
46                    port:py${python.version}-setuptools \
47                    port:py${python.version}-yaml
48
49post-destroot {
50    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
51    xinstall -m 644 -W ${worksrcpath} \
52        README.md \
53        ${destroot}${prefix}/share/doc/${name}/
54    # hmm.. something is creating this dir, but its empty, so just remove it
55    file delete ${destroot}${prefix}/share/doc/${name}/examples
56    ln -s ${python.prefix}/share/doc/${name}/examples \
57        ${destroot}${prefix}/share/doc/${name}/examples
58}
59
60livecheck.type  regex
61livecheck.url   https://pypi.python.org/pypi/fdroidserver/
62livecheck.regex fdroidserver/(\\d+(\\.\\d+)+)