source: trunk/dports/devel/mercurial/Portfile @ 79240

Last change on this file since 79240 was 79240, checked in by deric@…, 6 years ago

Update to 1.8.4. Closes #29705.

Rel. notes: http://mercurial.selenic.com/wiki/WhatsNew#Mercurial_1.8.4_.282011-06-01.29

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 79240 2011-06-06 11:49:07Z deric@macports.org $
3
4PortSystem          1.0
5PortGroup           python26 1.0
6
7name                mercurial
8version             1.8.4
9categories          devel python
10license             GPLv2+
11maintainers         deric
12description         A fast, lightweight, distributed SCM system written in \
13                    Python.
14long_description    Mercurial is a fast, lightweight Source Control Management \
15                    system designed for efficient handling of very large \
16                    distributed projects. A distributed SCM tool is designed \
17                    to support a model in which each Repository is loosely \
18                    coupled to many others. Each Repository contains a \
19                    complete set of metadata describing one or more projects. \
20                    These repositories may be located almost anywhere. \
21                    Individual developers only need access to their own \
22                    repositories, not to a central one, in order to commit \
23                    changes. Changes can be share via the builtin webserver, \
24                    CGI, SSH or a stream of patch emails. Mercurial supports \
25                    Apples' FileMerge for merges.
26
27homepage            http://www.selenic.com/mercurial/
28platforms           darwin
29master_sites        http://mercurial.selenic.com/release/
30checksums           md5     b3dcc3de473e003dd1cc0500dcd9de47 \
31                    sha1    25c4f9b1ad1c5c8ef94ca5b120c9af6bdfd23bdc \
32                    rmd160  c9c21ac48e6c37360f4de5833ddf0ee5e2594620
33depends_run         port:curl-ca-bundle
34
35post-destroot {
36    # configure ssl certificates
37    xinstall -d -m 755 ${destroot}${prefix}/etc/mercurial
38    xinstall -m 644 ${filespath}/hgrc \
39        ${destroot}${prefix}/etc/mercurial/hgrc
40    reinplace "s|%%PREFIX%%|${prefix}|g" \
41        ${destroot}${prefix}/etc/mercurial/hgrc
42
43    # install html docs
44    xinstall -m 644 -W ${worksrcpath}/doc hg.1.html hgrc.5.html hgignore.5.html \
45            ${destroot}${prefix}/share/doc/${name}
46
47    # install man pages
48    xinstall -m 444 -W ${worksrcpath}/doc hg.1 \
49        ${destroot}${prefix}/share/man/man1
50    xinstall -m 444 -W ${worksrcpath}/doc hgrc.5 hgignore.5 \
51        ${destroot}${prefix}/share/man/man5
52
53    # install contrib
54    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
55    file copy ${worksrcpath}/contrib ${destroot}${prefix}/share/${name}/contrib
56
57    # copy hgweb.cgi hgwebdir.cgi
58    file copy ${worksrcpath}/hgweb.cgi ${destroot}${prefix}/share/${name}/
59
60    if {[variant_isset bash_completion]} {
61        xinstall -d ${destroot}${prefix}/etc/bash_completion.d
62        copy ${worksrcpath}/contrib/bash_completion ${destroot}${prefix}/etc/bash_completion.d/mercurial
63    }
64
65    if {[variant_isset zsh_completion]} {
66        set site-functions ${destroot}${prefix}/share/zsh/site-functions
67        xinstall -d ${site-functions}
68        xinstall ${worksrcpath}/contrib/zsh_completion ${site-functions}/_mercurial
69    }
70}
71
72variant bash_completion {
73    depends_run-append port:bash-completion
74}
75
76variant zsh_completion description {Install mercurial zsh completion file} {
77    depends_run-append path:${prefix}/bin/zsh:zsh
78}
79
80python.link_binaries_suffix
81
82livecheck.url   http://mercurial.selenic.com/release/
83livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.