source: trunk/dports/devel/bzr/Portfile

Last change on this file was 126086, checked in by jmr@…, 3 years ago

bzr: use unified python portgroup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 126086 2014-10-03 12:40:54Z ryandesign@macports.org $
2
3PortSystem    1.0
4PortGroup     python 1.0
5
6name          bzr
7version       2.6.0
8set branch    [join [lrange [split ${version} .] 0 1] .]
9categories    devel python
10platforms     darwin
11license       GPL-2+
12maintainers   raimue
13
14description   The next-generation distributed version control system
15long_description  Bazaar is an open source distributed version control \
16    system that is powerful, friendly, and scalable. It manages trees of \
17    files and subdirectories, In particular, it records revisions of trees, \
18    representing their state at a particular point in time, and information \
19    about those revisions and their relationships. Recording and retrieving \
20    tree revisions is useful in several ways if you are writing software or \
21    documents or doing similar creative work.
22
23homepage      http://bazaar-vcs.org/
24master_sites  https://launchpad.net/${name}/${branch}/${version}/+download/
25
26checksums     md5     28c86653d0df10d202c6b842deb0ea35\
27              rmd160  794dbc585fd1acc711b59016d0b2c3dfe97927d7 \
28              sha256  0994797182eb828867eee81cccc79480bd2946c99304266bc427b902cf91dab0
29
30python.default_version  27
31
32patchfiles    patch-setup.py.diff
33
34depends_lib-append  port:py${python.version}-paramiko \
35                    port:py${python.version}-crypto \
36                    port:py${python.version}-curl \
37                    port:py${python.version}-docutils \
38                    port:py${python.version}-pyrex
39
40test.run      yes
41test.cmd      make
42test.target   check
43
44python.link_binaries no
45
46post-destroot {
47    ln -s ${python.prefix}/bin/bzr ${destroot}${prefix}/bin/
48    ln -s ${python.prefix}/share/man/man1/bzr.1 \
49        ${destroot}${prefix}/share/man/man1
50    xinstall -m 644 -W ${worksrcpath} INSTALL NEWS README TODO \
51        ${destroot}${prefix}/share/doc/${name}
52}
53
54variant bash_completion {
55    depends_run-append  path:etc/bash_completion:bash-completion
56
57    post-destroot {
58        xinstall -d ${destroot}${prefix}/share/bash-completion/completions
59        xinstall -m 644 ${worksrcpath}/contrib/bash/bzr \
60            ${destroot}${prefix}/share/bash-completion/completions
61    }
62}
63
64livecheck.type      regex
65livecheck.url       https://launchpad.net/bzr/+download
66livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.