source: trunk/dports/python/py-hgexperimental/Portfile

Last change on this file was 153879, checked in by sean@…, 9 months ago

py-hgexperimental: update to newest commit

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 153879 2016-10-14 21:34:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           bitbucket 1.0
7
8bitbucket.setup     facebook hg-experimental d2c3a2c02eb6
9version             0.0.20161014
10name                py-hgexperimental
11categories-append   devel
12platforms           darwin
13maintainers         sean openmaintainer
14supported_archs     noarch
15license             GPL-2+
16
17description         This is a collection of proof-of-concept Mercurial \
18                    extensions written at Facebook: smartlog, githelp, \
19                    backups, and fbamend.
20long_description    ${description}
21
22checksums           rmd160  9c028dab79f1073a8dd803dec4af7fd522c1dd17 \
23                    sha256  5f65cfdbbea8776385d4e6e717b9058652f70cf9b044753aa8f88fef193ffc79
24
25python.versions     27
26
27if {${name} ne ${subport}} {
28    depends_lib-append  path:bin/hg:mercurial \
29                        port:py27-cython \
30                        port:lz4
31
32    post-patch {
33        # remove -Werror from build args
34        reinplace -W ${worksrcpath} "s|\"-Werror\",||" setup.py
35
36        # fix relative import
37        reinplace -W ${worksrcpath}/fastannotate "s|from fastannotate|from .|" \
38            __init__.py \
39            context.py \
40            commands.py
41    }
42
43    post-destroot {
44        set sp ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
45
46        # conflicts with hg and is not needed
47        delete {*}[glob ${sp}/hgext3rd/__init__.py*]
48
49        copy ${worksrcpath}/treemanifest ${sp}/hgext3rd/
50
51        copy ${sp}/fastannotate ${sp}/hgext3rd/
52        move ${sp}/sqldirstate ${sp}/hgext3rd/
53        move ${sp}/fastmanifest ${sp}/hgext3rd/
54        move ${sp}/remotefilelog ${sp}/hgext3rd/
55    }
56
57    notes               "
58To enable all of the extensions in hgexperimental, add the following to your ~/.hgrc:
59
60\[extensions\]
61smartlog =
62githelp =
63backups =
64fbamend =
65chistedit =
66sparse =
67"
68
69    livecheck.type      none
70}
Note: See TracBrowser for help on using the repository browser.