# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 153879 2016-10-14 21:34:34Z sean@macports.org $ PortSystem 1.0 PortGroup python 1.0 PortGroup bitbucket 1.0 bitbucket.setup facebook hg-experimental d2c3a2c02eb6 version 0.0.20161014 name py-hgexperimental categories-append devel platforms darwin maintainers sean openmaintainer supported_archs noarch license GPL-2+ description This is a collection of proof-of-concept Mercurial \ extensions written at Facebook: smartlog, githelp, \ backups, and fbamend. long_description ${description} checksums rmd160 9c028dab79f1073a8dd803dec4af7fd522c1dd17 \ sha256 5f65cfdbbea8776385d4e6e717b9058652f70cf9b044753aa8f88fef193ffc79 python.versions 27 if {${name} ne ${subport}} { depends_lib-append path:bin/hg:mercurial \ port:py27-cython \ port:lz4 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/ } notes " To enable all of the extensions in hgexperimental, add the following to your ~/.hgrc: \[extensions\] smartlog = githelp = backups = fbamend = chistedit = sparse = " livecheck.type none }