Ticket #8271: Portfile.2

File Portfile.2, 2.0 KB (added by deric@…, 18 years ago)

Portfile

Line 
1# $Id: $
2PortSystem          1.0
3PortGroup           python24 1.0
4name                mercurial
5version             0.8.1
6categories          devel python
7maintainers         deric@caveo.se
8description         A fast, lightweight, distributed SCM system written in \
9                    Python.
10long_description    Mercurial is a fast, lightweight Source Control Management \
11                    system designed for efficient handling of very large \
12                    distributed projects. A distributed SCM tool is designed \
13                    to support a model in which each Repository is loosely \
14                    coupled to many others. Each Repository contains a \
15                    complete set of metadata describing one or more projects. \
16                    These repositories may be located almost anywhere. \
17                    Individual developers only need access to their own \
18                    repositories, not to a central one, in order to commit \
19                    changes. Changes can be share via the builtin webserver, \
20                    CGI, SSH or a stream of patch emails. Mercurial supports \
21                    Apples' FileMerge for merges.\
22                   
23homepage            http://www.selenic.com/mercurial/
24master_sites        ${homepage}release/
25checksums           md5 ffa37810cf9c48608f5172a622bef2f5
26                    #sha1 7d71b6d0f73ec8b90d774b5251e69023e1ca7857
27                    #rmd160 0dca740eb32297813489162f9564ba349747be35
28
29post-destroot {
30    # install html docs
31    xinstall -m 644 -W ${worksrcpath}/doc hg.1.html hgmerge.1.html hgrc.5.html \
32        ${destroot}/${prefix}/share/doc/${name}
33       
34    # install man pages
35    xinstall -m 444 -W ${worksrcpath}/doc hg.1 hgmerge.1 \
36        ${destroot}/${prefix}/share/man/man1
37    xinstall -m 444 -W ${worksrcpath}/doc hgrc.5 \
38        ${destroot}/${prefix}/share/man/man5
39       
40    # install contrib stuff
41    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
42    file copy ${worksrcpath}/contrib ${destroot}${prefix}/share/${name}/contrib
43}