Unverified Commit 7715cea9 authored by Yt's avatar Yt Committed by GitHub
Browse files

lfe: fix install phase, make sure we get the binaries in the right place (#509423)

parents e32821a9 cbe0413f
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -68,18 +68,23 @@ else

    beamDeps = [ proper ];

    makeFlags = [
      "-e"
      "MANDB=''"
      "PREFIX=$$out"
    ];

    # override buildRebar3's install to let the builder use make install
    installPhase = "";
    installPhase = ''
      runHook preInstall
      make -e MANDB= PREFIX=$out install
      runHook postInstall
    '';

    doCheck = true;
    checkTarget = "travis";

    doInstallCheck = true;
    installCheckPhase = ''
      runHook preInstallCheck
      test -e $out/bin/lfe
      runHook postInstallCheck
    '';

    postFixup = ''
      # LFE binaries are shell scripts which run erl and lfe.
      # Add some stuff to PATH so the scripts can run without problems.