[86604] trunk/dports/devel/mercurial/Portfile

jmr at macports.org jmr at macports.org
Sat Oct 29 08:31:57 PDT 2011


Revision: 86604
          http://trac.macports.org/changeset/86604
Author:   jmr at macports.org
Date:     2011-10-29 08:31:52 -0700 (Sat, 29 Oct 2011)
Log Message:
-----------
mercurial: update to 1.9.3, use python27 (#27757), fix config file handling (#28073)

Modified Paths:
--------------
    trunk/dports/devel/mercurial/Portfile

Modified: trunk/dports/devel/mercurial/Portfile
===================================================================
--- trunk/dports/devel/mercurial/Portfile	2011-10-29 14:10:58 UTC (rev 86603)
+++ trunk/dports/devel/mercurial/Portfile	2011-10-29 15:31:52 UTC (rev 86604)
@@ -2,10 +2,10 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
+PortGroup           python 1.0
 
 name                mercurial
-version             1.9.1
+version             1.9.3
 categories          devel python
 license             GPL-2+
 maintainers         deric
@@ -27,11 +27,12 @@
 homepage            http://www.selenic.com/mercurial/
 platforms           darwin
 master_sites        http://mercurial.selenic.com/release/
-checksums           md5     601990cc58af8316af4e1ea63e19d1be \
-                    sha1    555fc13756c8e9a75b653a5337791e8ebf1319cd \
-                    rmd160  13d3212e3b9ffb4a4b20108241b676611bab718a
+checksums           rmd160 badc314f0a364c3e64131247665ebbc63d1533a9 \
+                    sha256 53d8390379b81371f60729decd15f0961777b52ed7514d29c66c1873b918d685
 depends_run         port:curl-ca-bundle
 
+python.default_version 27
+
 post-patch {
     if {[variant_isset universal]} {
         reinplace "s/-arch i386 -arch x86_64/${configure.universal_cflags}/" ${worksrcpath}/setup.py
@@ -44,9 +45,9 @@
     # configure ssl certificates
     xinstall -d -m 755 ${destroot}${prefix}/etc/mercurial
     xinstall -m 644 ${filespath}/hgrc \
-        ${destroot}${prefix}/etc/mercurial/hgrc
+        ${destroot}${prefix}/etc/mercurial/hgrc.default
     reinplace "s|%%PREFIX%%|${prefix}|g" \
-        ${destroot}${prefix}/etc/mercurial/hgrc
+        ${destroot}${prefix}/etc/mercurial/hgrc.default
 
     # install html docs
     xinstall -m 644 -W ${worksrcpath}/doc hg.1.html hgrc.5.html hgignore.5.html \
@@ -77,6 +78,12 @@
     }
 }
 
+post-activate {
+    if {![file exists ${prefix}/etc/mercurial/hgrc]} {
+        copy ${prefix}/etc/mercurial/hgrc.default ${prefix}/etc/mercurial/hgrc
+    }
+}
+
 variant bash_completion {
     depends_run-append port:bash-completion
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111029/17b87fb8/attachment.html>


More information about the macports-changes mailing list