[153414] trunk/dports/python/py-hgexperimental/Portfile
sean at macports.org
sean at macports.org
Fri Sep 30 01:44:33 CEST 2016
Revision: 153414
https://trac.macports.org/changeset/153414
Author: sean at macports.org
Date: 2016-09-29 16:44:33 -0700 (Thu, 29 Sep 2016)
Log Message:
-----------
py-hgexperimental: update to newest commit
Modified Paths:
--------------
trunk/dports/python/py-hgexperimental/Portfile
Modified: trunk/dports/python/py-hgexperimental/Portfile
===================================================================
--- trunk/dports/python/py-hgexperimental/Portfile 2016-09-29 23:44:26 UTC (rev 153413)
+++ trunk/dports/python/py-hgexperimental/Portfile 2016-09-29 23:44:33 UTC (rev 153414)
@@ -5,8 +5,8 @@
PortGroup python 1.0
PortGroup bitbucket 1.0
-bitbucket.setup facebook hg-experimental be7a54df7b36
-version 0.0.20160706
+bitbucket.setup facebook hg-experimental 8393bd99bb6e
+version 0.0.20160929
name py-hgexperimental
categories-append devel
platforms darwin
@@ -19,21 +19,45 @@
backups, and fbamend.
long_description ${description}
-checksums rmd160 fda2827ef60a6d89630ac2a547ffe1b5585919ff \
- sha256 457c99a1b0cdfef1692cc38220a58f2e500b15f2d51377fea50067ef7faa501f
+checksums rmd160 f9915321aa3771fda6a8cf07f2aa06f55e813a53 \
+ sha256 84564e0792655c3d9a380d998a259e271a227985cead7ee7e6c0f4f922d0eb57
python.versions 27
-build {}
+post-patch {
+ # remove -Werror from build args
+ reinplace -W ${worksrcpath} "s|\"-Werror\",||" setup.py
+ # fix relative import
+ reinplace -W ${worksrcpath}/fastannotate "s|from fastannotate|from .|" \
+ __init__.py \
+ context.py \
+ commands.py
+}
+
+post-destroot {
+ set sp ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
+
+ # conflicts with hg and is not needed
+ delete {*}[glob ${sp}/hgext3rd/__init__.py*]
+
+ copy ${worksrcpath}/treemanifest ${sp}/hgext3rd/
+
+ copy ${sp}/fastannotate ${sp}/hgext3rd/
+ move ${sp}/sqldirstate ${sp}/hgext3rd/
+ move ${sp}/fastmanifest ${sp}/hgext3rd/
+ move ${sp}/remotefilelog ${sp}/hgext3rd/
+ move ${sp}/cdatapack.so ${sp}/hgext3rd/
+ move ${sp}/cfastmanifest.so ${sp}/hgext3rd/
+ move ${sp}/ctreemanifest.so ${sp}/hgext3rd/
+ move ${sp}/linelog.so ${sp}/hgext3rd/
+}
+
if {${name} ne ${subport}} {
- depends_lib-append path:bin/hg:mercurial
+ depends_lib-append path:bin/hg:mercurial \
+ port:py27-cython \
+ port:lz4
- destroot {
- xinstall -d -m 755 ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
- eval xinstall -m 755 [glob ${worksrcpath}/*.py] ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
- }
-
notes "
To enable all of the extensions in hgexperimental, add the following to your ~/.hgrc:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20160929/c851fbc7/attachment-0002.html>
More information about the macports-changes
mailing list