[78450] trunk/dports/devel

ryandesign at macports.org ryandesign at macports.org
Sat May 7 22:52:56 PDT 2011


Revision: 78450
          http://trac.macports.org/changeset/78450
Author:   ryandesign at macports.org
Date:     2011-05-07 22:52:53 -0700 (Sat, 07 May 2011)
Log Message:
-----------
tortoisehg: new port, version 2.0.3; see #28956

Added Paths:
-----------
    trunk/dports/devel/tortoisehg/
    trunk/dports/devel/tortoisehg/Portfile
    trunk/dports/devel/tortoisehg/files/
    trunk/dports/devel/tortoisehg/files/config.py
    trunk/dports/devel/tortoisehg/files/patch-setup.py.diff

Added: trunk/dports/devel/tortoisehg/Portfile
===================================================================
--- trunk/dports/devel/tortoisehg/Portfile	                        (rev 0)
+++ trunk/dports/devel/tortoisehg/Portfile	2011-05-08 05:52:53 UTC (rev 78450)
@@ -0,0 +1,51 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+PortGroup           python26 1.0
+
+name                tortoisehg
+version             2.0.3
+categories          devel python
+platforms           darwin
+license             GPL-2
+maintainers         superquadratic.net:guido openmaintainer
+supported_archs     noarch
+
+description         A set of graphical tools for Mercurial
+
+long_description    A set of graphical tools for the Mercurial distributed \
+                    revision control system.
+
+homepage            http://tortoisehg.bitbucket.org/
+master_sites        http://bitbucket.org/tortoisehg/targz/downloads/
+
+checksums           sha1    9275a8f9a58648047107023a5adfbf56f42afa22 \
+                    rmd160  a69f7344b27bbc317f0169e9ba7f2b49d4271842
+
+depends_lib         port:mercurial \
+                    port:py26-pyqt4 \
+                    port:py26-qscintilla \
+                    port:py26-iniparse
+
+depends_build       port:py26-sphinx
+
+post-extract {
+    file copy ${filespath}/config.py ${worksrcpath}/tortoisehg/util/
+}
+
+patchfiles          patch-setup.py.diff
+
+post-patch {
+    reinplace "s|{prefix}|${prefix}|" ${worksrcpath}/tortoisehg/util/config.py
+    reinplace "s|{python.prefix}|${python.prefix}|" ${worksrcpath}/tortoisehg/util/config.py
+}
+
+python.link_binaries_suffix
+
+post-destroot {
+    system "cd ${worksrcpath}/doc && make SPHINXBUILD=sphinx-build-2.6 html"
+    file copy ${worksrcpath}/doc/build/html ${destroot}${prefix}/share/doc/${name}/html
+
+    xinstall -m 644 -W ${worksrcpath} COPYING.txt ${destroot}${prefix}/share/doc/${name}
+}


Property changes on: trunk/dports/devel/tortoisehg/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/tortoisehg/files/config.py
===================================================================
--- trunk/dports/devel/tortoisehg/files/config.py	                        (rev 0)
+++ trunk/dports/devel/tortoisehg/files/config.py	2011-05-08 05:52:53 UTC (rev 78450)
@@ -0,0 +1,5 @@
+bin_path     = "{prefix}/bin"
+license_path = "{prefix}/share/doc/tortoisehg/COPYING.txt"
+locale_path  = "{python.prefix}/share/locale"
+icon_path    = "{python.prefix}/share/pixmaps/tortoisehg/icons"
+nofork       = True

Added: trunk/dports/devel/tortoisehg/files/patch-setup.py.diff
===================================================================
--- trunk/dports/devel/tortoisehg/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/devel/tortoisehg/files/patch-setup.py.diff	2011-05-08 05:52:53 UTC (rev 78450)
@@ -0,0 +1,11 @@
+--- setup.py.orig	2011-03-29 21:14:56.000000000 +0200
++++ setup.py	2011-03-29 21:15:23.000000000 +0200
+@@ -146,7 +146,7 @@
+         import PyQt4
+         path = os.getenv('PATH')
+         os.putenv('PATH', path + ';' + os.path.dirname(PyQt4.__file__) + '\\bin')
+-        if os.system('pyrcc4 "%s" -o "%s"' % (qrc_file, py_file)) > 0:
++        if os.system('pyrcc4-2.6 "%s" -o "%s"' % (qrc_file, py_file)) > 0:
+             self.warn("Unable to generate python module %s for resource file %s"
+                       % (py_file, qrc_file))
+             if not exists(py_file) or not file(py_file).read():
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110507/4f2c73cd/attachment.html>


More information about the macports-changes mailing list